-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
The notepad example has a working example on how to use Swing dialogs. However, bear in mind that you're using Swing, which means you won't get "native-looking" dialogs or components. I've struggled with this myself and I found that, unless you need something very specific (like a file browsing dialog), it's better to use Compose's Dialog functions and create your own alert dialog: it'll look better and be uniform across platforms. |
Beta Was this translation helpful? Give feedback.
-
I believe it is not a good option to call Dialog() from callback. It should be called from Composition tree under some conditions. And these conditions should be managed from callbacks. |
Beta Was this translation helpful? Give feedback.
-
It is not a good option to call Dialog() from callback. It should be called from Composition tree under some conditions. And these conditions should be managed from callbacks. |
Beta Was this translation helpful? Give feedback.
It is not a good option to call Dialog() from callback. It should be called from Composition tree under some conditions. And these conditions should be managed from callbacks.