Hey guys I am new to Java programming and I making a simple program to test out a java applett. I keep getting errors that say
"C:\...\Test.java:14: <identifier> expected
container.add(outputArea);
^
C:\...\Test.java:17: <identifier> expected
outputArea.setText("dfgdgdfg");"
with my code, but I cannot figure out why. Can someone look at my code and see if they see anything obvious or not so obvious?
Thanks!
PHP Code:import java.awt.*;
import javax.swing.*;
public class Test extends JApplet {
JTextArea outputArea = new JTextArea();
Container container = getContentPane();
container.add(outputArea);
outputArea.setText("dfgdgdfg");
}



Reply With Quote
