0

I have created one Jframe mainframe which size is fit to monitor size.
I have created another frame called subframe which size is 300,300 .
My problem is when i open the subframe from the mainframe iam not suppose to use mainframe without close the current frame . How can i achieve this please helpme........

Edited by bharath54321: n/a

3
Contributors
8
Replies
9
Views
6 Years
Discussion Span
Last Post by mKorbel
1

Use a JDialog for the subframe - you can control its modality to block all input to other windows in your app while its open (and other variants)

0

I have three windows if i click the first window then second should be on top that i did using the property Isontop but now the problemis if i view the third window it also should be on top

0

yes that's correct,

1/ remove Modality for both (be sure that dialog.setAlwaysOnTop(true);)
2/ set differen Location on screeen fior both dialog.setLocation(x, y);

0

How to remove modality for JDialog or which method is used to do that......

This topic has been dead for over six months. 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.