JPanel modal in a Framework


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: JPanel modal in a Framework

Hybrid View

  1. #1
    Manu Guest

    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?

  2. #2
    Paul Clapham Guest

    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center