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?
0 коммент.:
Post a Comment