Right now I'm working on a GUI program which uses the JButton class (found in an online Swing tutorial), with this code:
import javax.swing.JButton;
public class HelloWorld extends java.applet.Applet {
public static void main(String[] args) {
@ConstructorProperties(value="Click")
public JButton(String Click); //identifier expected and ; expected error from here
drawString("test",50,25);
}
}
The compiler gives an "identifier expected" error and a "; expected error". Why is that and what should I do?