By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,994 Members | 1,621 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,994 IT Pros & Developers. It's quick & easy.

Java Inventory Program HELP- ERROR!!!

P: 6
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:

Expand|Select|Wrap|Line Numbers
  1. // Display The CD's.
  2.     import java.awt.FlowLayout;
  3.     import javax.swing.JFrame;
  4.     import javax.swing.JButton;
  5.     import javax.swing.JTextField;
  6.     import javax.swing.Icon;
  7.     import javax.swing.ImageIcon;
  8.     import javax.swing.JOptionPane;
  9.  
These are the errors:

C:\Documents and Settings\REBECCA\My Documents\School\Block 7 Classes\IT307\Inventory4b.java:182: illegal start of type
import java.awt.FlowLayout;
^
C:\Documents and Settings\REBECCA\My Documents\School\Block 7 Classes\IT307\Inventory4b.java:182: <identifier> expected
import java.awt.FlowLayout;

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

Tool completed with exit code 1
May 12 '07 #1
Share this Question
Share on Google+
1 Reply


rsrinivasan
100+
P: 221
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.
May 12 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.