Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to call Frame as modal frame from another Frame  RSS feed

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
I created a parentframe with a textField & button on it. In the action performedevent of button , i called a childFrame with a button on it. I want that the childframe should work as modal window so that after closing button on childframe , it should give me acess to parentframe. I don't want to call frames as dilog. is there is any slution by using threads?
 
Chantal Ackermann
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
place the frame in an upper layer, like the popup layer - than it stays on top of all the other frames that are normally placed in the defaultlayer.
see the API description on JLayeredPane for more information.
chantal
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!