Results 1 to 2 of 2
Thread: how to finish this?
- 04-09-2010, 07:25 PM #1
Member
- Join Date
- Apr 2010
- Posts
- 2
- Rep Power
- 0
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. */
/* */
/************************/
}
}
-
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
-
help me to finish my project..
By syedabu in forum NetBeansReplies: 1Last Post: 07-19-2010, 09:13 PM -
convert please...to finish project
By syedabu in forum Web FrameworksReplies: 1Last Post: 02-24-2010, 07:17 PM -
I know there's an error, let me finish typing!
By Stravant in forum EclipseReplies: 1Last Post: 12-26-2009, 03:26 PM -
Finish Java Application
By ojsimon in forum Jobs OfferedReplies: 8Last Post: 12-07-2009, 04:25 PM -
Next, Finish Buttons !!!
By pele in forum SWT / JFaceReplies: 1Last Post: 07-14-2007, 05:22 PM
Bookmarks