Guest User

Untitled

a guest
Jan 21st, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. import java.awt.EventQueue;
  2. import java.io.IOException;
  3.  
  4. import javax.swing.JFrame;
  5.  
  6.  
  7. public class Poczatek {
  8.  
  9. /**
  10. * @param args
  11. */
  12. public static void main(String[] args) {
  13.  
  14. EventQueue.invokeLater(new Runnable(){
  15. public void run(){
  16. Ramka ramka;
  17. try {
  18. // Przyciski p = new Przyciski();
  19. ramka = new Ramka();
  20. ramka.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  21. ramka.setVisible(true);
  22. } catch (IOException e) {
  23. // TODO Auto-generated catch block
  24. e.printStackTrace();
  25. } catch (InterruptedException e) {
  26. // TODO Auto-generated catch block
  27. e.printStackTrace();
  28. }
  29.  
  30. }
  31.  
  32.  
  33. });
  34.  
  35. }
  36.  
  37.  
  38.  
  39. }
Add Comment
Please, Sign In to add comment