Skip to content

Commit

Permalink
a little changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kaidelorenzo committed Oct 22, 2019
1 parent 38bfd57 commit 633bd8a
Showing 1 changed file with 18 additions and 32 deletions.
50 changes: 18 additions & 32 deletions src/set/game.java
Original file line number Diff line number Diff line change
Expand Up @@ -272,52 +272,38 @@ public void keyPressed(KeyEvent e) {
c.repaint();
}

public void keyReleased(KeyEvent e) {
// placeholder
public void windowActivated(WindowEvent e) {
// initializes thread
thread = new Thread(this);
thread.start();
}

public void keyTyped(KeyEvent e) {
// placeholder
public void windowDeactivated(WindowEvent e) {
// quits thread
thread = null;
}

public void windowClosing(WindowEvent e) {
System.exit(0);
}

@Override

public void keyReleased(KeyEvent e) {
// placeholder
}
public void keyTyped(KeyEvent e) {
// placeholder
}
public void windowOpened(WindowEvent e) {
// TODO Auto-generated method stub
// placeholder
}

@Override
public void windowClosed(WindowEvent e) {
// TODO Auto-generated method stub

// placeholder
}

@Override
public void windowIconified(WindowEvent e) {
// TODO Auto-generated method stub

// placeholder
}

@Override
public void windowDeiconified(WindowEvent e) {
// TODO Auto-generated method stub

}

@Override
public void windowActivated(WindowEvent e) {
// initializes thread
thread = new Thread(this);
thread.start();
}

@Override
public void windowDeactivated(WindowEvent e) {
// quits thread
thread = null;
// placeholder
}
}

Expand Down

0 comments on commit 633bd8a

Please sign in to comment.