jtextpane
Toggle JToggleButton without clicking it, and unsetting styles
I have a few toggle buttons to add styling to text in the form of: 开发者_运维知识库JToggleButton boldButton = new JToggleButton(\"Bold\");[详细]
2023-01-26 09:01 分类:问答Viewing styled text in a JTextPane as HTML
I\'ve basically made a simple text editor with a JTextPane and some styling options (bold, italicize, underline, and center/right/left justify options), and I\'m wondering if 开发者_Python百科there is[详细]
2023-01-26 07:45 分类:问答Keeping selection after clicking a JButton to style text
I\'m making a fairly simple text editor, and I have a question about my style buttons. When I highlight text and click my \"bold\" button, the text bolds as expected, but my selection is not longer vi[详细]
2023-01-25 22:30 分类:问答Using ­ in Java HTML aware Component
I have following problem: I display an HTML-Document with an JTextPane. In my HTML-Text there are ­ (shy at w3.org) to make a soft-hyphenation.[详细]
2023-01-24 14:01 分类:问答colored xml display in swing
Is there an \"easy\" way to display xml data to a user via an JEditorPane or JTextPane in color开发者_StackOverflow社区ed/highlighted way?http://java-sl.com/xml_editor_kit.html[详细]
2023-01-24 05:09 分类:问答Using a JTextPane, consumed mouse events still propagate to caret updates/selection updates
I seem to be having a problem with JTextPane. I have extended JTextPane to render a floating image because the JTextPane icon functionality does not suit my purpose. I want the user to be able to clic[详细]
2023-01-23 22:57 分类:问答Adding text to a JTextPane without having it editable by the user?
So I\'ve created my own text pane class (extending JTextPane) and I\'m using the method below to add text to it. However, the pane needs to be editable for it to add the text, but this allows a user t[详细]
2023-01-21 01:23 分类:问答Style a JTextPane to have console-like formatting?
Is there a way to make the text in a JTextPane look similar to that of console output? By th开发者_JAVA百科at I mean, basically, how each character is the same width, so that things like ASCII art, or[详细]
2023-01-16 15:17 分类:问答Inserting inline JComponents into a JTextPane?
I\'m working on a project that needs to be able to have JComponents inserted into a JTextPane, along with normal text. Currently, I\'m using JTextPane.insertComponent(Component) to add the JComponents[详细]
2023-01-16 13:43 分类:问答JTextPane editor large file & performance
I\'m using a JTextPane to edit XML files. A jflex parser split xml file in tokens and using a custom document (extends[详细]
2023-01-13 17:29 分类:问答
加载中,请稍侯......