update jar and clean some code

master
ThirstyShark 6 years ago
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.

@ -3,9 +3,8 @@
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/> <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"> <open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group> <group>
<file>file:/C:/Users/cd109/Desktop/apcs/Projects/chapter-03/CancerGrowth/src/cancergrowth/CellPanel.java</file> <file>file:/C:/Users/cd109/Desktop/CancerGrowth/src/cancergrowth/Cell.java</file>
<file>file:/C:/Users/cd109/Desktop/apcs/Projects/chapter-03/CancerGrowth/src/cancergrowth/CancerGrowth.java</file> <file>file:/C:/Users/cd109/Desktop/CancerGrowth/src/cancergrowth/CellPanel.java</file>
<file>file:/C:/Users/cd109/Desktop/apcs/Projects/chapter-03/CancerGrowth/src/cancergrowth/Cell.java</file>
</group> </group>
</open-files> </open-files>
</project-private> </project-private>

@ -21,13 +21,9 @@ import javax.swing.event.ChangeListener;
public class CellPanel extends javax.swing.JPanel implements ActionListener, ChangeListener public class CellPanel extends javax.swing.JPanel implements ActionListener, ChangeListener
{ {
private Timer swingTimer; private Timer swingTimer;
//private JButton go;
//private JSlider speed;
private int delay; private int delay;
private boolean growing = false; private boolean growing = false;
int count = 0; private int count = 0;
long time0 = System.nanoTime();
long time1 = time0;
private boolean draw = false; private boolean draw = false;
ArrayList<Cell> cells = new ArrayList<Cell>(); ArrayList<Cell> cells = new ArrayList<Cell>();
@ -60,8 +56,6 @@ public class CellPanel extends javax.swing.JPanel implements ActionListener, Cha
@Override @Override
public void actionPerformed(ActionEvent e) public void actionPerformed(ActionEvent e)
{ {
time1 = System.nanoTime() - time0;
time0 = System.nanoTime();
if (swingTimer.isRunning()) if (swingTimer.isRunning())
{ {
speed.setEnabled(true); speed.setEnabled(true);

Loading…
Cancel
Save