Re: JavaFX, NetBeans Platform - Dialogs and Login
Steven Yi <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CANtcCs7C8H12AwbgVMQxpRcpqF1t5coWH_+5jgDj0XPuXi1Mww@mail.gmail.com> |
Hi Kevin, I'm not aware of any way to make a JFX Dialog modal from a Swing window. I did a quick search and found: http://stackoverflow.com/questions/28058142/making-javafx-alerts-dialogs-modal-within-swing-application If you do find something has changed or found a solution, I'd love to know. Thanks! steven On Mon, May 2, 2016 at 1:01 PM, kpenrose <[email protected]> wrote: > This is actually a dual question. > First, it doesn't seem possible to use JavaFX 8 dialogs within a NetBeans RCP application because you cannot force modality. It is possible to click into the NB app and just continue without the dialog. Is this correct? I have moved over to the NB platform dialogs, but I've had a couple of problems there, like a limitation on the number of lines of text in a message dialog. > Then there is the issue of a login screen - the examples all use a custom dialog for the login, and I was wondering if anyone had successfully implemented a JavaFX login view. Because all of the startup is running in a thread which isn't the JavaFX thread, I haven't been able to get the application to pause while the user enters their login credentials into the login view. The entire application continues to load. I've tried pausing threads and trying to make things application modal, but haven't had any success. > > Thanks. > > > >