JDialog w/o titlebar


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: JDialog w/o titlebar

  1. #1
    raymond Guest

    JDialog w/o titlebar


    hi there, going through the java.sun forums, looks like there are 3 solutions:

    1. upgrade to v 1.4 and call something like "unDecorated" ( i can't upgrade!
    )

    2. use JNI ( not sure how...but i'd prefer to stick with pure java )

    3. use JWindow ( but I can't make it MODAL )

    I prefer option 3 but could someone please post the code to make the window
    modal so it's like a dialog box w/o the titlebar.

    Thank you very much for your help

    cheers
    raymond

  2. #2
    Swapnil Guest

    Re: JDialog w/o titlebar


    Hi,

    1. Have a look into handleEvent to see how it is handled for a Modal JDialog.

    2. Try to use your own Look and Feel for JDialog.

    Regards,Swapnil



    "raymond" <rlam4659@shaw.ca> wrote:
    >
    >hi there, going through the java.sun forums, looks like there are 3 solutions:
    >
    >1. upgrade to v 1.4 and call something like "unDecorated" ( i can't upgrade!
    >)
    >
    >2. use JNI ( not sure how...but i'd prefer to stick with pure java )
    >
    >3. use JWindow ( but I can't make it MODAL )
    >
    >I prefer option 3 but could someone please post the code to make the window
    >modal so it's like a dialog box w/o the titlebar.
    >
    >Thank you very much for your help
    >
    >cheers
    >raymond



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