Advertisement
Guest User

MEJN

a guest
Apr 7th, 2020
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.75 KB | None | 0 0
  1. public static void main(String[] args) {
  2.         JFrame win = new JFrame();
  3.         win.setTitle("A19B0206P");
  4.  
  5.         makeGui(win);
  6.         win.pack();
  7.  
  8.         win.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  9.         win.setLocationRelativeTo(null);
  10.         win.setVisible(true);
  11.  
  12.     }
  13.  
  14.     private static void makeGui(JFrame win) {
  15.         DrawingPanel panel = new DrawingPanel();
  16.         win.setLayout(new BorderLayout());
  17.         win.add(panel, BorderLayout.CENTER);
  18.  
  19.         SVGGraphics2D g2 = new SVGGraphics2D(750, 750);
  20.         panel.drawKytka(200, 200, g2);
  21.         System.out.println(g2.getSVGElement());
  22.  
  23.         JButton bttnExit = new JButton("Exit");
  24.  
  25.         JPanel buttons = new JPanel();
  26.         buttons.add(bttnExit);
  27.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement