Click to See Complete Forum and Search --> : Urgent:problem with GUI


zantimen
January 29th, 2003, 11:37 AM
Hi guys,
Currently, I'm involved in a project n have the following probems
a)wat kind of text property to use to enable::
- highlight a row of text in a textArea.
- highlighting of words in the textarea.

b)how to make the program pause for a while untill the user clicks on a button to carry on the particular process.Cos i m using the while loop n the process just keeps goin on untill the end of the testing without pausing to catch the clicking of the buttonss on the GUI to continue.

c) how to enable two textboxs' scroll bar to move up n down at the same time when the user just drag one of the either textbox scroll bar.

thanx.
:rolleyes:

dlorde
January 29th, 2003, 05:12 PM
For highlighting text you need to use JTextPane (http://java.sun.com/j2se/1.4/docs/api/javax/swing/JTextPane.html).

I can't make out what you're talking about in point c. You'll have to explain more clearly.

A bird, a man, a loaded gun.
No bird, dead man, thy will be done...