Java:
{
JComboBox comboBox = new JComboBox();
comboBox.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0)
{
JComboBox cb = (JComboBox)arg0.getSource();
String AggregatName = (String)cb.getSelectedItem();
if(AggregatName == "Auto")
{
model.add(1,"C");
}
Wenn ich es außerhalb der AnoKLasse habe funktioniert dies. Bitte um Hilfe.
Was muss man machen damit man zugriff hat. Static geht leider auch nicht.
Gruß
Zuletzt bearbeitet von einem Moderator: