Search:

Type: Posts; User: Norm

Search: Search took 0.13 seconds.

  1. Replies
    22
    Views
    1,666

    Re: Illegal start of expression

    That happens when the image files are not in the right folder when the program executes.
  2. Replies
    22
    Views
    1,666

    Re: Illegal start of expression

    The compiler can not find a definition of the variable: pnl that is defined in scope (within the same pair of {}) with where it is being used/referenced.

    See 3) in post#7. Especially the before...
  3. Replies
    22
    Views
    1,666

    Re: Illegal start of expression

    You changed the name of the class from Window to Note, so that statement is no longer a valid constructor.
    Change the name (Window) to match the class name (Note).

    See the tutorial:
    Providing...
  4. Replies
    22
    Views
    1,666

    Re: Illegal start of expression

    The comments should be on the lines with the } so they can not be separated from them.

    Does the code compile without errors now?

    The Window method (its really the class constructor) is indented...
  5. Replies
    22
    Views
    1,666

    Re: Illegal start of expression

    Put a comment on the { for the start of the class definition
    and a comment on the } at the end of the class definition

    Put a comment on the { for the start of a method definition
    and a comment...
  6. Replies
    22
    Views
    1,666

    Re: Illegal start of expression

    When trying to fix your problem, did you try this:
    It helps if you add a comment on the method's ending } and on a class's ending }.

    See the code in post#8 Besides the labels on the } note how...
  7. Replies
    22
    Views
    1,666

    Re: Illegal start of expression

    Post#8 is an example.
    Methods can not be defined inside of other methods. Make sure the closing } for a method's definition is present before starting the definition a new method.

    Start with...
  8. Replies
    22
    Views
    1,666

    Re: Illegal start of expression

    Did you look at the instructions closely and follow them exactly? {s and }s are easy to miss

    The start of the statements that define the constructors and methods in a class should all be in the...
  9. Replies
    22
    Views
    1,666

    Re: Illegal start of expression

    Methods can not be defined inside of other methods. Make sure the closing } for a method's definition is present before starting the definition a new method.
  10. Replies
    22
    Views
    1,666

    Re: Illegal start of expression

    Window is the name of a java SE class. You should use a unique name for your class.
  11. Replies
    22
    Views
    1,666

    Re: Illegal start of expression

    Please copy full text of error message and paste it here.
    The message should show the source with a ^ under the location of the error.
    Here is a sample from the javac compiler:

    ...
Results 1 to 11 of 11