Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1. package piskvorky;
  2. import javax.swing.JButton;
  3. import javax.swing.JFrame;
  4.  
  5. public class Piskvorky {
  6.  
  7.     public static class PrvniOkno extends JFrame {
  8.     JButton tlacitko = new JButton("Konec");
  9.     public PrvniOkno(){
  10.         this.getContentPane().add(tlacitko);
  11.     }
  12.     }
  13.  
  14.     public static void main(String[] args) {
  15.     PrvniOkno po = new PrvniOkno();
  16.     po.pack();
  17.     po.setVisible(true);
  18.     }
  19.    
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement