So now i've fixed : "If i run my main class (client.java) it shows my custom jframe".
But now it doesn't show the actualy client, it doesn't show the loading bar,background etc. Only the custom jframe.
My main method in my main class ( client.java):
Code:
public static void main(String args[]) {
try {
String args2[]={ "10", "0" ,"highmem" ,"members","32"};
String a = ("NoNameYet ");
int b = 120*3-43;
System.out.println(a + b);
if(args2.length != 5) {
System.out.println("Usage: node-id, port-offset, [lowmem/highmem], [free/members], storeid");
return;
}
nodeID = Integer.parseInt(args2[0]);
//portOff = Integer.parseInt(args[1]);
portOff = 0;
if(args2[2].equals("lowmem"))
setLowMem();
else if(args2[2].equals("highmem")) {
setHighMem();
} else {
System.out.println("Usage: node-id, port-offset, [lowmem/highmem], [free/members], storeid");
return;
}
if(args2[3].equals("free"))
isMembers = false;
else if(args2[3].equals("members")) {
isMembers = true;
} else {
System.out.println("Usage: node-id, port-offset, [lowmem/highmem], [free/members], storeid");
return;
}
signlink.storeid = Integer.parseInt(args2[4]);
signlink.startpriv(InetAddress.getLocalHost());
new Jframe(args2);
//client client1 = new client();
//client1.createClientFrame(503, 765);
} catch(Exception exception) {
}
}
hope this is enough information, thanks