how do i "hide sheet and hide window" like in spreadsheet.please help me in java swing code...a.s.a.p.thanx:pretty:

I've hidden a window behind a sheet when darkening a room to use as a darkroom, but no Java was involved, just some masking tape.

Nothing, just Jwenting's good old sarcastic side note. ;-)

please be a little more specific with the problem. if you wnat to hide a window that is a JFrame /JDialog use setVisible(false).
I dont know if there is a sheet like component in Swing yet, unless you have written it ground up.
If it is a JPanel that you have subclassed as a sheet, switch to the desired Jpanel subclass that you want displayed and updateUI() should work.