jpopupmenu « JComboBox « Java Swing Q&A





1. Submenu in JCombo    stackoverflow.com

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 ...

2. JComboBox on a JPopupMenu    stackoverflow.com

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 ...

3. JComboBox & JPopupMenu    coderanch.com

Hi, I am trying desperately to find a way to do this: When a user right-clicks on an item of a JComboBox drop down list, a popup menu to appear (i would like to show options like edit, delete etc for the items) After extending a JComboBox i came up with an element that shows a popup BUT i can not ...

4. JPopupmenu not working w/ JComboBox metal L&F    coderanch.com

This code works in both the Metal and Windows L&F... though I would definitely consider this a "hack"... there must be some problem with the underlying ComponentUI for a Metal ComboBox. Basically, I'm just adding the same listener to both the combo box and the first component inside the combo box. import java.awt.Component; import java.awt.Point; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; ...