Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (4)

Sign In or Sign Up now to post a comment!
  • Bei mir kommt eine Fehlermeldung dass JComboBox(String[]) undefiniert ist. Was muss ich jetzt machen?

    public class JComboBox extends JFrame { String[] anrede = {"", "Herr", "Frau"}; JComboBox cbox = new JComboBox(anrede); <----FEHLERZEILE ! JTextField field = new JTextField(20); JButton button = new JButton("Absenden"); JLabel label = new JLabel(); public JComboBox()

    }

  • @techniker1fg04 Hey, ja du erstellst ja die Klasse JComboBox neu und überschreibst sie damit ;)

    Das solltest du nicht tun. gib deiner klasse einfach nen anderen Namen, z.B JComboBoxProgramm

  • @F4bisTutorials Hey, klingt logisch. Jetzt klappt es, danke :)

  • @techniker1fg04 Kein Problem, viel Spaß weiterhin :)

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more