Friday 28 February 2014

How to initialize labels in Java

Posted by Саша 09:37, under | No comments


How to initialize labels in Java? How to initialize labels in Java?

I just need to know the word.

Like how String initializes a string, or double does a number, or int does a number.

Or like JTextField initializes a text field. I'm doing a public class called Variables, and so far I have:

public class Variables {
public String NameText;
public String CostumeText;
public String CandyText;
public JLabel NameLabel;
public JLabel OutfitLabel;
}

but theres errors under the JLabel parts. Help?


Other Answers:













0 коммент.:

Post a Comment