[Jscroll-developer] upgrading JDesktopPane to JScrollDesktopPane
Brought to you by:
tom_tessier
From: Philippe C. <pf...@st...> - 2003-07-15 14:49:41
|
Hello, I have tryed to replace my JDesktopPane for a JScrollDesktopPane in an existing application. I found a few problems: 1. JScrollDesktopPane does not subclass JDesktopPane which makes it relatively painful to replace because all declaration have to be changed. It would be a lot easier if I could have just changed the call to the constructor. 2. JScrollDesktopPane does not subclass the JLayeredPane. It also does not support the creation of JInternalFrame on different layers. My Application uses the PALETTE_LAYER to show floating tool bars. 3. Some components attached to the JScrollInternalFrame do not serialize using XMLEncoder. RootToggleButton and RootRadioButtonMenuItem throw InstantiationExceptions probably because they do not have no-argument constructors. 4. JScrollDesktopPane does not seem to respect the type of the Internal Frames you feed it. If I make a subclass of JInternalFrame called MyInternalFrame, add it to the desktop and then I call getAllFrames(), I will not get a MyInternalFrame back but a JScrollInternalFrame. For all these reason, I can't use the JDesktopScrollPane with my current application (even though I really want to). Do you think these changes are difficult to make? I would like to get involved. How should I proceed? Checkout the cvs and send patches? Philippe |