import javax.swing.JFrame;

/**
 * OurJFrame - a customized JFrame Class.
 * When building a class, we give its name, 
 * what it customizes, and we use {} (braces) 
 * to marke the beginning and end of the class
 * definition.
 */

public class OurFrame extends JFrame {
  /**
   * Move this window to the upper right corner
   * Methods have ()' after their names, and we also
   * use braces to show beginning and end of a method
   */
  public void moveToOrigin()  {
    this.setLocation(0,0);
  }
  
  /**
   * Shift this window exactkly its own length
   */
  public void shiftMeRight() {
    this.setLocation(this.getX()+this.getWidth(), this.getY());
  }
}
