Subject/ Subject Code Semester/Branch Issue Date Due Date
Advanced JAVA Programming
(4351603) 5th / I.T. 18/07/2025 30/07/2025
Assignment – 1
CO-1: Develop a GUI application using swing components
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
5. Explain Commonly used Methods of Component class.
6. Recall various Layout Managers. Describe any four with example. U
7. Explain Mouse Motion Listener with example.
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.
Subject In-charge, Head of the Department,
N. K. Kanzariya, Lecturer Miss. P. N. Parikh,
C. B. Patel HOD,
Department of Information Technology, Department of Information Technology,
Govt. Polytechnic, Himatnagar. Govt. Polytechnic, Himatnagar.
~Department Vision~
To produce competent professional IT Engineers by creating an environment that fosters
the growth of creativity, innovation to adopt global skills of advance technology as per the
need of industry and society.