You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
903 B
Java
30 lines
903 B
Java
package cancergrowth;
|
|
|
|
/*
|
|
* File Name: CancerGrowth.java
|
|
* Created: Oct 4, 2017
|
|
*/
|
|
|
|
public class CancerGrowth extends javax.swing.JFrame
|
|
{
|
|
//Constructor code for the frame
|
|
public CancerGrowth(String s)
|
|
{
|
|
super(s);
|
|
super.setContentPane(new CellPanel()); // Create the window using CellPanel.class
|
|
super.setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE); // Have the window close when you press the X
|
|
super.setLocation(50, 50);
|
|
super.setResizable(false); // Disable resizing
|
|
super.pack();
|
|
}
|
|
|
|
//<editor-fold defaultstate="collapsed" desc="--This method will launch your application--">
|
|
public static void main(String[] args)
|
|
{
|
|
javax.swing.JFrame.setDefaultLookAndFeelDecorated(false);
|
|
java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new CancerGrowth("Cancer Simulation").setVisible(true); } } );
|
|
}
|
|
//</editor-fold>
|
|
|
|
}
|