Results 1 to 2 of 2
  1. #1
    sandor is offline Member
    Join Date
    Apr 2007
    Location
    Pennsylvania,USA
    Posts
    45
    Rep Power
    0

    Default How to get rid of minimize and close icon on a jdialog?

    I have a dialog that pops up off one of my screens and I want it to close programmatically, meaning , I want the users to click the submit or cancel button, not the X at the upper right hand side of the screen. I also do not want them to minimize it and then not be able to find it later. How can I get rid of these ? It is a jDialog.
    thx.

  2. #2
    pegitha is offline Member
    Join Date
    Apr 2007
    Location
    Indiana
    Posts
    83
    Rep Power
    0

    Default

    Hi, Use this method:
    this.setUndecorated(true);
    that will get rid of the buttons at the upper right hand side of the dialog.

Similar Threads

  1. Minimize to System Tray In Windows
    By shapeshifter in forum AWT / Swing
    Replies: 4
    Last Post: 12-07-2008, 02:42 PM
  2. Replies: 1
    Last Post: 03-28-2008, 11:26 AM
  3. help with jdialog
    By leonard in forum AWT / Swing
    Replies: 1
    Last Post: 08-05-2007, 06:37 AM
  4. Close a JDialog Programmatically
    By Marcus in forum Advanced Java
    Replies: 1
    Last Post: 07-06-2007, 05:06 PM
  5. problems with jDialog in a JFrame
    By bbq in forum AWT / Swing
    Replies: 1
    Last Post: 07-05-2007, 05:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •