Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Unmovable frame (window) -- setFocus

  1. #1
    Java kindergarten chronoz13's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    659
    Thanks
    177
    Thanked 30 Times in 28 Posts

    Default Unmovable frame (window) -- setFocus

    excuse me .. what method should i use to disable the movement of a window,

    as far as i remember when we were using VB-studio. the method that prohibits a user to move a simple window

    is "setFocus = false",


    but when i use it in my program (setFocusable(false)) , i can still move the window(frame) in any part of my screen

    what should i do about this?



    and another one... what should i use to avoid minimizing the window?
    Last edited by chronoz13; December 6th, 2009 at 02:02 AM.


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Unmovable frame (window) -- setFocus

    Look at the method setUndecorated(true). This method should prevent window movements and resizes by removing the title bar and resize elements from it.

  3. #3
    Java kindergarten chronoz13's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    659
    Thanks
    177
    Thanked 30 Times in 28 Posts

    Default Re: Unmovable frame (window) -- setFocus

    LOL!! ahahah yeah it doesnt move ... but it looks stupid... no frame.... whahahahahahhaha


    anyway sir.. tnx for that .... is there any other way?
    Last edited by chronoz13; December 7th, 2009 at 04:06 AM.

Similar Threads

  1. Drawing image on JPanel from another frame
    By jeryslo in forum AWT / Java Swing
    Replies: 3
    Last Post: December 8th, 2009, 04:01 PM
  2. how to modify a JList Frame?
    By JM_4ever in forum AWT / Java Swing
    Replies: 0
    Last Post: October 14th, 2009, 11:58 PM
  3. The Frame to be Center Position
    By r12ki in forum AWT / Java Swing
    Replies: 3
    Last Post: October 1st, 2009, 10:36 AM
  4. Replies: 5
    Last Post: September 19th, 2009, 06:48 AM
  5. Navigating from one window to another
    By visharaddhavle83 in forum AWT / Java Swing
    Replies: 2
    Last Post: August 6th, 2009, 07:55 AM