JPanel « JComboBox « Java Swing Q&A





1. show/hide JPanels with JComboBox ItemSelected    forums.netbeans.org

2. Processing with two JComboBox's in one JPanel/JFrame    coderanch.com

I have researched the Java Ranch forum for Swing/... and don't see an entry quite like this. There was one other but it had no code. My intent is to have two combo boxes - pickRstrInit and pickRstrName. The first combo box selects the initial of last name. This causes the data base to be read for all persons whose last ...

3. To draw circles on JPanel using JComboBox to determine number of them    java-forums.org

I think that you'll need a controller (the listener such as an item listener) that is outside of the two classes, the one holding the JComboBox and the one drawing the circles. Perhaps the class holding the JComboBox can have a public method called addItemListener(ItemListener il) and inside this method you add the parameter to the JComboBox as its ItemListener: Java ...