Solved

MDI performance problem with JInternalFrames

Posted on 2001-07-09
4
374 Views
Last Modified: 2012-06-21
I'm creating an applet which implements a MDI (Multiple Document Interface) using the jdk 1.2 (with respective swing components from the javax.swing.* package).  The MDI consists of a JFrame which contains a JDesktopPane.   JInternalFrames are created and then added to the JDesktopPane (via a separate Thread) using the method call:

jDesktopPaneObject.add(jInternalFrameObject).

The JInternalFrames appear on the JDesktopPane OK, however their GUI performance is terrible.  Repositioning (draging and droping) or resizing the window is excrusiatingly slow (about 20x slower than using simple JFrames).  

Does anyone know how I could improve the GUI performance of my MDI so that my
JInternalFrames respond about as well as if I used JFrames?

0
Comment
Question by:CatDevlp00
  • 2
  • 2
4 Comments
 
LVL 7

Expert Comment

by:Sasha_Mapa
ID: 6268106
A. DON'T use 1.2 - use either 1.1 (this is preferable, if you can) or 1.3
B. Try myDesktopPane.putClientProperty("JDesktopPane.dragMode", "outline") or myDesktopPane.putClientProperty("JDesktopPane.dragMode", "faster")


Sasha Maryanovsky.
0
 

Author Comment

by:CatDevlp00
ID: 6270120
Thanks for the help Sasha

However I don't have a choice for the jdk version, I must use 1.2.

The call myDesktopPane.putClientProperty ("JDesktopPane.dragMode", "outline") improves the performance to an acceptable level.  However, if I can, I would like to drag and drop the entire JInternal frame and not just the outline.  The other method
myDesktopPane.putClientProperty("JDesktopPane.dragMode", "fastest") doesn't improve the performance.  Do have any other ideas on how to improve performance dragging and dropping JInternalFrames?

0
 
LVL 7

Accepted Solution

by:
Sasha_Mapa earned 300 total points
ID: 6272180
>The other method myDesktopPane.putClientProperty("JDesktopPane.dragMode", "fastest") doesn't improve the performance.

It's not "fastest", it's "faster" - it should improve performance of dragging significantly.

Sasha Maryanovsky.
0
 

Author Comment

by:CatDevlp00
ID: 6273604
Thanks for the help Sasha, I must have been starring at my screen too long yesterday.
I tried "faster" which did improve the drop and drag performance of the JInternalFrames.
However, performance still suffers if the user opens more than 3 JInternal Frames at once.

I'm going to use "outline" instead, which will be acceptable.  Thanks for your help.  
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now