I have some problems using the highlighter class within my textArea. My program should work like this: In a textArea the program detects a string tha ...
I have some problems using the highlighter class within my textArea. My program should work like this: In a textArea the program detects a string tha ...
I've been searching for a way to highlight the selected line in JTextArea. There are many post on how to highlight text in a JTextArea, but it only go ...
I am trying to implement a text editor in NetBeans with simple functions like: text styling (bold, italic, underlined ...), open file, save file and s ...
how can I refresh the highlighter in my JTable after changing the search value in the JTextField? It works fine with the JTextArea under the JTextfiel ...
The last days I have been trying to implement a highlighting feature in a small text editor. For some reason I get a strange result: The given exam ...
I am developing a Java Swing application. This app allows user use basic command line. For example user can add event with simply type add "Something ...
I am creating a text editor using a JTextPane that allows the user to change the color of selected text. But when the user selects the text, then choo ...
I want to build one sample to remove highlight from words that matches the filter of my app. Therefore I was basing myself on the sample below: Thi ...
When my jTextArea is in focus it allows text highlighting, but it doesn't show the text selection when it loses focus. Is it possible to continue disp ...
I have this code : word is a StringBuilder Suppose the condition in if matches and hilite.addHighlight(posStart, (posEnd), myHighlighter); - this ...
I have a class called ErrorHighlighter which gets notified anytime a property called errorString is changed. Based on this propertychangeevent I updat ...
I'm trying to search and highlight words in my JTextPane. It works wonderfully with words that don't have a lot of results so far but when I try to se ...
My Question is quite simple. I have a JtextArea. My aim is to highlight a line in that textarea from the start of the first character in that line.. ...
Is there any function I can use to actually pass a line number and the string to highlight the word in that line number. I got no clue on how to achie ...
Problem 1: BY using defaulthighlighter, I can make the focused lines change to blue. Now I want to change it to other colors. Do anyone know how to ch ...
I've been using setCharacterAttributes of StyledDocument to change the colors of specific words or sections in a JTextPane. But then I noticed some a ...
I have a jtextarea with some texts. I use java highligher to highlight some texts on that jtextarea. I want to print the content of that textarea to a ...