Java errors- I'm stumped

Discussion in 'Software' started by Just Playin, Oct 29, 2007.

  1. Just Playin

    Just Playin MajorGeek

    A friend asked me to help her with her Java assignment. It is intended to display an item of a DVD inventory with four buttons to move to the first, last, previous or next item. On lines 15 and 17, it throws out a compliler error, claiming it expects an identifier on each line. She's clueless, her instructor is AWOL and I've got a grand total of a few hours of scanning through her textbook, which apparently isn't enough to help. I'm not seeing the problem and would appreciate any help to get us on the right track. I have included all the relevant files in a zip folder attached here.
     

    Attached Files:

  2. timduk

    timduk Private E-2

    Probably way too late...

    Line 13/15 should be:

    private JPanel buttonJpanel = new JPanel();

    Line 17 should be:

    private JLabel label = new JLabel(logo);

    Remove "label" from line 11:

    private JLabel label1, label2.....label11;

    That gets you over those two errors - then you can solve the rest!
    :D
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds