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?