Help on JInternalFrame

Hello Everybody,

I'm constantly getting an error with JInternalFrame. Following is my code. It's always going to the catch. Please help me out.

Thank you,

JInternalFrame internal = new JInternalFrame("TestFrame",true,true,true,true);

internal.setVisible(true);

internal.setAutoscrolls(true);

try

{

internal.setMaximum(true);

}

catch (Exception e)

{

System.out.println("inside JInternalFrame catch");

}

[502 byte] By [swvc2000] at [2007-9-26 4:04:59]
# 1
check with isResizeable() to see if the frame can be resized and if it can then setResizeable(true)
morgalr at 2007-6-29 13:04:00 > top of Java-index,Archived Forums,Java Programming...
# 2
Hi,Thank you for your reply. I checked isResizable(). It is resizable as my second parameter to JInternalFrame constructor is true. I called setResizable(true); also. But i'm still getting the same error. Any help would be greatly appreciated.
swvc2000 at 2007-6-29 13:04:00 > top of Java-index,Archived Forums,Java Programming...