Results 1 to 2 of 2
  1. #1
    xpandaxlover is offline Member
    Join Date
    Apr 2010
    Posts
    2
    Rep Power
    0

    Default how to finish this?

    //Name______________________________ Date_____________
    import javax.swing.*;
    import java.awt.*;
    public class Scoreboard10 extends JPanel
    {
    private JLabel label1, label2, label3;
    private int total, max;
    public Scoreboard10()
    {
    setLayout(new GridLayout(1, 5));
    total = max = 0;

    add(new JLabel("Run: ", SwingConstants.RIGHT));
    label1 = new JLabel("0");
    label1.setHorizontalAlignment(SwingConstants.LEFT) ;
    add(label1);
    label2 = new JLabel("---");
    label2.setHorizontalAlignment(SwingConstants.CENTE R);
    label2.setFont(new Font("Serif", Font.BOLD | Font.ITALIC, 20));
    add(label2);
    add(new JLabel("Max: ", SwingConstants.RIGHT));
    label3 = new JLabel("0");
    label3.setHorizontalAlignment(SwingConstants.LEFT) ;
    add(label3);
    }
    public void update(boolean arg) //arg is true means player guessed correct
    {

    /************************/
    /* */
    /* Your code goes here. */
    /* */
    /************************/

    }
    }

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    xpandaxlover, I may disagree with mchammer11's wording, but I agree with his thrust here. Please let's see a little effort from you first, and then we'll be more than happy to help you.

    I've also deleted your double post. There's no need for that.

Similar Threads

  1. help me to finish my project..
    By syedabu in forum NetBeans
    Replies: 1
    Last Post: 07-19-2010, 09:13 PM
  2. convert please...to finish project
    By syedabu in forum Web Frameworks
    Replies: 1
    Last Post: 02-24-2010, 07:17 PM
  3. I know there's an error, let me finish typing!
    By Stravant in forum Eclipse
    Replies: 1
    Last Post: 12-26-2009, 03:26 PM
  4. Finish Java Application
    By ojsimon in forum Jobs Offered
    Replies: 8
    Last Post: 12-07-2009, 04:25 PM
  5. Next, Finish Buttons !!!
    By pele in forum SWT / JFace
    Replies: 1
    Last Post: 07-14-2007, 05:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •