Can't change HTML List Bullet Color in JLabel, JButton, etc...
From: Vicky (VKS_at_fake.fake)
Date: 01/11/05
- Next message: John McGrath: "Re: JFileChooser Localization"
- Previous message: maciek welna via JavaKB.com: "How to change JTextField to JPasswordField in JOptionPane?"
- Next in thread: John McGrath: "Re: Can't change HTML List Bullet Color in JLabel, JButton, etc..."
- Reply: John McGrath: "Re: Can't change HTML List Bullet Color in JLabel, JButton, etc..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 11 Jan 2005 02:06:51 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
- Next message: John McGrath: "Re: JFileChooser Localization"
- Previous message: maciek welna via JavaKB.com: "How to change JTextField to JPasswordField in JOptionPane?"
- Next in thread: John McGrath: "Re: Can't change HTML List Bullet Color in JLabel, JButton, etc..."
- Reply: John McGrath: "Re: Can't change HTML List Bullet Color in JLabel, JButton, etc..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|