Manual Page No 4 All Questions 1
Manual Page No 4 All Questions 1
Q1
import java.awt.*;
exp1_1() {
// Creating a label
Label l1 = new Label("Welcome to Java");
Q2
import java.awt.*;
Q3)
import java.awt.*;
exp1_3() {
// Setting the layout manager to FlowLayout
setLayout(new FlowLayout());
// Creating buttons
Button b1 = new Button("Ok");
Button b2 = new Button("Reset");
Button b3 = new Button("Cancel");