Advanced Java Assignment-1
Advanced Java Assignment-1
Assignment – 1
Questions Bloom’s
Taxonomy
Level
1. Describe JFC with its usage. R
2. Draw and explain swing class hierarchy. R
3. Define Java Swing and list out at least five components commonly R
used in Swing applications with its class name.
4. Differentiate between Java Swing and Java AWT. U
8. List out all Interfaces of Event Listener. Explain any three with U
program.
9. Illustrate Swing JLabel, JButton, JTextField, JChecBbox and U
JCombobox control with its syntax and example.
10. Explain Border Layout.
11. Create a Java Swing application that simulates a basic calculator with A
GUI components for numbers and arithmetic operations (+, -, *, /).
12. Develop a Java Swing program for a counter application having "Increment" A
and "Decrement" buttons with initial count of 0 displayed in the label. When
"Increment" is clicked, the count increases by 1, and when "Decrement" is
clicked, the count decreases by 1. A message dialog should be displayed
when the counter goes below 0.
13. Develop a program to create checkboxes for different courses belonging to a A
university such that the course selected would be displayed.
14. Create a Swing application with a menu bar containing a "File" menu A
having menu items "New", "Open", and "Exit". When the user clicks "Exit",
the application should close. Add keyboard shortcuts for file menu items.
Also add a "Help" menu having menu item "About". Display a message box
which shows description of this program when ‘About’ is clicked.
15. Develop a program to Implement Traffic signal (Red, Green and Yellow) by A
using Swing components (Using JFrame, JRadioButton, ItemListener etc.)
16. Develop a Java Swing program that creates a JComboBox with a list of A
your favourite programming languages. When a language is selected,
display a message indicating the selected programming language.
~Department Vision~