After
This may be a stupid mistake of some kind from me, but I have to run through a Java GUI tutorial I am doing. When I copy and paste the code into eclipse from the tutorial, it gets an error in the paste code. Anyone trying to run it is causing a console error and an empty GUI window.
For example:
checkbox chk15to20 = new checkbox (a ???? 15 to 19 years olda ????, true, age); An error on the Eclipse Logic String "ArgumentList rather than expecting syntax errors" and saying, "A type can not be solved year."
I can fix manually re-typing, on the basis of character, code, problem on which it is compiled correctly
error log here when it (class Button is run):
java.lang.Error: the compilation problems have not been resolved: syntax error on the token, ArgumentList instead of year, a type duplicate field buttons on token expected. Old syntax error can not be solved, argumentsList hopes instead of dupl Iket area Buttons.old
on practice1.Buttons. & Lt; Init & gt; (Button: Java: 13) sun.reflect.NativeConstructorAccessorImpl.newInstance0 (original method) at sun.reflect.NativeConstructorAccessorImpl.newInstance (unknown source) sun.reflect.DeligatingConstructorAccessorImpl.newInstance (unknown source) java.lang.reflect.Constructor. NewAnstate on the sun.applet.AppletPanel.runLoader on sun.applet.AppletPanel.createApplet (unknown source) at java.lang.Class.newInstance (unknown source) at java.lang.Class.newInstance0 (unknown source) (unknown source) (Unknown source) at sun.applet.AppletPanel.run (unknown source) at java.lang.Thread.run (unknown source)
Your double quote is incorrect NY must use double-quotes, ie press SHIFT on a US keyboard.
Like this:
checkbox chk15to20 = new checkbox ("15 to 19 year old", true, age);
Comments
Post a Comment