|
-
January 29th, 2003, 12:37 PM
#1
Urgent:problem with GUI
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.
Last edited by zantimen; January 30th, 2003 at 08:00 PM.
-
January 29th, 2003, 06:12 PM
#2
For highlighting text you need to use JTextPane.
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...
Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|