Error « JTextField « Java Swing Q&A





1. syntax error on addActionListener    stackoverflow.com

import org.jsoup.Jsoup;


@SuppressWarnings({ "unused", "serial" })

public class SimpleWebCrawler extends JFrame implements ActionListener {

    JTextField yourInputField = new JTextField(20);
    static JTextArea _resultArea = new JTextArea(200, 200);
  ...

3. awt TextField nullPointerException error    java-forums.org

hi, it is my first post here. I am new learning how to make form and stuffs with awt. basically i did a form which save input from user to the text and i am now working on the reader to retrieve the info from the text back to the form for display. i was successfully done getting the info out ...

4. JTextField Array Read Error    java-forums.org

public void addfields() { JTextField tfserie[]=new JTextField[100]; tfserie[x] = new JTextField(15); tfserie[x].setText(serie.getText()); c.gridx =0; c.gridy = x; c.gridwidth = 2; c.fill = GridBagConstraints.HORIZONTAL; p.add(tfserie[x],c); JTextField tfeps[]=new JTextField[100]; tfeps[x] = new JTextField(5); tfeps[x].setText(eps.getText()); c.gridx =2; c.gridy = x; c.gridwidth = 1; c.fill = GridBagConstraints.HORIZONTAL; p.add(tfeps[x],c); String data = ""; for(int i=1;i<=x;i++) { data = data + tfserie[i].getText()+";"; <--------------------this 2lines is error data ...