JButton colors -- NOT
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   James_Rome
Posted On:   Thursday, July 25, 2002 06:46 AM

I have code that uses JButtons to reporesent networtk nodes that users can drag around. It works great on Windows, Linux and Sun. However, with the Mac L&F, my code such as

			
JButton myButten = new JButton();
myButton.setBackground(Color.red);


does not work. All the buttons are white!


Also, in the Mac L&F, how does one make lines to connect the nodes on a JTree?

About | Sitemap | Contact