I am writing my code in swing. To launch a private function of another class that can be called in awt thread . i simply write the code of that function in my class in SwingUtilities.invokeLater
thread.
main() {
SwingUtilities.invokeLater(new Runnable() {
//code of private function
});
}
but after executing this control is not coming back to main thread. Can anyone suggest what is happening and how to resolve this?