Hi Sanjay,
using the above code i will get a frame which is of the full screen size. i am working on the windows platform, and when i want to maximize, i want to take into consideration the windows taskbar(start menu). that is, the maximize should work the same way as would a normal windows application.
also, if a user clicks on the maximize icon on the frame, i get the desired result. i want to get the same result from an event generated thru the program itself.
------
Amit