creation of the button stop (but doesn't do the action)
This commit is contained in:
parent
fc9bd5ed71
commit
4f29c74958
|
|
@ -259,7 +259,7 @@ public class Simulator extends Thread {
|
|||
}
|
||||
return saveState;
|
||||
|
||||
//TODO : complete method with proper return
|
||||
|
||||
}
|
||||
/**
|
||||
*
|
||||
|
|
@ -302,7 +302,6 @@ public class Simulator extends Thread {
|
|||
* to be alive in new state
|
||||
*/
|
||||
public void generateRandom(float chanceOfLife) {
|
||||
//TODO : complete method
|
||||
/*
|
||||
* Advice :
|
||||
* as you should probably have a separate class
|
||||
|
|
|
|||
|
|
@ -65,6 +65,14 @@ public class MyInterface extends JFrame {
|
|||
});
|
||||
panelTop.add(btnGo);
|
||||
|
||||
JButton btnStop = new JButton("Stop");
|
||||
btnStop.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent arg0) {
|
||||
clicButtonStop();
|
||||
}
|
||||
});
|
||||
panelTop.add(btnStop);
|
||||
|
||||
JButton btnClickAct = new JButton("Toggle Click");
|
||||
btnClickAct.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent arg0) {
|
||||
|
|
@ -224,6 +232,10 @@ public class MyInterface extends JFrame {
|
|||
}
|
||||
}
|
||||
|
||||
public void clicButtonStop() {
|
||||
//TODO
|
||||
}
|
||||
|
||||
public void clicButtonToggleClickAction() {
|
||||
if(mySimu != null) {
|
||||
mySimu.toggleClickAction();
|
||||
|
|
|
|||
Loading…
Reference in New Issue