I’m have no trouble when creating menu bar and its item. But now, when I get a question how to make the menu items appeared as column & rows-like table shaped, I really don’t know about that.
The goals is to create this kind of menu items using java.
Check this link.
And right now, I just think that I should use a jpanel as menu item, and then applying a flowlayout and then adding many jlabel(s) as I could as menuitem inside the grid. But wouldn’t it worst?
What’s the best deal to create the menu items such as the image preview on the above links?
I tried google, but found no related cases. CMIIW.
The popup menu of a
JMenuinstance is a standard container, so you can add to it whatever you want. It has a default layout, but you can change it.Something like in your mockup is created by this code: