Making a GUI

Beschreibung

Making a GUI with Java Swing
desnunan
Karteikarten von desnunan, aktualisiert more than 1 year ago
desnunan
Erstellt von desnunan vor mehr als 10 Jahre
90
0

Zusammenfassung der Ressource

Frage Antworten
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);
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

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