Results 1 to 15 of 15
Like Tree1Likes
  • 1 Post By gimbal2

Thread: Program wont compile run, I'm not getting any errors either? trying to pass variables

  1. #1
    PedramCarter is offline Member
    Join Date
    Nov 2014
    Posts
    27
    Rep Power
    0

    Default Program wont compile run, I'm not getting any errors either? trying to pass variables

    I 100% know is this part of the program where I'm trying to move a variable to another form where is then used to calculate the total from the inserted cash. I get no errors or anything I just run this part of the Jframe and nothing happens.
    The method in the ItemsPage where I'm trying to send totalprice is the issue in the public Items constructor/whatever you call it. the problem is this "public ItemsPage() {
    Pounds = "";
    //super();

    Scanner sc = new Scanner(System.in);
    CashPay sendTotalPrice = new CashPay();
    //System.out.println("Enter your amount");
    TotalPrice = sc.nextDouble();
    sendTotalPrice.printTotalPrice(TotalPrice);

    }
    "

    Java Code:
    import java.awt.BorderLayout;
    import java.awt.Checkbox;
    import java.awt.GridBagConstraints;
    import java.awt.GridBagLayout;
    import java.awt.Insets;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.ImageIcon;
    import javax.swing.JButton;
    import javax.swing.JLabel;
    import javax.swing.JCheckBox;
    import java.util.Scanner;
    import javax.swing.WindowConstants;
    import javax.swing.SwingUtilities;
    
    
    /**
    * This code was edited or generated using CloudGarden's Jigloo
    * SWT/Swing GUI Builder, which is free for non-commercial
    * use. If Jigloo is being used commercially (ie, by a corporation,
    * company or business for any purpose whatever) then you
    * should purchase a license for each developer using Jigloo.
    * Please visit www.cloudgarden.com for details.
    * Use of Jigloo implies acceptance of these licensing terms.
    * A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
    * THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
    * LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
    */
    public class ItemsPage extends javax.swing.JFrame {
    	private JLabel Fruitslbl;
    	private JLabel Snackslbl;
    	private JCheckBox Appleschk;
    	private JCheckBox Strawberrychk;
    	private JButton Continuebtn;
    	private static JButton Additemsbtn;
    	private JCheckBox Smoothiechk;
    	private JCheckBox Juicechk;
    	private JCheckBox Sodachk;
    	private JCheckBox Lambchk;
    	private JCheckBox Chickenchk;
    	private JCheckBox Chocolatechk;
    	private JCheckBox Crispschk;
    	private JCheckBox Orangeschk;
    	private JLabel Drinkslbl;
    	private JLabel Meatlbl;
    	public double TotalPrice;
    	private String Pounds;
    	
    	
    
    	/**
    	* Auto-generated main method to display this JFrame
    	*/
    	public static void main(String[] args) {
    		SwingUtilities.invokeLater(new Runnable() {
    			public void run() {
    				ItemsPage inst = new ItemsPage();
    				inst.setLocationRelativeTo(null);
    				inst.setVisible(true);
    				//Additemsbtn.addActionListener(
    				 //        new ActionListener()
    			}
    		});
    	}
    	
    	public ItemsPage() {
    		Pounds = "";
    		//super();
    		
    		Scanner sc = new Scanner(System.in);
    		CashPay sendTotalPrice = new CashPay();
    		//System.out.println("Enter your amount");
    		TotalPrice = sc.nextDouble();
    		sendTotalPrice.printTotalPrice(TotalPrice);
    		
    	}
    	
    	private void initGUI() {
    		try {
    			GridBagLayout thisLayout = new GridBagLayout();
    			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
    			thisLayout.rowWeights = new double[] {0.1, 0.1, 0.1, 0.1};
    			thisLayout.rowHeights = new int[] {7, 7, 7, 7};
    			thisLayout.columnWeights = new double[] {0.1, 0.1, 0.1, 0.1};
    			thisLayout.columnWidths = new int[] {7, 7, 7, 7};
    			getContentPane().setLayout(thisLayout);
    			this.setIconImage(new ImageIcon(getClass().getClassLoader().getResource("")).getImage());
    
    			Fruitslbl = new JLabel();
    			getContentPane().add(Fruitslbl, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    			Fruitslbl.setText("Fruits");
    
    			Snackslbl = new JLabel();
    			getContentPane().add(Snackslbl, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    			Snackslbl.setText("Snacks");
    
    			Meatlbl = new JLabel();
    			getContentPane().add(Meatlbl, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    			Meatlbl.setText("Meat");
    
    			Drinkslbl = new JLabel();
    			getContentPane().add(Drinkslbl, new GridBagConstraints(3, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    			Drinkslbl.setText("Drinks");
    
    			Appleschk = new JCheckBox();
    			getContentPane().add(Appleschk, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(2, 0, 0, 0), 0, 0));
    			Appleschk.setText("Apples");
    
    			Orangeschk = new JCheckBox();
    			getContentPane().add(Orangeschk, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    			Orangeschk.setText("Oranges");
    
    			Strawberrychk = new JCheckBox();
    			getContentPane().add(Strawberrychk, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    			Strawberrychk.setText("Strawberry");
    			
    
    			Crispschk = new JCheckBox();
    			getContentPane().add(Crispschk, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    			Crispschk.setText("Crisps");
    			
    			
    
    			Chocolatechk = new JCheckBox();
    			getContentPane().add(Chocolatechk, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    			Chocolatechk.setText("Chocolate");
    
    			Chickenchk = new JCheckBox();
    			getContentPane().add(Chickenchk, new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    			Chickenchk.setText("Chicken");
    
    			Lambchk = new JCheckBox();
    			getContentPane().add(Lambchk, new GridBagConstraints(2, 2, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    			Lambchk.setText("Lamb");
    
    			Sodachk = new JCheckBox();
    			getContentPane().add(Sodachk, new GridBagConstraints(3, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    			Sodachk.setText("Soda");
    
    			Juicechk = new JCheckBox();
    			getContentPane().add(Juicechk, new GridBagConstraints(3, 2, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    			Juicechk.setText("Juice");
    
    			Smoothiechk = new JCheckBox();
    			getContentPane().add(Smoothiechk, new GridBagConstraints(3, 3, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    			Smoothiechk.setText("Smoothie");
    
    			Additemsbtn = new JButton();
    			getContentPane().add(Additemsbtn, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    			Additemsbtn.setText("Add Items");
    			Additemsbtn.addActionListener(new ActionListener() {
    				public void actionPerformed(ActionEvent evt) {
    					//System.out.println("Additemsbtn.actionPerformed, event="+evt+TotalPrice);
    					//TODO add your code for Additemsbtn.actionPerformed
    					checkwhatIsSelected();
    				}
    			});
    
    			Continuebtn = new JButton();
    			getContentPane().add(Continuebtn, new GridBagConstraints(2, 3, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    			Continuebtn.setText("Complete Checkout");
    			Continuebtn.addActionListener(new ActionListener() {
    				public void actionPerformed(ActionEvent evt) {
    					//System.out.println("Continuebtn.actionPerformed, event="+evt);
    					//TODO add your code for Continuebtn.actionPerformed
    					new CashPay().setVisible(true); // Main Form to show after the Login Form..
    					CashPay CashPay = new CashPay();
    					CashPay.printTotalPrice(TotalPrice);
    				}
    			});
    
    			pack();
    			this.setSize(841, 593);
    		} catch (Exception e) {
    		    //add your error handling code here
    			e.printStackTrace();
    		}
    		
    	}
    
    		  
    	// private void handleJCheckbox(double Strawberrychk) {
    		  
    		 
    
    		// if (Strawberrychk. == true)
    		//	 TotalPrice += 1.99;
    		// TODO Auto-generated method stub
    		//return false;}
    	
    	 public void checkwhatIsSelected() 
    	 {
    		 if(Strawberrychk.isSelected())
    		 {
    			 //is checked 
    			 TotalPrice = TotalPrice + 1.99;
    			 System.out.println("   #################################################");
    			 System.out.println("       Your Total Price is: " + Pounds + TotalPrice);
    			 
    			 System.out.println("Thank you for shopping with Jstore, please come again!");
    			 System.out.println("   #################################################");
    			    }
    		 
    		 if(Appleschk.isSelected())
    		 {
    			 //is checked 
    			 TotalPrice = TotalPrice + 0.87;
    			 System.out.println("Your Total Price is " + Pounds + TotalPrice);
    			 
    		 if(Orangeschk.isSelected())
    			 {
    				 //is checked 
    			 TotalPrice = TotalPrice + 1.99;
    			 System.out.println("Your Total Price is " + Pounds + TotalPrice);
    		 if(Crispschk.isSelected())
    		 {
    			 //is checked 
    			 TotalPrice = TotalPrice + 1.99;
    			 System.out.println("Your Total Price is " + Pounds + TotalPrice);
    		 }
    		 if(Lambchk.isSelected())
    		 {
    			 //is checked 
    			 TotalPrice = TotalPrice + 1.99;
    			 System.out.println("Your Total Price is " + Pounds + TotalPrice);
    		 }
    		 if(Chickenchk.isSelected())
    		 {
    			 //is checked 
    			 TotalPrice = TotalPrice + 1.99;
    			 System.out.println("Your Total Price is " + Pounds + TotalPrice);
    		 }
    		 if(Juicechk.isSelected())
    		 {
    			 //is checked 
    			 TotalPrice = TotalPrice + 1.99;
    			 System.out.println("Your Total Price is " + Pounds + TotalPrice);
    		 }
    		 
    		 }
    		 if(Smoothiechk.isSelected())
    		 {
    			 //is checked 
    			 TotalPrice = TotalPrice + 1.99;
    			 System.out.println("Your Total Price is " + Pounds + TotalPrice);
    		 }
    		 if(Sodachk.isSelected())
    		 {
    			 //is checked 
    			 TotalPrice = TotalPrice + 1.99;
    			 System.out.println("Your Total Price is " + Pounds + TotalPrice);
    		 }
    		 System.out.println("   #################################################");
    		 System.out.println("       Your Total Price is: " + Pounds + TotalPrice);
    		 
    		 System.out.println("Thank you for shopping with Jstore, please come again!");
    		 System.out.println("   #################################################");
    		 
    		/* else 
    			 TotalPrice = TotalPrice +  0.00;*/
    	 }
    	/* }
    	private void Strawberrychk() {
    		// TODO Auto-generated method stub
    		
    	}*/
    
    	/*private void handleCheckbox1(Checkbox Appleschk) {
    		  
    		    if (Appleschk.getState()) TotalPrice += 0.99;
    		    else TotalPrice += 0.00;
    		  
    		  }
    	 private void handleCheckbox2(Checkbox Orangeschk) {
    		  
    		    if (Orangeschk.getState()) TotalPrice += 1.99;
    		    else TotalPrice += 0.00;
    		  
    		  }
    	 private void handleCheckbox3(Checkbox Crispschk) {
    		  
    		    if (Crispschk.getState()) TotalPrice += 0.89;
    		    else TotalPrice += 0.00;
    		  
    		  }
    	 private void handleCheckbox4(Checkbox Chocolateschk) {
    		  
    		    if (Chocolateschk.getState()) TotalPrice += 0.99;
    		    else TotalPrice += 0.00;
    		  
    		  }*/
    	
    	 
    
    }
    }
    class/jframe 2


    Java Code:
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.MouseAdapter;
    import javax.swing.JButton;
    import javax.swing.JLabel;
    import javax.swing.JTextField;
    
    import javax.swing.WindowConstants;
    import javax.swing.SwingUtilities;
    
    
    /**
    * This code was edited or generated using CloudGarden's Jigloo
    * SWT/Swing GUI Builder, which is free for non-commercial
    * use. If Jigloo is being used commercially (ie, by a corporation,
    * company or business for any purpose whatever) then you
    * should purchase a license for each developer using Jigloo.
    * Please visit www.cloudgarden.com for details.
    * Use of Jigloo implies acceptance of these licensing terms.
    * A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
    * THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
    * LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
    */
    public class CashPay extends javax.swing.JFrame {
    
    	private JLabel cashamountlbl;
    	private JButton Calculatebtn;
    	private JLabel CashChangelbl;
    	private JTextField CashAmounttxt;
    	private double ChangeLeft;
    	
    	
    
    	/**
    	* Auto-generated main method to display this JFrame
    	*/
    	public static void main(String[] args) {
    		SwingUtilities.invokeLater(new Runnable() {
    			public void run() {
    				CashPay inst = new CashPay();
    				inst.setLocationRelativeTo(null);
    				inst.setVisible(true);
    				
    			}
    			
    		});
    		ItemsPage callClass = new ItemsPage();
    		callClass.checkwhatIsSelected();
    	}
    	//Converts input from textfield into double variable.
    	public CashPay() {
    		super();
    		
    		initGUI();
    	//Receives variable from another class "ItemsPage"	
    	}
    	public void printTotalPrice(double TotalPrice){
    		double CashInsert = Double.parseDouble(CashAmounttxt.getText());
    		ChangeLeft = CashInsert - TotalPrice;
    		System.out.println (ChangeLeft);
    	
    	}
    	private void initGUI() {
    		try {
    			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
    			getContentPane().setLayout(null);
    
    			cashamountlbl = new JLabel();
    			getContentPane().add(cashamountlbl);
    			cashamountlbl.setText("Enter Cash Amount");
    			cashamountlbl.setBounds(41, 65, 121, 34);
    			cashamountlbl.setBackground(new java.awt.Color(128,0,255));
    
    			CashAmounttxt = new JTextField();
    			getContentPane().add(CashAmounttxt);
    			CashAmounttxt.setBounds(215, 71, 87, 23);
    
    			CashChangelbl = new JLabel();
    			getContentPane().add(CashChangelbl);
    			CashChangelbl.setBounds(190, 117, 158, 109);
    			CashChangelbl.setBackground(new java.awt.Color(255,128,64));
    
    			Calculatebtn = new JButton();
    			getContentPane().add(Calculatebtn);
    			Calculatebtn.setText("Calculate Total");
    			Calculatebtn.setBounds(46, 203, 93, 23);
    			Calculatebtn.addMouseListener(new MouseAdapter() {
    			});
    
    			pack();
    			this.setSize(415, 319);
    		} catch (Exception e) {
    		    //add your error handling code here
    			e.printStackTrace();
    		}
    	}
    }
    	 
    /*private void CashCal(){
    	if (CashInsert => RecievedTotalPrice)}
    }*/
    Last edited by PedramCarter; 03-30-2015 at 12:39 AM.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,003
    Rep Power
    33

    Default Re: Program wont compile run, I'm not getting any errors either? trying to pass varia

    I just run this part of the Jframe and nothing happens.
    Try debugging the code by adding lots of print statements that print out messages and the values of variables as the program executes so you can see what methods are being executed.
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    PedramCarter is offline Member
    Join Date
    Nov 2014
    Posts
    27
    Rep Power
    0

    Default Re: Program wont compile run, I'm not getting any errors either? trying to pass varia

    I don't understand, I already said like what part the error was it's just that 2 line of code, when I comment it out the code works, sorry I don't know what you mean by print statements, it's literally 2 variables and I've already done print statements.

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,003
    Rep Power
    33

    Default Re: Program wont compile run, I'm not getting any errors either? trying to pass varia

    I don't know what you mean by print statements
    Here are some sample print statements from your code:
    Java Code:
             System.out.println("   #################################################");
             System.out.println("       Your Total Price is: " + Pounds + TotalPrice);
    One big problem I see with the code is it is mixing console I/O and GUI. Get rid of the Scanner for reading user input and only use GUI to interact with a user.
    If you don't understand my response, don't ignore it, ask a question.

  5. #5
    PedramCarter is offline Member
    Join Date
    Nov 2014
    Posts
    27
    Rep Power
    0

    Default Re: Program wont compile run, I'm not getting any errors either? trying to pass varia

    Quote Originally Posted by Norm View Post
    Here are some sample print statements from your code:
    Java Code:
             System.out.println("   #################################################");
             System.out.println("       Your Total Price is: " + Pounds + TotalPrice);
    One big problem I see with the code is it is mixing console I/O and GUI. Get rid of the Scanner for reading user input and only use GUI to interact with a user.
    I have no idea buddy I used GUI and I wanted to pass variables from 1 jframe to another and I watched and followed the youtube tutorial, can you suggest me some alternative code which would work? I appreciate your help.

  6. #6
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    14

    Default Re: Program wont compile run, I'm not getting any errors either? trying to pass varia

    Invoking the super constructor is probably causing JFrame to do unexpected things. It is considered bad practice to extend JFrame. It is rarely done and usually not necessary. Best to simply create an instance of JFrame and use that. And also, don't add components directly to a JFrame. Add them to a JPanel and add that to the JFrame. Recommend you read the tutorials in my signature on how to use JFrames and JPanels.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  7. #7
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,003
    Rep Power
    33

    Default Re: Program wont compile run, I'm not getting any errors either? trying to pass varia

    some alternative code
    Get rid of the Scanner class. Get all user input from a GUI component.
    If you don't understand my response, don't ignore it, ask a question.

  8. #8
    PedramCarter is offline Member
    Join Date
    Nov 2014
    Posts
    27
    Rep Power
    0

    Default Re: Program wont compile run, I'm not getting any errors either? trying to pass varia

    Quote Originally Posted by Norm View Post
    Get rid of the Scanner class. Get all user input from a GUI component.
    When I get rid of the scanner I get squiggly lines under rest of my code in that section all I want to do is sent that variable to my second class/jframe I don't know sorry :'(

  9. #9
    PedramCarter is offline Member
    Join Date
    Nov 2014
    Posts
    27
    Rep Power
    0

    Default Re: Program wont compile run, I'm not getting any errors either? trying to pass varia

    Quote Originally Posted by jim829 View Post
    Invoking the super constructor is probably causing JFrame to do unexpected things. It is considered bad practice to extend JFrame. It is rarely done and usually not necessary. Best to simply create an instance of JFrame and use that. And also, don't add components directly to a JFrame. Add them to a JPanel and add that to the JFrame. Recommend you read the tutorials in my signature on how to use JFrames and JPanels.

    Regards,
    Jim
    I have no idea I think the gui created the extends.

  10. #10
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,003
    Rep Power
    33

    Default Re: Program wont compile run, I'm not getting any errors either? trying to pass varia

    Sorry, I can't see the squiggly lines. You need to get a list of the compiler error messages and paste them here.
    If you don't understand my response, don't ignore it, ask a question.

  11. #11
    PedramCarter is offline Member
    Join Date
    Nov 2014
    Posts
    27
    Rep Power
    0

    Default Re: Program wont compile run, I'm not getting any errors either? trying to pass varia

    Quote Originally Posted by Norm View Post
    Sorry, I can't see the squiggly lines. You need to get a list of the compiler error messages and paste them here.
    Like I mentioned I don't get any errors it just simply runs and nothing happens :(

  12. #12
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,003
    Rep Power
    33

    Default Re: Program wont compile run, I'm not getting any errors either? trying to pass varia

    From post#2
    Try debugging the code by adding lots of print statements that print out messages and the values of variables as the program executes so you can see what methods are being executed.
    If you don't understand my response, don't ignore it, ask a question.

  13. #13
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: Program wont compile run, I'm not getting any errors either? trying to pass varia

    Post #3:
    Quote Originally Posted by PedramCarter View Post
    I don't understand
    Post #5:
    I have no idea buddy
    Post #8:
    I don't know sorry :'(

    Notice the theme. That is the reason for you not being able to do this - you have a gigantic pile of code but you don't know how it actually works. Apparently you used some code generator for the GUI and you followed some steps in a youtube video to get to some of the other code, but at what point did you actually sit down and learn and try to understand any of this material? Did you do any reading into Swing GUI programming at all? Do you even know how the Scanner class really works?

    I don't think so. So why do you think that you can ask for help and understand anything that is being told to you? Obviously, you don't. Your only mission here is to get code and "make it work", without understanding any of it. Unfortunately, the only mission the people answering you have is to make you understand so you can make it work yourself. Are you going to keep repeating that you don't understand, or are you finally going to take steps so you do understand?
    Norm likes this.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  14. #14
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    12,059
    Rep Power
    26

    Default Re: Program wont compile run, I'm not getting any errors either? trying to pass varia

    Quote Originally Posted by gimbal2 View Post
    Post #3:

    Post #5:

    Post #8:
    You missed the best one.
    Quote Originally Posted by PedramCarter View Post
    I have no idea I think the gui created the extends.
    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  15. #15
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,003
    Rep Power
    33

    Default Re: Program wont compile run, I'm not getting any errors either? trying to pass varia

    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. Why wont this compile??
    By deeznatez in forum NetBeans
    Replies: 2
    Last Post: 10-05-2012, 08:54 AM
  2. Able to compile OK, But wont run..Help
    By subiedude101 in forum New To Java
    Replies: 2
    Last Post: 02-20-2011, 08:37 PM
  3. Replies: 4
    Last Post: 01-04-2011, 12:36 AM
  4. Why wont this compile?
    By Student101 in forum New To Java
    Replies: 8
    Last Post: 11-18-2010, 05:33 AM
  5. why wont it compile
    By bje98f in forum Advanced Java
    Replies: 1
    Last Post: 04-23-2009, 10:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •