Hi, I am a little stuck. I can't figure out a much bigger problem than this, so I am going to the roots to eventually build my way up!
I can't print the selected item in the combo box, currently I have an ActionListener
for it:
box.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt) {
myBox(evt);
}
});
...
protected void myBox(ActionEvent evt)
{
if(myBoxName.getSelectedItem().toString() != null)
System.out.println(myBoxName.getSelectedItem().toString());
}
I would expect this to print out to the console every time I change the selected item, but it doesn't. This should be so easy though!
Thanks