Thread « JOptionPane « Java Swing Q&A





1. Is JOptionPane.showMessageDialog thread safe?    stackoverflow.com

JOptionPane.showMessageDialog is supposed to be a useful utility for getting user feedback as it blocks your current thread while you wait. I would expect therefore that it would be thread-safe and that ...

2. Share data between threads and JOptionPane needs thread to run!    stackoverflow.com

            public void aMethod(){
              new Thread(new Runnable() ...

3. Creating the "JOptionPane effect" with my own JFrame    stackoverflow.com

I have this main JFrame (call it DrinkChooser) that shows another complex confirmation JFrame (call it ConfirmWin). The ConfirmWin has only two JButtons, confirm and cancel. I want to do this: (in DrinkChooser, assume ...

4. Showing "JOptionPane.showMessageDialog" without stopping flow of execution    stackoverflow.com

I'm currently working on a project that's getting more complex than I thought it would be originally. What I'm aiming to do right now is show a message dialog without halting ...

5. What is the (event-dispatch) thread safe usage for JOptionPane.showMessageDialog and swing.utils.invokeAndWait?    stackoverflow.com

I have a simple groovy script that from its main thread of execution needs to display some dialog boxes to the user. My swing knowledge is limited and rusty but I ...

6. is it possible to have multiple JOptionPane dialogs?    stackoverflow.com

does anyone know how do we have a JOptionPane dialog above another JOptionPane dialog?

7. Is JOptionPane thread safe?    coderanch.com

I was thinking about this: All dialogs are modal. Each showXxxDialog method blocks the current thread until the user's interaction is complete. However, if the current thread is the event dispatch thread, then it is not blocked but sent to keep pumping events until the dialog is closed. I took this as "it does not block the EDT, but when I ...

8. JOptionPane halts RMI thread    coderanch.com

Hi guys, I need help about this problem: the application I'm working on is a java gestional software. I recently have implemented RMI callbacks so that the server can trigger updates on clients. After one of the clients does some modifications the server calls the refresh method of the other clients connected to refresh their opened jtables. The situation that's giving ...