jtextarea
Is it not possible to add text to a single JTextArea dynamically?
i am developing a GUI using Java Swing. but i got stuck here. Is it not possible to add text to the single \"JTextArea\" dynamically?[详细]
2023-03-04 20:54 分类:问答I want to be able to undo changes made in JTextArea
I want to be able to undo changes made in JTextArea. Any 开发者_如何学Gohints?Have a look at ExampleDepot: Adding Undo and Redo to a Text Component[详细]
2023-03-04 15:08 分类:问答automatic dynamic expansion / contraction of JTextArea in Java
I start off by creating a JTextArea of a specific size. The user can add text within it but it will get cut off if it becomes too long (vertically or开发者_如何转开发 horizontally). I want the JTextAr[详细]
2023-03-04 07:28 分类:问答Select fragment of a text in JTextArea
I need to sel开发者_运维问答ect some fragment of a text in JTextArea. How should i do that?...Use setCaretPosition(selectionStart) followed by moveCaretPosition(selectionEnd). This is documented in JT[详细]
2023-03-03 16:15 分类:问答HTML in JTextArea of JEditorPane, JTextPane
Right I already worked out that JTextArea or JTextField don\'t support HTML. I want to add text to a \"screen\" like a JTextArea and later keep appending text to it.[详细]
2023-03-03 04:25 分类:问答Replacing one JTextArea with another
In my GUI a have a JTextArea within a JScrollPane that is attached to a container. ta = new JTextArea();[详细]
2023-02-28 15:48 分类:问答How can I make a Swing text area have the focus as soon as it is loaded?
I\'v开发者_C百科e created a simple Swing panel that, when loaded, takes up my application\'s entire window. It contains two JTextAreas and a handful of buttons. I want one of the text areas to have th[详细]
2023-02-28 11:14 分类:问答Setting line space for a JTextarea
The default spacing between the lines of my textArea is too clumsy. I would like to increase the line spacing between the lines. Is there a way to achieve this for a textarea?[详细]
2023-02-25 08:54 分类:问答How can I display the output of an array list in a popup window using Java?
Below is what I want to display: JTextArea result = new JTextArea(10,20); ArrayList<String> result_set = gen.getResult();[详细]
2023-02-25 05:54 分类:问答How to make a specific row visible of a textArea in Java
My JTextArea contains thousands of lin开发者_StackOverflow中文版es but not all of them are visible at a time. I want to programmatically scroll to a specific row of the textArea so that the line is vi[详细]
2023-02-25 03:17 分类:问答