Java code for creating Graphic User Interface, this code is creating a Button on JFrame
import java.awt.*;
public class SimpleButton extends java.applet.Applet {
Button helloButton = new Button("Hello World!");
public void init() {
//Add the button to the screen
add(helloButton);
}
}
0 comments:
Post a Comment