Lab 2
Lab 2
Output:
2.4 WAP to write some content in a file.
Program:
Output:
2.5 WAP to read the content of a file and write it to another file.
Program:
Output:
2.6 Design a simple registration form using swing components. (Form should
include textfield, password field, radio button, check box, combo box, image,
and text area. Following form is just for your reference!). Additionally add two
buttons named “SUBMIT” and “CLEAR” in the form shown below. While
clicking on CLEAR button, content from all the should be erased and while
clicking on SUBMIT, all the entered data should be displayed in a separate
dialogue box.
Program:
Output:
2.7 Design a simple calculator using GUI components (pick and drop).
Calculator must perform at least all the arithmetic operations and reset
option).
Program:
Output:
2.8 WAP to implement different dialog boxes.
Output:
2.9 WAP to implement menu and popup menu option in Java.
Program:
Output: