update jar and clean some code

This commit is contained in:
ThirstyShark
2019-01-31 16:42:56 -06:00
parent 558139141c
commit a119be9655
11 changed files with 5 additions and 12 deletions
+2 -2
View File
@@ -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
View File
Binary file not shown.
+2 -3
View File
@@ -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>
+1 -7
View File
@@ -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);