CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2003
    Posts
    14

    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.

  2. #2
    dlorde is offline Elite Member Power Poster
    Join Date
    Aug 1999
    Location
    UK
    Posts
    10,163
    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
  •  





Click Here to Expand Forum to Full Width

Featured