Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JFrame or customed JDialog or ?

 
Jes Sie
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm quite new at this. I have just done quite a few "small application" in JFrame. Each consists of a variety of JComponents. Now each of this JFrame is supposed to be a "on click dialog" for a main application(JFrame too)...
Now, after doing reading on http://www.javaranch.com/ubb/Forum2/HTML/001601.html and did a few prototypes, I may have to customised a JDialog to behave like my "small application". Can I add my JFrame programs onto JDialog? No, right. How about JPanel onto JDialog?
Any suggestion on how to go about this would be appreciated.
------------------
Thank you.
- Simon See
simon-ivy@usa.net
-after office hours-
necro-mani-cide
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you can use JPanel in a JDialog.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic