jtextpane
How do I stop my JTextPane swallowing keyboard shortcuts (accelerators)?
My application\'s main JFrame contains a JTextPane. While it has focus, it consumes al开发者_开发问答l keyboard shortcuts (\"accelerators\") instead of passing them on to the JFrame\'s JMenu. This mea[详细]
2023-01-07 02:01 分类:问答Making words different colors in JTextField/JTextPane/?
I\'m trying and failing to understand how to use Java\'s text editor components to colorize text as you insert it. I don\'t want or need a fu开发者_高级运维lly featured syntax highlighting library.[详细]
2023-01-05 21:35 分类:问答Is it possible to Hide Text through a Style?
I currently have a JTextPane that will be displaying text coming in from different streams. The way that the user can tell which stream the text came from is that the text from each stream has a diffe[详细]
2023-01-04 01:25 分类:问答How to scroll the contents to bottom by default in JTextPane?
I have JTextPane on my window and i have JTextField. When i press enter enter in JTextField, the text gets added in JTextPane. Everything works fine and scrollbar to开发者_Go百科o appears on its own.[详细]
2022-12-29 17:58 分类:问答Trying to get focus onto JTextPane after doubleclicking on JList element (Java)
Problem: I have the following JList which I add to the textPane, and show it upon the caret moving. However, after double clicking on the Jlist element, the text gets inserted, but the caret is not[详细]
2022-12-29 04:22 分类:问答Java JTextPane Save
i was trying to do some simple text fo开发者_运维技巧rmatting using JEditorPane but then as knowledge grew i found JTextPane easier to implement and more robust.[详细]
2022-12-28 21:34 分类:问答Java JTextPane RTF Save
i have the following code开发者_JAVA技巧 trying to save the contents of a JTextPane as RTF. although a file is created in the following code but it is empty![详细]
2022-12-28 15:14 分类:问答Size Mismatch Between Swing Fonts and Printable Fonts in Java
I\'ve got a panel displaying a JTextPane backed by a StyledDocument.When I print a string of text in, say Arial 16, the text it prints is the same size as the Arial 16 Word prints.However, the Arial 1[详细]
2022-12-27 09:10 分类:问答Can't remove extra line spacing in JTextPane for html content
I can\'t squeeze together the lines in a Java JTextPane if I set the content-type to text/html. I would like them as close together as they are when the content-type is text/plain, the default.[详细]
2022-12-26 18:35 分类:问答Floating DIVs in a JTextPane
I have an HTML file that I am loading into a JTextPane which contains two DIVs I am trying to show side-by-side (using CSS float). Whatever I try, though, does not work. The instructions element is di[详细]
2022-12-20 15:24 分类:问答
加载中,请稍侯......