Swing JButton with no border:
Insets noInsets=new Insets(0,0,0,0);
// store the icon you want to display in imageIcon
JButton blinkButton = new JButton(YOUR-ICON);
blinkButton.setMargin(noInsets);
blinkButton.setBorder(BorderFactory.createEmptyBorder());
blinkButton.setContentAreaFilled(false);
Credit to: www.swingwiki.org
Thursday, September 4, 2008
Labels: Programming
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment