actionEvent « JComboBox « Java Swing Q&A





1. How does one debug the processing of a JComboBox's actionEvent in Eclipse and avoid locking up the windowing system?    stackoverflow.com

I have written an Eclipse plugin that has a Swing GUI. To debug the plugin, I spawn a secondary Eclipse workspace. I then set a breakpoint on a method ...

2. JComboBox and actionEvents    coderanch.com

There may be a more sophisticated way, but I'm thinking that a boolean check would work... class MyGui extends JFrame { private boolean fromFile = false; . . . public void readFile( File f ) { fromFile = true; // Read data from file // and set the combobox } private class ComboListener implements ActionListener { public void actionPerformed( ActionEvent e ...

3. JComboBox ActionEvent    coderanch.com

I have a combo box that gets info from the DB whenever a customer is chosen. Sometimes I need to set the selected item on this combo box, but don't want to go get the data from the DB again. When I setSelectedItem() on the combobox, it gets the data again, and I don't want it to. Is there any way ...