Results 1 to 5 of 5
Like Tree3Likes
  • 1 Post By SteveVitali
  • 2 Post By SteveVitali

Thread: How can I remove the minimize button from JFrame ??

  1. #1
    M.D.L is offline Member
    Join Date
    May 2012
    Posts
    2
    Rep Power
    0

    Default How can I remove the minimize button from JFrame ??

    Hello everyone

    I have project to do, but I detect this problem

    How can I remove the minimize button from JFrame ??-s5aql.png

    as you can see in the image, this window does not have minimize button and maximize button !!

    how can I do that ?? can I do it with JFrame ?? or there is a special way !?

    Thank you
    Last edited by M.D.L; 05-12-2012 at 02:04 AM. Reason: edit something

  2. #2
    SteveVitali is offline Member
    Join Date
    May 2012
    Posts
    4
    Rep Power
    0

    Default Re: How can I remove the minimize button from JFrame ??

    I would think that the only way to create a window with minimize and maximize would be to use a JDesktopPane with JInternalFrame 's, the JInternalFrame being the one that has the minimize and maximize ability. But I just learned Swing stuff like a week ago, so maybe there's an easier way.
    M.D.L likes this.

  3. #3
    SteveVitali is offline Member
    Join Date
    May 2012
    Posts
    4
    Rep Power
    0

    Default Re: How can I remove the minimize button from JFrame ??

    I might have misread your post the first time around. If you mean that you want a pop up like that, you can use a JOptionPane.showMessageDialog(), or something along those lines.
    M.D.L and Fubarable like this.

  4. #4
    M.D.L is offline Member
    Join Date
    May 2012
    Posts
    2
    Rep Power
    0

    Default Re: How can I remove the minimize button from JFrame ??

    Thank you very much SteveVitali, I forgot about JOptionPane.

    Thank you again :D

  5. #5
    danoc93 is offline Member
    Join Date
    Apr 2012
    Posts
    37
    Rep Power
    0

    Default Re: How can I remove the minimize button from JFrame ??

    resizable (false) or undercorated(true)... they would 1: make it unable for u to resize the windows 2: hide all the buttons (including x one)...

Similar Threads

  1. Replies: 8
    Last Post: 02-23-2012, 06:08 PM
  2. Replies: 6
    Last Post: 11-22-2010, 11:55 AM
  3. how to impliment minimize button in swing
    By prasad.vara in forum AWT / Swing
    Replies: 1
    Last Post: 07-20-2010, 09:34 AM
  4. Replies: 0
    Last Post: 04-28-2010, 01:39 PM
  5. minimize button and system tray
    By Kenan89 in forum New To Java
    Replies: 1
    Last Post: 12-10-2009, 03:31 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
  •