Results 1 to 7 of 7
  1. #1
    santhosh_el is offline Member
    Join Date
    Feb 2009
    Posts
    50
    Rep Power
    0

    Default how to disable minimize and maximize button in jframe window

    dear sir,

    how to disable maximize and minimize button in jframe window.


    thank u
    santhosh

  2. #2
    RamyaSivakanth's Avatar
    RamyaSivakanth is offline Senior Member
    Join Date
    Apr 2009
    Location
    Chennai
    Posts
    806
    Rep Power
    6

    Default

    Just check this method helps u

    setResizable
    public void setResizable(boolean resizable)Sets whether this frame is resizable by the user.

    Parameters:
    resizable - true if this frame is resizable; false otherwise.
    See Also:
    isResizable()
    Ramya:cool:

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    setResiszable not hide the minimize button. If you want you can use setUndecorated(false) to hide those two buttons. Actually it hides the title bar.

    If you still want to use the tittle bar, you have to use a JDialog, instead JFrame. Then setRezisable helps you.

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default

    Erm, setUndecorated(true) // not false

    db

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by Darryl.Burke View Post
    Erm, setUndecorated(true) // not false

    db
    :D Thanks lol. Just misses the right spot myself, sorry about that.

  6. #6
    Goonalaxmi is offline Member
    Join Date
    Nov 2010
    Posts
    1
    Rep Power
    0

    Default

    Sir,
    How to provide music in java while a window is opening??

  7. #7
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by Goonalaxmi View Post
    Sir,
    How to provide music in java while a window is opening??
    Welcome to the forum. We ask that you please don't hijack another's thread and ask your question in its own thread. I'm going to lock this thread now.

Similar Threads

  1. Disable Radio button
    By AJG in forum New To Java
    Replies: 3
    Last Post: 05-10-2011, 11:09 AM
  2. Disable Save button - Acrobar Reader
    By Deepa in forum New To Java
    Replies: 1
    Last Post: 03-06-2009, 12:15 PM
  3. Disable the WebBrowser Back button
    By Deepa in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 11-26-2008, 09:10 PM
  4. how disable the display of close button on the frame
    By kalanidhi in forum New To Java
    Replies: 6
    Last Post: 11-19-2008, 09:51 AM
  5. disable parent window
    By ismailsaleh in forum AWT / Swing
    Replies: 1
    Last Post: 01-07-2008, 11:15 PM

Posting Permissions

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