I have 2 JFrame : A and B from Screen A : call B as:
B b=new B();
b.setName("B1");
b.show();
and
B b=new B();
b.setName("B2");
b.show();
The result: show 2 screen B is: B1 and B2 If from Screen A: i want set value for control of B1 or B2. How code? Thanks?
use CardLayout instead of creating two or more JFrames
use JDialog with patent to JFrame
in the case that you have got real and important reasons to use another popup window, and/or with modality for mouse and key events
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.