Try this method of JButton:

btn.setFocusPainted(false)

-----Original Message-----
From: Steve Barrett [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 6:08 PM
To: [EMAIL PROTECTED]
Subject: button focus behavior


I want to get rid of the dotted line in a JButton that indicates it
has focus.  Instead I want the background to change color. Changing
the color is not a problem, but I cannot find a property, method,
border, etc., which can be set to turn off the dotted line.  Is there
any way to do this besides implmenting a ButtonUI class?
Thanks in advance, Steve Barrett

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to