Hello JGO, I know there are countless posts relating to my error but the majority of them are pertaining to / are involving the firing of a event and than the freezing occurs.
Now I know my problem is along the same lines.
EDIT: Sorry if this question has already been answered here :<
Here is my pseudo-code:
(Custom networking kit)
public static void main(String[] args) {
new Loader().run();
}
public Loader() {
// create UI's
// show splash screen with progress bar etc..
}
public void run() {
// fire a SwingWorker to load resources / update UI's
}
/* Called upon when the SwingWorker finishes loading resources */
protected void done() {
loading = false;
try {
server.bind();
} catch (BindException e) {
e.printStackTrace();
} catch (UnknownHostException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
game_window.show();
}
I have tried firing both calls separately / together on SwingUtilities/invoke/wait methods and the no responding still occurs.
I’ve ran into this problem a couple times in the past and I’ve managed to solve it but now I cannot (At the moment) and that’s why I’m coming here and asking for help :>
Hopefully somebody can post back with some pseudo-code on how I should do this so I don’t have to spend hours trying to solve it haha