Skip to main content

How to make JButton in group

Please note these forums are being decommissioned and use the new and improved forums at
No replies
Joined: 2007-02-05

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.