Blame view

src/tp2/ColorPicker/Main.java 470 Bytes
3c9d20ad   shaggy42089   nearly finished tp2
1
2
3
4
5
6
7
  package tp2.ColorPicker;
  
  import javax.swing.*;
  import java.awt.*;
  
  public class Main {
  
0d83ec1e   shaggy42089   tp2 done
8
9
      public static final int padding = 15;
  
3c9d20ad   shaggy42089   nearly finished tp2
10
11
      public static void main(String[] args) {
          JFrame win = new JFrame();
3c9d20ad   shaggy42089   nearly finished tp2
12
  
0d83ec1e   shaggy42089   tp2 done
13
14
          ColorPicker c = new ColorPicker();
          win.add(c);
3c9d20ad   shaggy42089   nearly finished tp2
15
16
17
18
19
20
21
22
23
  
          win.setLocationRelativeTo(null);
          win.setResizable(false);
          win.pack();
  
          win.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          win.setVisible(true);
      }
  }