jmenuitem

Additional information added to JMenuItem

Hello, I'm developing a java application and I create a dynamic JMenu by hand (depending on the input data). I add the same action for each menu item of the menu. The problem is that depending on the menu item called I would like to take a different action each time. Is there a simple way of doing this (Something like setData(Object dat...

Open a window-popup from JMenuItem java

I have a JMenu with a JMenuItem, and when I click on this, I need to open a JFrame or window, in other words a component with inside JButton, JTextField,... How can i do this ? ...

Java - Is It Possible To Add A JMenu Over On The Far Right-Hand Side Of A JMenuBar?

Hi Coders, I am in the process of developing a simple JFrame based GUI to which I've added a JMenuBar and which in turn has the usual JMenuItems added to it - "File:", "Edit:", etc. I would like to be able to add another JMenuItem - "About:" - to the far right-hand side of the JMenuBar. Is this possible without too much hackery - I w...

JMenuItem shows checkbox on the left, how to disable it? (fixed)

Hi, I'm building a drop down menu which resides in program menu bar and pops up a JPopupMenu if a JButton gets clicked. In the JPopupMenu there are multiple JMenuItems. However, beside every JMenuItem it shows a checkbox! Which looks like this: I don't think it should, and there is explicit JCheckBoxMenuItem for that. Does anyone ...