Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

iconified and deconified a window

  Asked By: Fabiana    Date: Apr 01    Category: Java    Views: 860
  

i know these codes can iconified and deconified a window,but can i
disable it..i do not want user to minimize the frame...can anyone
tell me how to disable it?thanks...

frame.setState(ICONIFIED)-if the frame is iconified
frame.setState(NORMAL)-if the frame is NORMAL

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Lenora Green     Answered On: Apr 01

Have a look at the frame  method

setResizable(boolean resizable)

so your code should be

feame.setResizable(false);

 
Didn't find what you were looking for? Find more on iconified and deconified a window Or get search suggestion and latest updates.




Tagged: