Top "Jtextcomponent" questions

JTextComponent is the base class for swing text components.

How to change text color in the JTextArea?

I need to know how to do this: Let's say: I have a code in the JTextArea like this: LOAD …

java swing colors jtextarea jtextcomponent
how to visualize console java in JFrame/JPanel

I made a Java program using Swing libraries. Now I would like to redirect my console outputs into a JFrame …

java swing console jtextarea jtextcomponent
How can I create a JTextArea with a specified width and the smallest possible height required to display all the text?

In all the examples that I can find that use a JTextArea, the height & width is known before constructing …

java swing jtextarea jtextcomponent
How do I receive input from a textbox in a JFrame?

The following method extends a JFrame, but I need a swing textbox inside it to receive double values and store …

java swing double jtextcomponent documentfilter
How to use html tags in JTextArea

When I try to change color of a JTextArea using textArea.setText("<html> <font color=\"red\"> …

java html swing jtextarea jtextcomponent
How can I set each character to a different color/background color in a JTextPane?

I've been searching for this for a while and so far all I've been able to come up with is …

java swing jtextpane jtextcomponent styleddocument
Using DocumentFilter.FilterBypass

I want to have a method like this on my DocumentFilter public void replaceUpdate(int offset, int length, String text) { …

java string swing jtextcomponent documentfilter
JScrollBar Vertical/Horizontal setting problem- Java Swing

I am just trying to add a vertical scroll bar to my TextField and TextArea. I am using a ScrollPane …

java swing jscrollpane jtextcomponent jscrollbar