Wrox Programmer Forums
|
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 18th, 2007, 05:40 AM
Registered User
 
Join Date: Jul 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default swing components

In Begining java2 it was given that all derived classes of Window and as well as Window can't be contained in other component. But how can we add JDialog, and some other swing components that are sub classes of Window into JFrame

 
Old July 21st, 2007, 05:19 AM
Authorized User
 
Join Date: Jul 2007
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

JFrame object cannot be a container of JDialog object. It can be a owner. For example, you can show a File Dialog on a button (which is present in a frame) click action. You can not include JDialog into JFrame. This is similar to model and mode less dialogs in other languages.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Interaction controller/SWING Composant yanis97 Java GUI 0 October 11th, 2006 03:02 AM
Swing Servlet Communication ? ? ? nigam.anand Servlets 0 April 22nd, 2006 02:27 AM
Swing and JSP Huxuelei JSP Basics 0 March 15th, 2005 09:01 AM
javax.swing on linux sunstrike Java GUI 3 July 11th, 2003 02:04 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.