Fichas
Making a GUI
Fichas del conjunto (4)
- 1What is the syntax to make a JFrame?JFrame frame = new JFrame();
- 2What is the syntax to make a widget (button example)?JButton button = new JButton("click me");
- 3How do you add a widget to a frame?frame.getContentPane().
add(button); - 4How do you display a frame?Give it a size and make it visible:
frame.setSize(300, 300);
frame.setVisible(true);
Información
- Descripción
- Making a GUI with Java Swing
- Creado por
- desnunan
- Visitas
- 119
- Etiquetas
- Valoración