Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Swing flat button

843806Apr 8 2008 — edited Apr 9 2008
Is there a way to render JButtons in swing as flat buttons? For a JToolbar you can use
JToolBar toolBar = new JToolBar();
toolBar.setRollover(true);
So there's certainly some code to do this rendering already. But I don't find any such option on a JButton.
It's not my intention to create my own extension of a JButton to handle this.
If the toolbar can render buttons like this without changes, it should also be possible to render a plain button exactly the same without changes.

Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 7 2008
Added on Apr 8 2008
8 comments
1,744 views