Here is the code:
private static int ID;
private static String user;
private static int level;
private static int exp;
private static int r;
private static int gr;
private static int b;
public void paintComponent(Graphics g){
super.paintComponent(g);
Color clr = new Color(r,gr,B)/>;
g.fillRect(50, 50, 100, 100);
g.setColor(clr);
super.repaint();
}
public static void setValues(String username,int ID,int level,int exp,int r,int g,int B)/>{
createChar.user = username;
createChar.ID = ID;
createChar.level = level;
createChar.exp = exp;
createChar.r = r;
createChar.gr = g;
createChar.b = b;
System.out.println(username +" " + ID + " " + level + " " + exp + " " + r + " " + g +" " + " " + b );
System.out.println(createChar.user + createChar.ID + createChar.level+ createChar.exp + createChar.r + createChar.gr + createChar.B)/>;
}
when I run it it just stays black, any help ?
Thanks!

New Topic/Question
Reply



MultiQuote







|