JToggleButton button = new JToggleButton("Java Button");
button.setFocusable(false);
button.putClientProperty("JButton.buttonType", "square");
there is a 4 pixel border added around the button for the focus ring.
What is the recommended way to remove this border? Adding it to a
panel with a negative border?
JPanel panel = new JPanel();
panel.setBorder(BorderFactory.createEmptyBorder(-4,-4,-4,-4);
panel.add(button);
_______________________________________________
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