JDialog « JProgressBar « Java Swing Q&A





1. JDialog goes behind after progressbar finishes    stackoverflow.com

I have JPanel, from which I am opening a search criteria Dialog that extends AbstractAIFDialog. It consists of search criteria text field, result table view and search button. After clicking Search, ...

2. JProgressBar inside a JDialog    java-forums.org

public void run() { setVisible(true); } public void viewProgress() { try { CheckersClient client = new CheckersClient(serverIP, port); client.connect(); progressBar.setIndeterminate(false); progressBar.setValue(50); statusLabel.setText("Connected, login with username..."); if (client.login(userName) == CheckersDataLogin.SERVER_LOGIN_SUCCESSFUL) { progressBar.setValue(100); statusLabel.setText("Login process completed"); //new Thread(client).start(); setVisible(false); } } catch (InvalidLoginException e) { System.out.println(e.toString()); } catch (Exception e) { System.out.println("Couldn't connect to server."); } }