Ich bin dabei ein Quiz zu basteln und nun funktioniert mein Window Builder nicht mehr. Updates gibt es keine, Window Builder hab ich neu installiert ansonsten habe ich keine Ahnung was ich noch machen kann. Bei den anderen Klassen funktioniert es...
Code:
Internal Error
WindowBuilder encountered unexpected internal error.
This could be caused by a WindowBuilder bug or by a misconfiguration issue, conflict, partialupdate, etc.
org.eclipse.wb.internal.core.utils.check.AssertionFailedException: {new: javax.swing.JButton} {local-unique: ButtonStart} {/new JButton("Start")/ /ButtonStart.addActionListener(new ActionListener() {public void actionPerformed(ActionEvent e) {LabelAntwort.setText("");LabelAntwort2.setText("");LabelFrage.setText("50€ Frage: Ein zylindrisches Gefäß in dem Speisen gekocht werden - oder kurz:");LabelA.setText("a) auf Lauf");LabelB.setText("b) ein Topf");LabelC.setText("c) ra Gout");LabelD.setText("d) gu Lasch");}})/ /ButtonStart.setBackground(Color.YELLOW)/ /ButtonStart.setForeground(Color.BLACK)/} is not created at after GroupLayout groupLayout=new GroupLayout(frame.getContentPane());in import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.GroupLayout; import javax.swing.GroupLayout.Alignment; import javax.swing.JLabel; import java.awt.Font; import javax.swing.JCheckBox; import javax.swing.LayoutStyle.ComponentPlacement; import javax.swing.JSeparator; import javax.swing.JButton; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import java.awt.Color; public class Quiz2 {private JFrame frame;private Übersicht meineÜbersicht;/*** Launch the application.*/public static void main(String[] args) {EventQueue.invokeLater(new Runnable() {public void run() {try {Quiz2 window = new Quiz2();window.frame.setVisible(true);} catch (Exception e) {e.printStackTrace();}}});}/*** Create the application.*/public Quiz2() {initialize();}/*** Initialize the contents of the frame.*/private void initialize() {frame = new JFrame();frame.setBounds(100, 100, 1000, 650);frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);JLabel LabelWerWirdMillionr = new JLabel("Wer wird Millionär");LabelWerWirdMillionr.setFont(new Font("Arial", Font.BOLD, 30));JLabel LabelFrage = new JLabel("Frage");LabelFrage.setFont(new Font("Arial", Font.PLAIN, 20));JLabel LabelA = new JLabel("a");JLabel LabelB = new JLabel("b");JLabel LabelC = new JLabel("c");JLabel LabelD = new JLabel("d");JCheckBox CheckBoxA = new JCheckBox("");JCheckBox CheckBoxB = new JCheckBox("");JCheckBox CheckBoxC = new JCheckBox("");JCheckBox CheckBoxD = new JCheckBox("");JSeparator separator = new JSeparator();JLabel LabelAntwort = new JLabel("Antwort");LabelAntwort.setFont(new Font("Tahoma", Font.PLAIN, 20));JSeparator separator_1 = new JSeparator();JButton ButtonBack = new JButton("\u00DCbersicht");ButtonBack.addActionListener(new ActionListener() {public void actionPerformed(ActionEvent arg0) {meineÜbersicht = new Übersicht();Übersicht.main(null);frame.dispose();}});JButton ButtonExit = new JButton("Exit");ButtonExit.addActionListener(new ActionListener() {public void actionPerformed(ActionEvent e) {frame.dispose();}});JLabel LabelAntwort2 = new JLabel("Antwort2");LabelAntwort2.setFont(new Font("Tahoma", Font.PLAIN, 20));GroupLayout groupLayout = new GroupLayout(frame.getContentPane());JButton ButtonStart = new JButton("Start");ButtonStart.addActionListener(new ActionListener() {public void actionPerformed(ActionEvent e) {LabelAntwort.setText("");LabelAntwort2.setText("");LabelFrage.setText("50€ Frage: Ein zylindrisches Gefäß in dem Speisen gekocht werden - oder kurz:");LabelA.setText("a) auf Lauf");LabelB.setText("b) ein Topf");LabelC.setText("c) ra Gout");LabelD.setText("d) gu Lasch");}});JButton ButtonWeiter = new JButton("Weiter");ButtonWeiter.addActionListener(new ActionListener() {public void actionPerformed(ActionEvent e) {if(CheckBoxB.isSelected()) {LabelAntwort.setText("Richtige Antwort! Sie haben 50€ sicher.");LabelAntwort2.setText("Weiter => wenn falsch = 0€, Aufhören => 50€ gewonnen");}}});JButton ButtonEnde = new JButton("Aufhören");ButtonEnde.addActionListener(new ActionListener() {public void actionPerformed(ActionEvent e) {}});ButtonStart.setBackground(Color.YELLOW);ButtonStart.setForeground(Color.BLACK);frame.getContentPane().setLayout(groupLayout);} }