Java Inventory Program HELP- ERROR!!!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lucky29105
    New Member
    • May 2007
    • 6

    #1

    Java Inventory Program HELP- ERROR!!!

    I am at my wits end here- I have an assignment due today (05/11) and I still cannot compile. I am getting 14 errors! I don't want someone to do my work, but I need help, I am stuck. Here is the part where I am getting the errors:

    Code:
    // Display The CD's.
    	import java.awt.FlowLayout;
    	import javax.swing.JFrame;
    	import javax.swing.JButton;
    	import javax.swing.JTextField;
    	import javax.swing.Icon;
    	import javax.swing.ImageIcon;
    	import javax.swing.JOptionPane;
    These are the errors:

    C:\Documents and Settings\REBECC A\My Documents\Schoo l\Block 7 Classes\IT307\I nventory4b.java :182: illegal start of type
    import java.awt.FlowLa yout;
    ^
    C:\Documents and Settings\REBECC A\My Documents\Schoo l\Block 7 Classes\IT307\I nventory4b.java :182: <identifier> expected
    import java.awt.FlowLa yout;

    (etc.)......... ...........
    ^
    14 errors

    Tool completed with exit code 1
  • rsrinivasan
    New Member
    • Mar 2007
    • 221

    #2
    Hi,

    If possible send ur full code. I think you had put some code outside the function. That means you would misplace the close brace "}".

    Thanks & Regards,

    Srinivasan r.

    Comment

    Working...