jeditorpane Questions

3

Solved

This is a bit challenging even probably for a team project, let alone for a one-man implementation, but I was trying to put together a simple yet elegant text editor with syntax highlighting, using...
Hoodlum asked 1/10, 2012 at 17:31

2

Solved

I used to use JEditorPane, but it can only display HTML, cannot display SVG, and nested SVG HTML cannot complete display. Then I use JSVGCanvas, but it can only display SVG, cannot display HTML. ...
Carapace asked 18/4, 2013 at 2:55

2

Solved

This question is about different behaviour of JEditorPane in Java 8 and Java 9. I’d like to know if others have experienced the same, whether it could be a bug in Java 9, and if possible have your ...
Arrow asked 14/3, 2018 at 8:44

4

I want customize the JScrollBar Design. I use Mac to develop the app with eclipse. I already tried to scrollPane.getVerticalScrollBar().setBackground(Color.BLACK); but nothing happen. My code: s...
Malynda asked 4/5, 2013 at 10:48

5

editorPane.setContentType("text/html"); editorPane.setFont(new Font("Segoe UI", 0, 14)); editorPane.setText("Hello World"); This does not change the font of the text. I need to know how to set t...
Matta asked 22/9, 2012 at 9:51

4

Solved

This is the code I'm using to display google in a JEditorPane String url="http://google.com"; editorPane.setEditable(false); try { editorPane.setPage(url); } catch (IOException e) {} But for...
Foretell asked 22/3, 2014 at 16:0

2

I use the instructions to add my own tag http://java-sl.com/custom_tag_html_kit.html class MyParserDelegator extends ParserDelegator { public MyParserDelegator() { try { Field f=javax.swing.text...
Goeselt asked 21/2, 2012 at 14:12

3

Solved

I am creating a Swing application with a JEditorPane that should display an HTML file named url1.html stored locally in the page folder in the root folder of the project. I have instantiated the fo...
Om asked 22/11, 2010 at 16:34

1

Solved

Resources for HTML (style sheets, images etc.) might not be loaded correctly when: A Swing app. is distributed, or when it is put into a Jar file. The HTML is generated at run-time. How can su...
Parcheesi asked 7/11, 2014 at 6:44

3

I am displaying HTML content inside a Swing JEditorPane. To change the default look of the HTML i am using a CSS style sheet. This works great. My problem is only that the JEditorPane does not supp...
Genova asked 7/11, 2010 at 10:17

1

Solved

I try to apply center vertical aligment to text in JEditorPane. But text still is aligned to the top. Where did I mistake? JEditorPane editor = new JEditorPane(); editor.setText("..large text bl...
Breslau asked 12/5, 2014 at 15:25

5

Solved

I have a JEditorPane created by this way: JEditorPane pane = new JEditorPane("text/html", "<font face='Arial'>" + my_text_to_show + "<img src='/root/img.gif'/>" + "</font>"); I...
Oxygenate asked 21/2, 2009 at 13:58

2

Solved

i have to create a project in java swing for my college. An editor of java files with proper text highlighting i.e different colors and fonts for java keywords, java comments and for normal text. H...
Sandrasandro asked 30/9, 2013 at 12:7

2

Solved

i am somewhat blocked right now: i wrote a quite complex Java Desktop App (no Applet/Web App!) which has it's own "user Manual". This manual consists of some HTML and JPG files. This manual is disp...
Rae asked 26/8, 2013 at 11:44

3

Solved

Right I already worked out that JTextArea or JTextField don't support HTML. I want to add text to a "screen" like a JTextArea and later keep appending text to it. I tried with JTextArea which wo...
Elayne asked 6/5, 2011 at 17:43

1

Solved

I've have multiple subscribers who are subscribed to the same Redis channel. Does Redis guarantee that all subscribers get all the messages that are pushed into the channel after the subscribers su...
Algin asked 22/6, 2013 at 21:7

1

Solved

I'm wanting to create a large text field for a user to type something in. I also want it to use the default system font to match the look and feel that is expected. So I tried to use a JEditorPane ...
Twelfth asked 20/5, 2013 at 0:44

2

Solved

I'm using an HTML unordered list to display some text within a JEditorPane. A sample of the HTML looks like this: <ul><li>Cautious</li> <li>Curious</li> </ul> ...
Pacific asked 7/4, 2013 at 23:2

3

Solved

Hi I used a JEditorPane with HTMLEditorKit to showing HTML text with ability to wrap text. The problem is when I set it's content using .setText method it automatically scrolls to the end of that t...
Vesica asked 18/3, 2011 at 10:31

2

Solved

I've got a problem: I want to use internal anchors <a name="x"> and links <a href="#x"> inside a JEditorPane. The content of the pane is not loaded from a resource but dynamically crea...
Choong asked 27/12, 2012 at 12:20

4

Solved

I am creating a web browser in Java. In this browser I am using JEditorPane for Browser Window. I am using "setPage(String url)" method to display the page. The browser can display the page but t...
Lindsley asked 11/11, 2010 at 11:14

2

Solved

I am working on Swing using JEditorPane but it's not supporting the Javascript or some advanced tag like <object> etc. and not supporting the color, font style size etc. Is there any solutio...
Excessive asked 5/12, 2012 at 6:47

2

Solved

I use a JEditorPane to render some HTML in a swing application. I use a bullet point list <ul><li>...</li></ul> and I obtain overly large bullet points in the output. The sa...
Tva asked 29/11, 2012 at 13:7

3

Solved

I have to highlight the all occurrences of a word in JEditorPane . For this I am using the following code: try { javax.swing.text.DefaultHighlighter.DefaultHighlightPainter highlightPainter = ...
Hoofbound asked 19/11, 2012 at 6:12

1

Solved

I am trying to create a simple web browser for a project, but I am using JEditorPane to render and display HTML. I have heard that JEditorPane should not be used as a browser component becaus...
Breban asked 4/11, 2012 at 12:37

© 2022 - 2024 — McMap. All rights reserved.