jtextarea
Java JTextArea hightliting text with a bold font
I need several words to be highlighted in a String while appending it to a JTex开发者_如何学编程tArea. So that I try this:[详细]
2023-01-22 11:48 分类:问答Why does this attempt to output an arrayList object to a JtextArea not work?
ArrayList list_of_employees = new ArrayList(); @Action public void reportAllEmployeesClicked(java.awt.event.ActionEvent evt)[详细]
2023-01-21 07:37 分类:问答Java / Swing : JTextArea in a JScrollPane, how to prevent auto-scroll?
here\'s a runnable piece of code that shows what my \"problem\" is. I\'ve got a JTextArea wrapped in a JScrollPane.When I change the text of the JTextArea, the JScrollPane scrolls automatically to th[详细]
2023-01-21 00:26 分类:问答JComboBox sizing issue in a table with Multi line Cells
I recently had a problem where I needed to have a field that can wrap the text and increase the height of the row as the text is wrapped, similar to Microsoft Excel.I managed to get it working correct[详细]
2023-01-18 07:32 分类:问答JTextArea getting whole line
How can I get cho开发者_开发知识库sen line from JTA ?I suppose you can use getLineStartOffset(int line), and getLineEndOffset(int line) to substring out a particular line from the string returned from[详细]
2023-01-15 13:14 分类:问答How to write directly to a JTextArea?
I want to write some text into a JTextArea. I think the开发者_运维百科 answer is to extend java.io.Writer, but I\'d like an authoritative answer here; is that the right thing to do?You can just use JT[详细]
2023-01-14 20:11 分类:问答JTextArea in JScrollPane, view coordinate translation
I\'m trying to translate between view and viewport coordinates. But the JViewport/JScrollpane doesn\'t seem to work as documented. JViewport.toViewCoordinates()[详细]
2023-01-13 23:56 分类:问答After JTable cell setDefaultRenderer to jTextArea how to highlight the selected row in jTextArea
This is my renderer class tblCalendarRenderer extends JTextArea implements TableCellRenderer { JTextArea textField;[详细]
2023-01-06 09:05 分类:问答How to set jTextArea to have height that matches the size of a text it contains (to avoid scrollbars)
This problem looks trivial, but I can\'t find the solution. When I create a form it contains a JTextArea. I want to put large constant text in it. If the text is say 1000 lines long, I want my JText[详细]
2023-01-04 15:50 分类:问答How to add diffrent characterset support for JtextArea?
I need to display a document, which is in Cp037 character Encoding, in JTextArea? I 开发者_如何学Pythonthink JTextArea by default supports UNICODE character encoding. How to add Cp037 charater setsupp[详细]
2023-01-01 07:12 分类:问答