//Tue: A1 tutorial //Thr we have a quiz in lecture! Bring you i-clicker! //what if we want to customize JFrame // for example double the width&height of the window // or make the window a perfect square OurJFrame oj = new OurJFrame(); oj.setVisible(true); //from JFrame oj.setSize(100,300); //from JFrame oj.setTitle("This is a window!"); //from JFrame oj.doubleSize(); //from OurJFrame! //we wrote a doubleDouble() method that just called doubleSize() // twice, but then removed it! //let's write a costomized "constructor" that makes the window // visible by default, and sets the size to 200x100, and sets a title. OurJFrame oj = new OurJFrame("Hello!") oj.doubleSize() oj.doubleSize() //each time: doubling the window size