update jar and clean some code
This commit is contained in:
parent
558139141c
commit
a119be9655
@ -1,4 +1,4 @@
|
||||
#Wed, 30 Jan 2019 20:03:25 -0600
|
||||
#Thu, 31 Jan 2019 16:42:40 -0600
|
||||
|
||||
|
||||
C\:\\Users\\cd109\\Desktop\\apcs\\Projects\\chapter-03\\CancerGrowth=
|
||||
C\:\\Users\\cd109\\Desktop\\CancerGrowth=
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
dist/CancerGrowth.jar
vendored
BIN
dist/CancerGrowth.jar
vendored
Binary file not shown.
@ -3,9 +3,8 @@
|
||||
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
|
||||
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
|
||||
<group>
|
||||
<file>file:/C:/Users/cd109/Desktop/apcs/Projects/chapter-03/CancerGrowth/src/cancergrowth/CellPanel.java</file>
|
||||
<file>file:/C:/Users/cd109/Desktop/apcs/Projects/chapter-03/CancerGrowth/src/cancergrowth/CancerGrowth.java</file>
|
||||
<file>file:/C:/Users/cd109/Desktop/apcs/Projects/chapter-03/CancerGrowth/src/cancergrowth/Cell.java</file>
|
||||
<file>file:/C:/Users/cd109/Desktop/CancerGrowth/src/cancergrowth/Cell.java</file>
|
||||
<file>file:/C:/Users/cd109/Desktop/CancerGrowth/src/cancergrowth/CellPanel.java</file>
|
||||
</group>
|
||||
</open-files>
|
||||
</project-private>
|
||||
|
@ -21,13 +21,9 @@ import javax.swing.event.ChangeListener;
|
||||
public class CellPanel extends javax.swing.JPanel implements ActionListener, ChangeListener
|
||||
{
|
||||
private Timer swingTimer;
|
||||
//private JButton go;
|
||||
//private JSlider speed;
|
||||
private int delay;
|
||||
private boolean growing = false;
|
||||
int count = 0;
|
||||
long time0 = System.nanoTime();
|
||||
long time1 = time0;
|
||||
private int count = 0;
|
||||
private boolean draw = false;
|
||||
|
||||
ArrayList<Cell> cells = new ArrayList<Cell>();
|
||||
@ -60,8 +56,6 @@ public class CellPanel extends javax.swing.JPanel implements ActionListener, Cha
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e)
|
||||
{
|
||||
time1 = System.nanoTime() - time0;
|
||||
time0 = System.nanoTime();
|
||||
if (swingTimer.isRunning())
|
||||
{
|
||||
speed.setEnabled(true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user