The JComboBox has a add(PopUpMenu) and a add(JMenuItem). My class extends JComboBox. I create a JPopUpMenu, but it fails to display when I click on the JComboBox. Instead, nothing is displayed. Any i
In my Java 开发者_开发技巧swing application i have noticed that when i click on a disabled JMenuItem in a JPopupMenu it hides the menu, but i i do not want to hide it, as if nothing is clicked. Is the
OK so before my INV program was to REMOVE menu items but then I was all like.. that\'s too much. So what if I were to ADD menu items for specific Right-clicked items INSTEAD of removing every time?
OK so I finally got the JListMenu thing down with thanks to you guys. However, now I\'m trying to make it so SPECIFIC items have SPECIFIC commands. So, like Item 1 won\'t have the ability to right-cli
The problem can be stated in two different ways: 1. I have a JPopupMenu where I want to insert a component which is not a JMenuItem (a custom JTree)... but I dont know how to do it
I have code like this: jTextArea1.add(jPopupMenu1); jTextArea1.setComponentPopupMenu(jPopupMenu1); jTextField1.add(jPopupMenu2);
What I asked originally didn\'t clearly state my question/problem, so I will explain it better.I have a JButton that sets a JDialog to visible.The JDialog has a WindowListener that sets it to NOT visi
I have a JTable and a popup menu that is specific to each row.I want to calculate the row on which the user right-clicked his mouse (Windows L&F) to bring up the popup menu.
I have this strange bug with my popup menu. It happens rarely and seemingly randomly. The problem is when I have a submenu in my JPopupMenu - when I select the submenu, main menu disappears and the su
I have a JCheckBox in a program (labeled \"Use MiniTimer\") that, when right-clicked, shows a JPopupMenu with options \"Show on Close\", \"Show on Minimize\", \"Show on Close or Minimize\", and \"Do n