Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java Frame - MODAL

Status
Not open for further replies.

sujitopics

Programmer
Oct 9, 2001
69
0
0
KR
Hai Friends
I am new to Java
I have a doubt.

I have 2 Frames like..Frame1 and Frame2
In Frame1 a Button called "OK"

When i click that button (OK) from Frame1 ....the second Frame should open as a MODAL Frame.

Is it possible to Call another Frame class as MODAL ?

If anybody knows about this...please help me.
What shall i do in Frame1 and Frame 2 to make Frame2 as MODAL Frame.

Thanks in advance
Yours
Suji
 
Sorry suji!
You can't make Frame a modal.
For this you have to use one of the frame as Dialog.

The first frame calls the second dialog(which you thought out to be a frame) and sets a property as modal to it.It modal property can be passed as a parameter in the constructor orelse as method using setModal(true) of the child dialog .

Rest all the properties of the second frame(now modal remains the same)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top