import javax.swing.*;

/** An extension of JFrame that allows the height to be made = to the width */
public class SQ1JFrame extends JFrame {
    private int squareItCalls= 0;  /* Number of times that squareIt was called */
  
    /** Make the height of the frame the same as the width */
    public void squareIt() {
        this.setSize(this.getWidth(), this.getWidth());
        this.squareItCalls= this.squareItCalls + 1;
    }
    
    /** = number of calls on squareIt --this is a "getter" method */
    public int getSquareItCalls() {
        return this.squareItCalls;
    }
}