Anyone no how to get it working? i get:
java.lang.IllegalArgumentException: adding a window to a container
Maybe im pushing the Xith swing angle a little to far?
here me code- nice and simple:
public class InternalFrame extends UIWindow {
public InternalFrame(int width, int height, boolean includeExitButton) {
super(width, height, true, true);
JDesktopPane desktop = new JDesktopPane();
desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
JFrame j = new JFrame("hello there");
j.setBounds(30, 30, 200, 400);
j.setVisible(true);
desktop.add(j);
setRoot(desktop);
}
}