Active rendering + modal dialog?

Hi, I’m active rendering swing

but when I display a modal dialog the gui doesn’t respond anymore(I have to resize the component to see changes)
My gues is that a modal dialog just blocks all other threads.
Would it be possible to allow my active rendering thread to keep running+displaying a modal dialog?

I wrote my own dialog class. That was the only way I could get around this problem while still using active rendering.

I’ve written 2 different dialog classes. In the first one, I believe I just added JPanels and only made them visible when they appeared. To make them modal, you have to disable all components in the parent panel when they’re visible.

In the second one, I wrote a whole new gui system and included a dialog class. My new gui system appears in a Swing JPanel but doesn’t use Swing internally. It does use some AWT stuff, like Graphics2D, Color, and Font, but it’s mostly all new stuff.

Writing a whole new gui system is overkill if all you want is a modal dialog class.

ok, I was thinking to work around the thread blocking.

But for example the JFileChooser just blocks all threads?
How can Swing still work if all threads are waiting?

I have a JDesktopPane and already created a modal JInternalFrame by setting the glasspane visible and ignoring mouse clicks from an online guide.

Using glasspane is certainly the way to go with respect to not introduce a peer.

I think you can just add a JFilechooser to an JInternalFrame that way a Dialog is not created and thus there’s no peer.