-
JPanel modal in a Framework
Hi, I would like to have some screens modal with in a framework.
In the API I see that the JDialog are modal and has some fields that
specify if the window are modal or not. The Problem is that I can't
extends the JPanel with JDialog or Window and then I can't use the
properties of this classes.
It's possible to have easily a JPanel modal?
-
Re: JPanel modal in a Framework
First of all, JDialog is already a subclass of Window. So you should be
able to use the properties of Window. Second, you can add a JPanel to your
JDialog if you like, and do whatever you like with it:
JPanel p = new JPanel();
dialog.getContentPane().add(p);
PC2
"Manu" <manolo_martinez@latinmail.com> wrote in message
news:3c503313$1@10.1.10.29...
>
> Hi, I would like to have some screens modal with in a framework.
> In the API I see that the JDialog are modal and has some fields that
> specify if the window are modal or not. The Problem is that I can't
> extends the JPanel with JDialog or Window and then I can't use the
> properties of this classes.
> It's possible to have easily a JPanel modal?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks