Dino Game
This commit is contained in:
14
PrimaGUI/src/App.java
Normal file
14
PrimaGUI/src/App.java
Normal file
@@ -0,0 +1,14 @@
|
||||
import javax.swing.JButton;
|
||||
import javax.swing.JFrame;
|
||||
public class App {
|
||||
public static void main(String[] args) throws Exception {
|
||||
JFrame f = new JFrame("Una finestra meravigliosa");
|
||||
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
f.setBounds(100,100,800,600);
|
||||
f.setLayout(null);
|
||||
JButton b = new JButton("ok");
|
||||
b.setBounds(100, 20, 100, 30);
|
||||
f.add(b);
|
||||
f.setVisible(true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user