|
Quick Lists
|
|
Bug ID:
|
4220235
|
|
Votes
|
6
|
|
Synopsis
|
align=justify in <p>- and <hX>-tags does not work in JEditorPane
|
|
Category
|
java:classes_swing
|
|
Reported Against
|
1.2
|
|
Release Fixed
|
|
|
State
|
11-Closed, duplicate of 4263904,
bug
|
|
Priority:
|
4-Low
|
|
Related Bugs
|
4263904
|
|
Submit Date
|
14-MAR-1999
|
|
Description
|
JEditorPane does not show properly when
content-type=text/html and
align-attribute is align=justify
in <p>-tag or <h1>, <h2>,...
e.g.: <h2 align=justify>not justified! </h2>
it's only centered!
(Review ID: 53624)
======================================================================
|
|
Work Around
|
N/A
|
|
Evaluation
|
This is because we do not yet support justified text in the swing text package.
xxxxx@xxxxx 1999-09-16
|
|
Comments
|
Submitted On 17-JUN-1999
chamontin
same thing happens with JTextPane on StyledEditorKit
on jdk1.2 for Windows
I tried this :
justStyle = textPane.addStyle("just", defaultStyle);
StyleConstants.setAlignment(justStyle, StyleConstants.ALIGN_JUSTIFIED);
textPane.setParagraphAttributes(justStyle, false); // or true, doesn't matter
...
and I obtained an ALIGN_CENTER'ed paragraph
very annoying for my text editor, how can I fix it ?
thanks !
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |