Why don't you just put two buttons labeled next and previous, then
simply change the label text values and textField values when they are
pressed. You can keep 3 or 4 textfields depending on your program.
And if any textfields are left over in the last bunch of datavalues then
just make them invisible.

Further suggestions if helpful:
If the order and number of textfields aren't obvious, put more labels
with numbers in them, and write out the total number of textfields below
in another label.

If you want the original scrolling effect then place these where the
scrollbar is and make a bar the same color as the scrollba with a
seemingly moving bar via drawing rects, although this would be too much
work and ridiculous in my opinion.

Imran Ali Rashid.

lei Li wrote:
>
> Hi, everybody
> I have developed a three-tier web application using Java applet, Java
> Servlet, and Oracle, and I am experiencing some problems which I do not
> know how to solve at this time.  I hope you can help me.
> In this application, my Java applet communicates with the Java Servlet
> applications on a web server, and the Servlets communicate with a very
> big Oracle database.
> In my applet, I have a scrollpan in a frame. The scrollpan will show
> many text fields with data filled in them, using GridbagLayout. When
> the vertical scrollbar is clicked, the text boxes(fields) along with
> the data can be scolled up or down. I found two problems with it:
> 1. The number of the text boxes depends on the amount of the data that
> are retrieved from the database. The more data I get, the more text
> fields I have and the longer it takes to show up on the user's browser.
> 2. When the text fields move up or down, the appearance of the
> movements look like the wave in the sea. It is a kind of annoying.
> In order to improve the efficiency and make the GUI more user-friendly,
> I try to do the following: I want to have a fixed number of text
> boxes(fields) at fixed position on the scrollpan. When the vertical
> scrollbar is clicked, only the data inside the text fields will move up
> or down and the text boxes will remain in their orginal positions.
> I am not sure if I can do the above just using Java awt. Or, maybe I
> should use other software or language to implement this application?
> I would appreciate any suggestions you have to solve my problems.
>
> Thank you
> Lei Li

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to