Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / January 2005

Tip: Looking for answers? Try searching our database.

Can't change HTML List Bullet Color in JLabel, JButton, etc...

Thread view: 
Vicky - 11 Jan 2005 02:06 GMT
Hi Group,

I'm writing HTML into a label.
I changed the background to black and now I'm in trouble.

There doesn't seem to be any way to get the bullets of <ol> or <ul> to
be anything but black.

An example I plugged into JButton and JLabel:

<HTML>BLAH
 <FONT color='#FF0000'>
   <OL>
     <LI>TEST</LI>
     <LI>TEST</LI>
     <LI>TEST</LI>
   </OL>
 </FONT>
</HTML>

All the list items were red, but the bullets were still black.

Styles have the same effect:

<HTML>BLAH
   <OL style='color:red'>
     <LI>TEST</LI>
     <LI>TEST</LI>
     <LI>TEST</LI>
   </OL>
</HTML>

also:

<HTML>BLAH
   <OL>
     <LI style='color:red'>TEST</LI>
     <LI style='color:red'>TEST</LI>
     <LI style='color:red'>TEST</LI>
   </OL>
</HTML>

Help?

-Vicky
John McGrath - 11 Jan 2005 02:33 GMT
> There doesn't seem to be any way to get the bullets of <ol> or <ul>
> to be anything but black.

Try running with JDK 1.5.

Signature

Regards,

John McGrath

Vicky - 14 Jan 2005 02:29 GMT
>> There doesn't seem to be any way to get the bullets of <ol> or <ul>
>> to be anything but black.
>
> Try running with JDK 1.5.

Hi John,

You're right about the JRE I was using.

Unfortunately we can't upgrade right away, but I was able to fake things by
setting the bullet images to an invalid URL and then putting my own letters
and numbers in.
*hack*
*hack*

Thanks!

-Vicky


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.