Skip to main content

How to make JButton in group

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
abc3d
Offline
Joined: 2007-02-05

Hi,
I am using Nimbus look and feel with swing in my desktop application, i want to create JButton or Button group, means A Button with addition DropArrow Button. like following. please check attached JPG file.

| ---------------------------------|------| | ---------------------------------|------|
| My Button 1 | V | | My Button 2 | V |
|----------------------------------|------| |----------------------------------|------|

My problem, I can't change Nimbus Look & Feel, and all Buttons Look should be same as Nimbus. This Application contains so many things, so i have to make it compact i cannot leave any unused space. please tell me is there any swing components like these or how i can do by extending JButton.