Reputation: 1645
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?
Upvotes: 0
Views: 53
Reputation: 109815
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
Upvotes: 2