Popup « JComboBox « Java Swing Q&A





1. JCombobox's popup list is not painted completely    stackoverflow.com

I have a JInternalFrame in a JDesktop, and I also have a JComboBox in the internal frame. The problem is shown below. problem How can I make JComboBox paint outside ...

2. java swing, highligth item in jcombobox popup    stackoverflow.com

i want to highlight an item inside popup list. I say "highlight" becouse i don't want to select it (for example by calling setSelectedItem) but only make it selected inside the jcombobox ...

3. Java combobox shall only popup if a button is pressed    stackoverflow.com

I have a question regarding the popup of a java combobox. I need to control the popup of a combobox with a java button. That means I click once on the button, the ...

4. How to make a java swing popup window with combo box and 2 buttons?    stackoverflow.com

I need to make a popup box with with a combo box and a couple of buttons. Please could someone advice on the best way to achieve this? I've had a ...

5. Hiding a JComboBox's popup window    coderanch.com

Hi all, I have an application with numerous JTextFields and JComboBoxes, and need to perform validation on the JTextFields to confirm that the entry is a valid number, within the defined range, etc. I use a KeyListener and FocusListener for this, and it works fine as long as I just navigate using the tab key. Things get strange however, when there ...

6. JComboBox: small button, big popup ?    coderanch.com

8. Calendar popup for in a ComboBox    coderanch.com

9. JComboBox popup refresh in a JApplet    coderanch.com





10. !!!! URGENT !!!!! JComboBox popup problem    coderanch.com

Hi Seema, NEVER EVER MIX AWT AND SWING COMPONENTS. In ur code sometimes JPanel is used and sometimes Panel is used. Second thing : NEVER EVER SET THE COMPONENT'S SIZE AND POSITION EXPLICITLY. The layout manager will best decide the position and the component itself will best calculate it's size. However u may set preferred, maximum or minimum size of the ...

11. Calendar Popup via JCombobox    coderanch.com

I have a date field on a form that the user will complete. I want to popup a calendar widget that he can use to pick the correct date. I can get the combobox to popup the calendar when the user clicks on the arrow. Now I want to suppress the dropdown list that the combobox displays since there are no ...

12. Need custom popup panel to display/hide like JComboBox popup    coderanch.com

Found a solution! It's not my favorite option, but it does seem to work I added these two methods to my class: private void addContainerListeners(Container cont) { if(cont == null) { JInternalFrame frame = (JInternalFrame) SwingUtilities .getAncestorOfClass(JInternalFrame.class, DateComboBox.this); if(frame != null) { Component[] comps = frame.getContentPane().getComponents(); for(int i = 0; i < comps.length; i++) { if(comps[i] instanceof Container) { addContainerListeners((Container)comps[i]); } ...

13. Force popup of combobox with spacebar    coderanch.com