1. Using JSwing feature, create a label “I love Bahrain”. Set its color to Blue. Use font Serif, 34. After creating the
Posted: Sat Nov 27, 2021 2:28 pm
1. Using JSwing feature, create a label “I love Bahrain”. Set
its color to Blue. Use font Serif, 34. After creating the above
label, add another label with your name as a value and create your
own color and font for it. LabelDisplay.java
2. Using Swing and event driven programming, enter a name in
textbox. You have a button “press me”. When you Press it display a
Label “Hello”. You Set the bounds of the components properly on the
applet viewer.Event1.java
3. Make a Frame that lets the user enter his name, age and
school. (Use different fonts and colors on this). Then there should
be three Buttons, the first button when clicked should output the
name of the user, the second button when clicked should output the
age of the user, and the third button when clicked should output
the school of the user. Details.java
4. Create a Frame that has 5 buttons, specifically, RED, BLUE,
GREEN, WHITE and BLACK are the labels on the buttons. Each button
when clicked will show that colour on the background of the screen
of the applet. For example, when the button BLUE was clicked the
screen of the applet becomes colour blue also. Colors.java
5. Create a frame that has two checkboxes, one label is
“Cocktail” and the other one is “Dinner”, make one Choice that has
“Mariah Carey”, “Celine Dion” and “Whitney Houston” as values, and
make one List that has “1000bd” and “2000bd” inside. When the
Dinner checkbox is clicked it should have a check mark. On the
Choice, when the drop down button is clicked the three predefined
values should appear. On the List, when the you click either
one of them, one of them should be highlighted.
its color to Blue. Use font Serif, 34. After creating the above
label, add another label with your name as a value and create your
own color and font for it. LabelDisplay.java
2. Using Swing and event driven programming, enter a name in
textbox. You have a button “press me”. When you Press it display a
Label “Hello”. You Set the bounds of the components properly on the
applet viewer.Event1.java
3. Make a Frame that lets the user enter his name, age and
school. (Use different fonts and colors on this). Then there should
be three Buttons, the first button when clicked should output the
name of the user, the second button when clicked should output the
age of the user, and the third button when clicked should output
the school of the user. Details.java
4. Create a Frame that has 5 buttons, specifically, RED, BLUE,
GREEN, WHITE and BLACK are the labels on the buttons. Each button
when clicked will show that colour on the background of the screen
of the applet. For example, when the button BLUE was clicked the
screen of the applet becomes colour blue also. Colors.java
5. Create a frame that has two checkboxes, one label is
“Cocktail” and the other one is “Dinner”, make one Choice that has
“Mariah Carey”, “Celine Dion” and “Whitney Houston” as values, and
make one List that has “1000bd” and “2000bd” inside. When the
Dinner checkbox is clicked it should have a check mark. On the
Choice, when the drop down button is clicked the three predefined
values should appear. On the List, when the you click either
one of them, one of them should be highlighted.