1) What is the Java Swing classs? 2) What is a JFrame used for with Java GUI app
ID: 3811017 • Letter: 1
Question
1) What is the Java Swing classs?
2) What is a JFrame used for with Java GUI applications?
3) What is a JLabel used for?
4) What are the advantages of the JComboBox class?
5) What is a JScrollPane?
6) What are the differences between JButtons and JCheckBoxes?
7) What is the purpose of a ButtonGroup?
8) What is the purpose of a layout manager?
9) Describe how event-driven programming works in Java. What methods are involved?
10) What is content pane and how are they used in Java programming?
11) How is color used in Java GUI applications?
12) What are the differences between a border layout manager, a flow layout manager, a GridLayout manager, and a CardLayout manager?
13) What are the Java AWT classes?
14) Explain how event handlers work with Java.
15) How are mouse events handled with Java?
16) What is an adapter class?
17) What are the AWTEvent class methods?
18) Discuss some of the different types of user interface events that your Java programs can be written to handle.
19) How do you feel your Java programming expertise is at this point of the class?
20) What has been the most interesting or useful part of this class so far? What has been the least interesting or useful part of this class so far?
21) Are you ready for an interesting graphics application with lots of user interaction and color for Program #6?
22) How is random number generation used in Java programming?
23) What are some ways that random numbers can be generated for use in a Java program?
Explanation / Answer
java swing class:
Swing may be a set of program part s for Java programmers that offer the power to form graphical computer program ( graphical user interface ) parts, like buttons and scroll bars,that are freelance of the windowing system for specific package . Swing parts are used with the Java Foundation categories ( JFC ).
Java Swing may be a part of Java Foundation categories (JFC) that's accustomed produce window-based applications. it's engineered on the highest of AWT .API and fully written in java.Unlike AWT, Java Swing provides platform-independent and light-weight parts.
The javax.swing package provides categories for java swing API like :
JButton, JTextField, JTextArea, JRadioButton, JCheckbox, JMenu, JColorChooser etc.
Java swings properties:
1.Java swing parts ar platform-independent
2.Swing parts ar light-weight.
3.Swing support
4.Swing provides additional powerful parts like tables, lists, scroll panes, color chooser, tabbed pane etc. pluggable look and feel.
5.Swing follows MVC.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.