jeditorpane Questions

3

Solved

A JTextArea's tab size can easily be set using setTabSize(int). Is there a similar way to do it with a JEditorPane? Right now, text with tabs in my pane looks like: if (stuff){ more stuff; } ...
Deform asked 16/4, 2009 at 19:28

2

Solved

Pretty self explanatory, I have a string that is HTML, how do i draw this onto a JEditorPane/JTextPane?
Christie asked 20/7, 2012 at 19:32

1

Solved

I am creating a simple chat program that I want to eventually show html links. My problem right now is that I can't get the text to appear next to the users name as I want it to. I want the user's ...
Hrutkay asked 9/7, 2012 at 22:44

1

Solved

I am trying to display a list of clickable links in JEditorPane. Here is my code: import javax.swing.JEditorPane; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JScrollP...
Gules asked 8/5, 2012 at 9:20

1

Solved

I'm attempting to display an inline image in a Java JEditorPane. The code below uses HTML content that properly displays the image in Firefox, but not in the JEditorPane. Any ideas why? Thanks. im...
Urion asked 22/2, 2012 at 2:20

1

I'm building an HTML editor using JEditorPane, but I'm getting some inconsistent performance issues with Foreground Actions. I have a simplified version of my editor below that has three actions: c...
Boa asked 15/12, 2011 at 16:34

3

Solved

I have this code to demonstrate the problem: public static void main(String[] args) { JFrame frame = new JFrame(); frame.getContentPane().add(new JEditorPane("text/html", "Hello cruel world<b...
Luminosity asked 12/10, 2011 at 18:57

1

Solved

I have a JEditorPane that displays HTML that is generated programmatically (at runtime). Up to now when I was adding a "line" I was re-creating the whole HTML text in a string buffer and then passi...
Unintentional asked 21/11, 2011 at 15:39

3

I am implementing a Comment box facility in my application which user can resize using mouse. This comment box contains a scrollpane which instead contains a JEditorPane in which user can insert co...
Ravens asked 11/11, 2008 at 5:35

1

Solved

an application generates some HTML pages that should be displayed in the application itself. These HTML pages contain some forms that would be used by the user to enter some values. So far I've u...
Propylaeum asked 26/5, 2011 at 21:38

2

Solved

I am using a JEditorPane as an editor to write comments in my application. The content type is set "text/plain". When I am writing text in it and the text fills the available space and I go on typi...
Aquiver asked 7/11, 2008 at 12:10

1

Solved

How to implement in JEditorPane on text changed method ( get text on every character added or deleted ) ?
Domineering asked 13/4, 2011 at 8:13

1

Solved

This seems like such a simple question, but I'm having such difficulty with it. Problem: I have some text to insert into an HTMLDocument. This text sometimes specifies some html as well. E.G.: S...
Triglyph asked 12/8, 2010 at 18:12

1

Solved

I have a JEditorPane which is displayed inside a popup, triggered through a button. The pane contains long text, therefore it's nested inside a JScrollPane, and the popup is constrained to a maxima...
Puli asked 8/2, 2010 at 12:2

2

Simple enough question: I have a string containing HTML that is being handed off to a JEditorPane for user consumption. Can I attach a CSS file (or string containing CSS rules) to allow for more s...
Sumptuous asked 17/9, 2009 at 0:8

2

Solved

I'm currently trying to solve a problem where I need to find the position in a piece of text in a JEditorPane based on where the mouse was clicked. Basically, when the user right-clicks over a wo...
Practically asked 24/7, 2009 at 21:58

2

Solved

I'm trying to get a JEditorPane to highlight the full width of a displayed line. All the examples I've tried only highlight the textual content. For example if I have content such as this: ------...
Pungy asked 9/12, 2008 at 17:3

© 2022 - 2024 — McMap. All rights reserved.