jmenu Questions

3

Solved

I was wondering if can you test to see if a JMenu (not JMenuItem) has been clicked. I tried adding an ActionListener to it but it doesn't seem to recognize it. I just need it to preform an action w...
Ravelin asked 25/3, 2012 at 17:6

3

Solved

When attempting to click on an item in a submenu, it is natural to quickly draw your mouse across the menu items below it. Both Windows and Mac natively handle this by putting a small delay before ...
Gasket asked 24/9, 2013 at 20:46

4

Solved

So if i have a JMenu & JMenuBar defined such that: jMenuBar1 = new javax.swing.JMenuBar(); jMenu1 = new javax.swing.JMenu(); jMenu1.setText("About"); jMenuBar1.add(jMenu1); // Finally setJMe...
Thorner asked 19/12, 2011 at 11:43

3

Solved

Would it be possible to create a custom JMenuItem that contains buttons? For example would it be possible to create a JMenuITem with an item similar to this: +----------------------------------...
Winebaum asked 12/5, 2011 at 1:23

2

Solved

I would like to programmatically expand a particular JMenuItem in a JPopup. For example in the code below import java.awt.event.ActionEvent; import javax.swing.AbstractAction; import javax.swing....
Lefebvre asked 12/8, 2014 at 9:24

2

Solved

I am trying to implement this type of menu using Swing. Is there any off-the-shelf solution (free and/or commercial) yet?
Rubino asked 6/5, 2012 at 4:6

2

Solved

I want to add JMenuItem without closing JMenu. A menu contains a JTextField, When I press enter in text field, it added a menu Item. My problem is the size of added menu item is too small. import ...
Cohette asked 3/9, 2013 at 6:40

2

I'm looking to create a JComboBox that acts as a menu. For example, when you drop it down, you can select items like you would in a JMenuBar. So it would take JMenus and JMenuItems as instead of ...
Absorber asked 14/3, 2011 at 18:8

2

Solved

I have a user request to add an accelerator to a sub menu (JMenu) which would allow the user to press the short cut and have the corresponding sub menu "fold out", showing its contained menu items....
Krishna asked 16/10, 2012 at 7:47

1

I want to create a checkbox or check symbol in front of menuItem in a JMenu. For example, when we open a Notepad file and click on Format menu there is a checkbox in front of Word Wrap menuItem of...
Foreshadow asked 18/9, 2012 at 11:29

5

Solved

I was trying to make a JMenu behave like a JButton but I'm having some problems and hopefully someone here can help! I've added a MenuListener to the JMenu item with this but I cant get the popup ...
Toothpick asked 16/3, 2010 at 17:8

2

I seem to have done everything correct. I just need to implement a simple JMenuBar but it seems to be not working. Can someone please help me out in this? import java.awt.*; import java.awt.event....
Heraldic asked 12/6, 2012 at 6:18

2

I'm trying to use a compound Swing component as part of a Menu. Everything works just fine, apart from one detail: The component contains JComboBoxes and whenever the user clicks on one of them to...
Fideicommissum asked 2/7, 2011 at 19:52

2

Solved

I've inserted a JMenu (instance named: exitMenu) without any JMenuItem, so my intention is to make available a way to EXIT the program without access unnecessary menu items, since my program has ju...
Marshall asked 16/4, 2012 at 21:46

3

Solved

I'm making a GUI that has a Jmenu; it has the jmenu items that will be doing things when clicked. That is the problem. I've looked and looked, but I can't find out how to make it do something when ...
Niggerhead asked 19/3, 2012 at 22:2
1

© 2022 - 2024 — McMap. All rights reserved.