Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / August 2004

Tip: Looking for answers? Try searching our database.

Help: displaying many text lines with graphics fast in applet

Thread view: 
John Bokma - 28 Aug 2004 21:08 GMT
Hi,

I am looking for a way to display a lot (500 - 2000) lines of text
mixed with graphics fast in an applet.

Not all lines will be visible, so I want a vertical scrollbar.
Also, I want to use dynamic word wrap, i.e. resizing the window changes
the word wrap.

Main problem is, how can I determine the amount of space above and below
the current view fast, so I can correctly calculate the size of the
scrollbar?

New lines will be added to the bottom. My main problem is resizing, which
means many changes to the layout.

Any pointers on tutorials for this? Or some example source?

TIA,
John

Signature

John                               MexIT: http://johnbokma.com/mexit/
                          personal page:       http://johnbokma.com/
       Experienced programmer available:     http://castleamber.com/
           Happy Customers: http://castleamber.com/testimonials.html

Paul Lutus - 29 Aug 2004 04:22 GMT
> Hi,
>
> I am looking for a way to display a lot (500 - 2000) lines of text
> mixed with graphics fast in an applet.

Define "mixed with graphics." Leave nothing to the imagination.

> Not all lines will be visible, so I want a vertical scrollbar.
> Also, I want to use dynamic word wrap, i.e. resizing the window changes
[quoted text clipped - 3 lines]
> the current view fast, so I can correctly calculate the size of the
> scrollbar?

Why don't you use one of the existing classes that does this exact thing, in
all respects, very fast?

> New lines will be added to the bottom. My main problem is resizing, which
> means many changes to the layout.

It doesn't mean you have to do anything about that explicitly, if the applet
is designed properly.

Signature

Paul Lutus
http://www.arachnoid.com

John Bokma - 29 Aug 2004 20:18 GMT
>> Hi,
>>
>> I am looking for a way to display a lot (500 - 2000) lines of text
>> mixed with graphics fast in an applet.
>
> Define "mixed with graphics." Leave nothing to the imagination.

smileys in the text

>> Not all lines will be visible, so I want a vertical scrollbar.
>> Also, I want to use dynamic word wrap, i.e. resizing the window
[quoted text clipped - 6 lines]
> Why don't you use one of the existing classes that does this exact
> thing, in all respects, very fast?

Because I don't want to use Swing.

>> New lines will be added to the bottom. My main problem is resizing,
>> which means many changes to the layout.
>
> It doesn't mean you have to do anything about that explicitly, if the
> applet is designed properly.

word wrapping must be handled by my own component, can't use Swing.

The speed problem turned out to be me using System.out.println :-$ So
probably what I am doing is going to work fast enough for me.

Signature

John                               MexIT: http://johnbokma.com/mexit/
                          personal page:       http://johnbokma.com/
       Experienced programmer available:     http://castleamber.com/
           Happy Customers: http://castleamber.com/testimonials.html



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.