Error « JList « Java Swing Q&A





2. JList error    coderanch.com

import javax.swing.*; import java.awt.*; import java.awt.event.*; public class TextArea1 implements ActionListener{ JTextArea text; JCheckBox check = new JCheckBox("check?"); boolean checked; JList list; public static void main (String args[]) { TextArea1 gui = new TextArea1(); gui.go(); } public void go(){ JFrame frame = new JFrame(); JPanel panel = new JPanel(); JButton button = new JButton("Just click it"); button.addActionListener(this); text = new JTextArea(10,20); ...

3. JList error    forums.oracle.com

Thanks to prometheuzz for running my code, that was a big help to learn that you didn't get any errors. I contacted a team member who also said they had an error, it turns out that it worked fine. That means that the code works for me, my team member, and prometheuzz. The only person for whom it does not work ...