a) buttonName = JButton("Caption");
b) JLabel aLabel, JLabel;
c) txtField =newJTextField(50,"Default Text");
d) setLayout(newBorderLayout());
button1 =newJButton("North Star");
button2 =newJButton("South Pole");
add(button1);
add(button2);
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here