how i disable the frame window?

how i disable the frame window?i had used frame.disable(); function but its not work...disable function works only on components its not work on frame..
[173 byte] By [rakhi@odma] at [2007-11-27 3:57:30]
# 1
disable is deprecated...try setEnabled(boolean)and a Frame is a Component
suparenoa at 2007-7-12 9:01:50 > top of Java-index,Desktop,Core GUI APIs...
# 2

try this out...

Intead of disabling Frame try to disable all the components over Frame

i.e. If I have two buttons and one textfield ....disable all these three componnts to get same effect you want..

use setEnabled(boolean b); method

Thanks

Message was edited by:

SUSHANT_J

SUSHANT_Ja at 2007-7-12 9:01:51 > top of Java-index,Desktop,Core GUI APIs...
# 3
you can make setVisible(false) , so that frame will disappear. setEnabled(false) for all the components on the frame.regards
nikhil_shravanea at 2007-7-12 9:01:51 > top of Java-index,Desktop,Core GUI APIs...
# 4
thanks but i do not want to disappear the frame i want to disable the frame.my frame had many components so i do not want to apply setEnable(false); to all those components.plz tell me a good method to disable the frame?thanks
rakhi@odma at 2007-7-12 9:01:51 > top of Java-index,Desktop,Core GUI APIs...
# 5
setEnabled(boolean); function also not working on frame...my frame had many components so i do not want to apply setEnable(false); to all those components.plz tell me a good method to disable the frame?thanks
rakhi@odma at 2007-7-12 9:01:51 > top of Java-index,Desktop,Core GUI APIs...
# 6
thaks but my frame had many components so i do not want to apply setEnable(false); to all those components.plz tell me a good method to disable the frame?thanks
rakhi@odma at 2007-7-12 9:01:51 > top of Java-index,Desktop,Core GUI APIs...
# 7
Keep Frame as it is, just make the components on the frame disable using setEnabled(false); hope this will work.jButton1.setEnabled(false); regards
nikhil_shravanea at 2007-7-12 9:01:51 > top of Java-index,Desktop,Core GUI APIs...
# 8

hi!

1) which one you are using? Frame/JFrame ?

2) exactly what do you want to disable?

a) entire frame including titlebar buttons

b) just all the child components, menus, toolbar buttons

c) what should be the behavior of taskbar at the time of disabled frame object?

i think for a proper and to the point solution these are thing one need to know.

regards

Aniruddha

Aniruddha-Herea at 2007-7-12 9:01:51 > top of Java-index,Desktop,Core GUI APIs...
# 9
i want to disable whole LFrame.means including all its components...........................
rakhi@odma at 2007-7-12 9:01:51 > top of Java-index,Desktop,Core GUI APIs...
# 10
Hello,you please go through all the questions. there are few more things left. i think you have to reply those as well. please read it carefully.regards Anirudha
Aniruddha-Herea at 2007-7-12 9:01:51 > top of Java-index,Desktop,Core GUI APIs...
# 11
anyone knows?plz help..
rakhi@odma at 2007-7-12 9:01:51 > top of Java-index,Desktop,Core GUI APIs...