I am developing a simple WYSIWYG RTF editor in Java and have a small issue. I need to be able to synchronize the style selection toggle buttons (such as bold, italic, underlined) to the users text sel
I have an application which continuously re开发者_运维问答ceives data on a socket, and then logs this data to a file while also displaying this data in a JTextPane. Naturally, as data is written to th
I have an HTML document being displayed by a JTextPane that works very nicely. I have some buttons that I interact with using ActionListeners for a ButtonModel, 开发者_Python百科and I hook into state
I have a JTextPane(or JEditorPane, I can use either no problem).How can I change the font of a selected area to a specific font?
I am creating a SQL开发者_如何学Go editor. I am using JTextPane for the editor. I want to implement AutoCompletion for table name etc. like Eclipse.I think the appropriate class for displaying info on
In my application, I use a JTextPane to display some log information. As I want to hightlight some specific lines in this text (for example the error messages), I set the contentType as \"text/html\".
I have a JTextPane integration that should perform predefined steps on keypress events. If I type manually it seems to work fine. But I have to emulate keypress events on this integration for test pur
Is it possible to change the background color of a paragraph in Java Swing? I tried to set it using the setParagraphAttributes method (code below) but doesn\'t seem to work.
I\'m trying to create a simple WYSIWYG editor that will allow users to select text and bold/underline/italicise it. Currently the user can select text, right-click it and select bold from a popup menu