Пример #1
0
 public void init() {
   if (frame != null) {
     frame.removeNotify(); // make the frame not displayable
     frame.setResizable(true);
     frame.setUndecorated(true);
     println("frame is at " + frame.getLocation());
     frame.addNotify();
   }
   super.init();
 }
Пример #2
0
 public DisplayFrame() {
   this.setSize(1000, 800); // The window Dimensions
   setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
   javax.swing.JPanel panel = new javax.swing.JPanel();
   panel.setBounds(20, 20, 1000, 800);
   PApplet sketch = new CTCOffice();
   panel.add(sketch);
   this.add(panel);
   sketch.init(); // this is the function used to start the execution of the sketch
   this.setVisible(true);
   this.setTitle("Breathless Bovine: CTC Office         by Jake Lyons");
 }