I must admit that I've always had the "border" issue on Windows....
but you can always get around it with
myButton.setUI(new BasicButtonUI());
Works on all platforms I've ever had the issue with (including mac).
On 13 Oct 2007, at 01:28, Scott Palmer wrote:
Some look and feels paint the border as part of the background.
The new Nimbus look and feel is one, and apparently some Linux look
and feels (GTK?) do it too. It seems that this is acceptable
because it is the only way to get the look right because of the way
"skins" work. E.g. Nimbus text fields have the "border" cast a
shadow in the text area.
Scott
hoverfrog wrote:
we have just 'migrated' to JVM6 on windoze, and JButtons that had
setBorderPainted(false) are showing up with borders.
Coincidence?
On 11 Oct , 2007, at 9:06 PM, email@hidden wrote:
I frequently use buttons in my app where I take away the
border by
calling JButton.setBorder(null). This works fine on a variety of
platforms, but someone recently sent me a screenshot from leopard
and
the button borders were still there. I am planning to file a bug
report, but I thought someone here might have some input. Not sure
why apple would break this, but there might actually be a reason,
rather than accident.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden