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 ...
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...
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:
+----------------------------------...
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
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 ...
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 ...
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...
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 ...
2
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...
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...
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.