jtextarea
JTextArea does not scroll to the bottom after a highlight
When i add JTextArea to a scrollpane.. I can add messages to the textArea eg JTextArea.append(\"\\n\" +message);[详细]
2023-03-27 22:00 分类:问答How to import a Text file content to a JTextArea in a Java application?
how to import a Text file content to a JTextArea in a Java application using JFileCh开发者_如何转开发ooser?should be something like the following code:[详细]
2023-03-27 06:41 分类:问答stop horizontal scrolling in JTextArea
I want to add a JTextArea开发者_如何学JAVA to an application. Normally that textarea contains large content and both horizontal and vertical ScrollBars appear when running that application. I want to[详细]
2023-03-24 11:34 分类:问答Getting information from a text field to use it in a text area in other Class
I\'ve got one class that has two text fields in it: \"name\" and \"surname\". I need the information that someone typed in there for a text area in another class. So far I managed to write (Person cla[详细]
2023-03-23 16:52 分类:问答documentFilter.insert never called
I\'m trying to set a documentFilter for my JTextArea. Having overriden the insert(...) method I admitted that it is never called. What\'s wrong? A piece of code:[详细]
2023-03-23 01:04 分类:问答JList that contains JTextAreas displays the JTextAreas' toString() instead of the JTextArea
I am using a JList, and I\'m trying to use JTextAreas (that implement ListCellRenderer) for the cells. It isn\'t working. The cells simply display the ListCellRenderer.toString() instead of the actual[详细]
2023-03-22 23:06 分类:问答Why is my JTextArea not updating?
I have codeas follows: class SimplifiedClass extends JApplet { private JTextArea outputText; /开发者_JAVA百科/ Lots of methods[详细]
2023-03-22 02:58 分类:问答differentiating dragging and selecting in Java's JTextArea
My Java application has several JTextAreas that the user can move around. I achieve this by adding a mouse motion drag listener to it.[详细]
2023-03-22 02:04 分类:问答How to retrieve and set the huge String data retrieved -- to a JTextArea in swing?
I have 2 classes -A and B.I am building a GUI for retrieving a list of files. Class B is for recursion and returns a generic List of files. Class A is for GUI and retrieves the list of files and conve[详细]
2023-03-20 22:43 分类:问答How to set the maximum necessary size of a JTextArea
I have a non-editable JTextArea.I want the size of this JTextArea to be no larger than needed to contain the text it has.However, if I expand the component containing it, the JTextArea will expand as[详细]
2023-03-20 20:22 分类:问答