Making a GUI

Description

Making a GUI with Java Swing
desnunan
Flashcards by desnunan, updated more than 1 year ago
desnunan
Created by desnunan almost 11 years ago
92
0

Resource summary

Question Answer
What is the syntax to make a JFrame? JFrame frame = new JFrame();
What is the syntax to make a widget (button example)? JButton button = new JButton("click me");
How do you add a widget to a frame? frame.getContentPane(). add(button);
How do you display a frame? Give it a size and make it visible: frame.setSize(300, 300); frame.setVisible(true);
Show full summary Hide full summary

Similar

Java Week 5 Object Oriented Programming
Troy Bowlin
Java Practice 1
Ummm No
PEGA CSSA Prep
Wendell Phipps
Getting a User Event
desnunan
Listener
desnunan
Paintable Widgets
desnunan
Handling Swing Component Events
desnunan
Playing with Swing Components
desnunan
Make a JScrollPane
desnunan
Java Practice 2
Ummm No
Servion - Java Questionnaire
rohit.benedict