jtextpane
Getting style from any offset in JTextPane
Is there a way to get Style, a style name or just even compare whether Style at a certain position of JTextPane with the style I gave the text when inserting? Because for my purpose I created custom J[详细]
2023-02-07 06:22 分类:问答Getting the current offset in the HTMLDocument of a JTextComponent
In a Swing application I\'m using a JTextPane with an HTMLDocument backend. At one point I\'m inserting some sort of placeholders programmatically into the document with[详细]
2023-02-06 08:50 分类:问答Java: Is there any method in JTextPane that does the same thing as append() in JTextArea?
The program lets the user type in a command in a textfield then whatever they typed will show in the text area. If it is keywords such as yes it will turn green, however I cannot set just one line of[详细]
2023-02-04 19:40 分类:问答Toggling text wrap in a JTextpane
How would I go about toggling text wrap on a JTextpane开发者_JAVA技巧? public JFrame mainjFrame = new JFrame(\"Text Editor\");[详细]
2023-02-04 18:20 分类:问答Part 2 - How do I get consistent rendering when scaling a JTextPane?
I submitted another version of this question and a sample program before: How do I get consistent rendering when scaling a JTextPane?[详细]
2023-02-02 01:11 分类:问答Copy/paste from JTextPane to others application without text formatting support
I have a JTextPane with contentType set to \"text/html\".The content of the JTextPane is formatted with html.My lines are formatted like this: \"<p>hello</p>\\n\".[详细]
2023-01-30 15:08 分类:问答Get style at caret position in a JTextPane
I have a basic text editor that can style documents (bold, underline, italicize, underline, align left/right/center, color, font size/family), and that all works great. The problem I\'m having is that[详细]
2023-01-28 19:05 分类:问答Java wrap text around image
How to wrap text around an image in Java? Or how to accomplish CSS float in Java? I am loading a HTML text with some image tags into JTextPane component.[详细]
2023-01-27 21:45 分类:问答Jtextpane click to create popup menu effect on selection not as intended
I have a JTextPane sitting in a JFrame, with a popup menu that is assigned to the JTextPane through the JTextPane.setComponentPopupMenu method.[详细]
2023-01-27 17:10 分类:问答How can I tell if a JEditorPane/TextPane document or page has finished loading?
I\'m trying to load a URL into a JEditorPane or JTextPane but the URL is a dynamically generated PHP page. I then want to process the output from the PHP page in my Java application. The PHP page will[详细]
2023-01-26 23:57 分类:问答
加载中,请稍侯......