0

Hi, i want to call frame B from Frame A

 private void BFrameBActionPerformed(java.awt.event.ActionEvent evt) {
Frame B = new Frame
B.setVisible(true);
}

NOTE :calling JframeB is trigerred by a jButton
but when I do this FrameA overlays my Frame B. can someone help me with this?

3
Contributors
3
Replies
4
Views
4 Years
Discussion Span
Last Post by Ashenvale
0

You could try calling requestFocus for window B to bring it to the front. Details are in the API doc as always.

Edited by JamesCherrill

0

@stultuske :D you are right it does work. I wonder why it looks like that earlier when it's ok now .. but anyway thank you for all the reply :))

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.