简体   繁体   中英

can I change the focus between my two JDialog?

So. I have a MainScreen extends javax.swing.JFrame from my MainScreen i open a JDialog

Logout logout = new Logout(this,true,utilajx,user1);
 logout.setVisible(true);

then from my JDialog I will open an other JDialog and I Want to set the focus to it.:

dlg = new DialogVirtualKeyboardReal(mainScreen, false, codArticol);
       dlg.setLocaleL(Locale.ENGLISH);

this is how it looks like, I want to make my keyboard in focus but i can't

if I change the modal parameter to true it works how i want. Thank you for -1.

  lg = new DialogVirtualKeyboardReal(mainScreen, true, codArticol);
           dlg.setLocaleL(Locale.ENGLISH);

And here it is what I wanted

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM