I am creating a software for displaying reports. The report contains more than
18000 lines of data and at least 60 images.Also, the requirements are such
that when the user clicks on the header of a particular topic (in a separate
page/panel/tree node) it should take him to the line mapped exactly against the
header. This line can be any one of the 18000 lines and its position can be dynamic ie. changing every time.
I just wanted to keep the whole thing simple, so i built a html page containing the
data and the images and loaded them into a JEditorPane. Everything woks
fine here, except for the OutOfmemory error that is inherent in JEditorPane.
Also, when this report is loaded with the -Xmx option, the memory consumption
of the software raises from around 30M to 144M, but with no outofmemory
errors. But, the application and the underlying OS slowed down considerably
and the performance reached down to a level that is simply unacceptable. So, I
had to look for a change.
The second thing that i tried was a JLabel. Here again, the problem was same
as above. Just to check how much memory intensive a JLabel was, i wrote a
program where i created 900 JLabels and added them to a panel, once with
plain text and the other time, with HTML text. The one with plain text took 11M
while the one with HTML Text took 34M. So, JLabel (and any other HTML
implementation) was out of question.
1) Is there some way where the HTML page can be displayed in a Non<br /> memory hogging manner?</p> <p>2) Can anyone get any other design idea on how to get about this thing? Just<br /> consider it as a problem of displaying a HTML page with inline hyperlinks, with<br /> the inline hyperlinks residing in a separate space. The main criteria is that the<br /> thing should look good, be efficient, load images well and must be able to drill<br /> down to an exact line. There is no restriction on how it is implemented.
if anyone has a solution to any of my above questions, pls respond.
[I have also posted this topic in Java Forums [http://forum.java.sun.com/thread.jspa?threadID=576758]]