The dialog initiates with height=0 and width=0
Hello everyone!
I'm developing some software for my final degree (i'm not an informatic...)
well the thing is that I am continuing the software of another guy, and I found the connect dialog quite unusable, thats why I deleted it and started another with the same name and basic functions from scratch (maybe a bad idea...)
the thing is that the main GUI calls the class "ShowConnectDialog" which is supposed to call the dialog panel "ConnectDialog"
THE PROBLEM: the ConnectDialog starts ok, but with no dimensions (width=0 and height=0) and i have to resize it manually...by now
the ShowConnectDialog class:
public class ShowConnectDialog extends Command
{
private static final String name = "show connect dialog";
private JFrame parent;
public ShowConnectDialog(JFrame parentFrame)
{
super(name);
parent = parentFrame;
}
public void execute()
{
new ConnectDialog(parent, ClientApp.getIP(), ClientApp.getPort()).setVisible(true);
}
}
Thanks in advance ;)
PS: I use Netbeans