GoConqr has a new look! Let us know what you think.

Flashcards

Making a GUI

desnunan Computer Programming English 4 cards

Cards in this deck (4)

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

Information

Description
Making a GUI with Java Swing
Created by
desnunan
Views
119
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?