JComboBox 3 « JComboBox « Java Swing Q&A





1. FocusTraversalPolicy not working for JComboBox and JSpinner    forums.oracle.com

Swing related questions should be posted in the Swing forum. If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour. Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking ...

2. Java 1.6 jComboBox    forums.oracle.com

Hi All, We developed a java swing application with jdk 1.4 . we have a jComboBox in th first page. When we compile & run the application in jdk1.4 , the combo box works fine and able to select items. but if we compile and run in java 1.6 , we are not able to see and select the items from ...

3. Interesting topic in JComboBox    forums.oracle.com

import java.awt.*; import java.awt.event.*; import java.util.*; import javax.swing.*; import javax.swing.plaf.basic.*; public class ComboBoxFonts extends JFrame implements ItemListener { // JTextArea textArea; JComboBox comboBox; public Font abiFont = new Font("Arial Black Italic",Font.PLAIN,20); public Font bmoFont = new Font("Book Man Old Style Bold",Font.BOLD,20); public Font cniFont = new Font("Courier New Italic",Font.PLAIN,20); public Font tnrFont = new Font("Times New Roman",Font.PLAIN,20); public Font verFont = ...

4. check if Jcombobox is empty    forums.oracle.com

5. JComboBox?    forums.oracle.com

6. my jcombobox is getting overlaped by my jlistbox    forums.oracle.com

both combobox and jlist have gridlayout Individual component don't have layouts. Components are added to a panel with a layout. If the panel is using a GridLayout, then you don't add the components to the panel using the "NORTH" and "CENTER" constraints. So don't understand what you are trying to explain which is why posting code is a good idea. If ...

7. JComboBox    forums.oracle.com

8. JComboBox visibility    forums.oracle.com

Some recommendations: 1) Declare and initialize your two jcomboboxes and add them to your jpanel. 2) Set the index of the first to -1, set the second's visible to false. 3) add an actionlistener to the first, and have it perform its action if the second combobox is invisible. This will call a method to make the second combobox visible and ...

9. JComboBox - Bias With White Space    forums.oracle.com





10. JComboBox quesdtion    forums.oracle.com

11. Improving JComboBox    forums.oracle.com

Hi, Apologies in advance if this has been discussed before. I haven't found anything here or on google, but it may be because I haven't been using the right terms in the queries. I'm looking for advice on how I might implement an improved version of a JComboBox, where instead of simply having a drop-down menu where you select an entry ...

12. JComboBox    forums.oracle.com

I'm currently writing a program for my Java class, and I need to be able to retrieve a selected item from a JComboBox. //accept new data newFirst = firstField.getText(); newLast = lastField.getText(); newCity = cityField.getText(); newStateBox = StateCombo.getItemText(); How would you do that? With the other variables, you can just put getText(), but I don't know what you use for JComboBoxes. ...

13. jcombobox    forums.oracle.com

First, this is a Swing question and should be placed in the Swing forum. Second, my guess is that you've got a few issues going on with your code including not calling setVisible() or dispose() correctly and focus traversal problems. At the moment, I can't be bothered with your code as I am discussing Night Ranger, Loverboy, and Quarterflash. Post a ...

14. retreiving actionlistner for jcombobox    forums.oracle.com