• Post Reply Bookmark Topic Watch Topic
  • New Topic

JDialog

 
Farouk Mohamed2
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have panel(X) with a button and when it is clicked i like to bring a window(Y) up.
What kind of window(Y) should i have to create to have window(Y) different buttons and everything
If i use a JInternalFrame it is tied to frame and not to a panel what can i do.
This panel(X) is inside a Frame
Please Reply
Farouk
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by "tied to the frame". What do you want the window to do. If you want it modal, JDialog is the way to go. But it would be modal to the frame and not a panel.
 
Farouk Mohamed2
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thanks for reply
Thats my problem i want it tobe connect to panel and not to frame as the frame is a border layout and i dont want the window to cover the entire frame i want it over the panel
Farouk
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So set its location on the screen or create another panel that becomes visible in place of the one you want it to cover.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!