Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.EventQueue;
- import java.io.IOException;
- import javax.swing.JFrame;
- public class Poczatek {
- /**
- * @param args
- */
- public static void main(String[] args) {
- EventQueue.invokeLater(new Runnable(){
- public void run(){
- Ramka ramka;
- try {
- // Przyciski p = new Przyciski();
- ramka = new Ramka();
- ramka.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- ramka.setVisible(true);
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (InterruptedException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
- });
- }
- }
Add Comment
Please, Sign In to add comment