Re: Pls Help: JMenu with 2 columns



Rohit wrote:
Hi,

I am creating a JMenu that put its items in 2 columns, with the first
column holding JMenuItems and the second menu holding submenus
(JMenus). It looks somewhat like this:

-----------
| Load |
-----------------------------------------------
| 'JMenuItem' | 'JMenu' > |
| 'JMenuItem' | 'JMenu' > |
| 'JMenuItem' | 'JMenu' > |
| 'JMenuItem' | 'JMenu' > |
-------------------------------------


Why dont you use JMenu inside JMenu?

----------
| Load |
----------------------------
| JMenu -> |
| JMenu -> |
| JMenu -> |
| JMenu -> |

You may add actionListener to JMenu too.
.