0

I have two text area on the screen, I can make bold the different words between two text areas and I want to have for up and down to go the different words helping this button on the text areas. how can I do that?

Edited by vstl: re

3
Contributors
6
Replies
7
Views
5 Years
Discussion Span
Last Post by NormR1
0

what do you mean by:

and I want to have a button up and down to go the different words helping this button on the text areas.

0

Are you asking how to have one button that when pressed will select the next word towards the top of the list of words and another button that will select the next word towards the bottom of the list?

0

Are you asking how to have one button that when pressed will select the next word towards the top of the list of words and another button that will select the next word towards the bottom of the list?

yes you are right?

0

You will need to add action listeners to the buttons. The listener code will need the logic to move the selection to the next word in the list as determined by which button was pressed.

0

Can I use keyEvent for this when I use up or down key, its gonna show the next different word?

0

Are you using JButtons on your GUI to control the action
or are you going to use the keyboard up & down arrows?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.