Hallo,
irgendwie wills nicht so richtig funktionieren:
Fehlermeldung:
Vorbild war das hier:
How to Use Lists (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)
irgendwie wills nicht so richtig funktionieren:
Java:
public void actionPerformed(java.awt.event.ActionEvent evt10) {
int index = list_1.getSelectedIndex();
}
Fehlermeldung:
Multiple markers at this line
- void is an invalid type for the variable
actionPerformed
- ActionEvent cannot be resolved to a type
- Syntax error on token ")", ; expected
- Syntax error on token "(", ; expected
Vorbild war das hier:
How to Use Lists (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)