Okay, so I have the following
while(!connected){
if (details){
System.out.println("connected");
defaultHost = tfServer.getText();
defaultPort = Integer.parseInt(tfPort.getText());
program.run();
}
System.out.println("Not connected");
}
where details is true when a button is clicked. This works fine expect that my console is getting spammed by "Not connected" until I press the button and details is true. How can I keep my while loop (!connected) running if I don't have the line System.out.println("Not connected"); ? If I remove it the while loop only executes once ... I am trying to have something like Do nothing until details is true
Any help is appreciated ! :D