I am trying to highlight just one specific row in JTextArea
, but I have no idea as to going about it. I need to get the specific row and then highlight it. I've read the other posts, but I still do not understand how to bring it together to solve my problem...help would be much appreciated.
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
If you are unable to select TextArea to TextField reason is button click causes the JTextArea to lose focus and thus not show its selection. on button click event use
btnImport.transferFocusBackward();
to resolve issue.Try your hands on this code example, and do ask if something is not clear :
Here is the output of it :