I am a GXT beginner.I am trying to open a window inside a layout container and below is the code for that but i need to have this window maximised on opening with a maximise button on the frame so that when i minimise using browser minimise the whole screen resize but this is not happening with the current available code .Kindly help me with this.

int winWidth = (int) ((viewPort.getWidth() * 99.5) / 100);int winHeight = viewPort.getHeight();final Window win = new Window();
false);win.setSize(winWidth, winHeight);win.setMaximizable(true);