[cp-patches] FYI: Font fixes

2006-11-02 Thread Roman Kennke
It seems like jIRCii makes use of some more sophisticated font methods, that didn't work quite right and lead to overlapping chars in jIRCii's text components: - Control characters (like \n) need to be filtered in the TextLayout and GdkFontPeer so that the aren't rendered and also not measured in

[cp-patches] FYI: Swing text fixes

2006-11-02 Thread Roman Kennke
This solves some problems in javax.swing.text: - Sometimes the layout got borked and was very slow. This was caused by a thinko in FlowView.FlowStrategy. - Line breaking was not working really well. This is improved now. BeanShell and jIRCii should now work again as expected. 2006-11-02 Roman

[cp-patches] FYI: HTML hyperlink support

2006-11-02 Thread Roman Kennke
This adds basic support (a tag) for HTML hyperlinks, including the mouse-hover cursor change. 2006-11-02 Roman Kennke [EMAIL PROTECTED] * javax/swing/JEditorPane.java (setContentType): Strip off attributes. * javax/swing/text/html/HTMLEditorKit.java

[cp-patches] FYI: HTML ImageView fixlet

2006-11-02 Thread Roman Kennke
This fixes the ImageView class to also consider the base URL of the document for relative image locations. 2006-11-02 Roman Kennke [EMAIL PROTECTED] * javax/swing/text/html/ImageView.java (getImageURL): Fetch attribute from element. Consider the base URL for relative

Re: [cp-patches] FYI: Font fixes

2006-11-02 Thread David Gilbert
Hi Roman, I wanted to try this out, but if I do a clean check out of the latest CVS, I get the following compile error when I compile with Jikes: Found 1 semantic error compiling ../gnu/java/awt/peer/gtk/GdkFontPeer.java: 59. public class GdkFontPeer extends ClasspathFontPeer

Re: [cp-patches] FYI: Font fixes

2006-11-02 Thread Roman Kennke
Am Donnerstag, den 02.11.2006, 17:04 + schrieb David Gilbert: Hi Roman, I wanted to try this out, but if I do a clean check out of the latest CVS, I get the following compile error when I compile with Jikes: Found 1 semantic error compiling ../gnu/java/awt/peer/gtk/GdkFontPeer.java:

Re: [cp-patches] FYI: Font fixes

2006-11-02 Thread David Gilbert
Thanks, that fixed it! Roman Kennke wrote: Am Donnerstag, den 02.11.2006, 17:04 + schrieb David Gilbert: Hi Roman, I wanted to try this out, but if I do a clean check out of the latest CVS, I get the following compile error when I compile with Jikes: Found 1 semantic error compiling

[cp-patches] FYI: GeneralPath - API doc fixes

2006-11-02 Thread David Gilbert
This patch (committed) fixes a couple of Eclipse warnings concerning the API docs for GeneralPath: 2006-11-02 David Gilbert [EMAIL PROTECTED] * java/awt/geom/GeneralPath.java: API doc fixes. Regards, Dave Index: java/awt/geom/GeneralPath.java

[cp-patches] RFC: JTree memory leak

2006-11-02 Thread Francis Kung
Hi, The attached patch fixes a memory leak in the JTree, changing a Hashtable into a WeakHashMap. I'm not too familiar with this class, so I don't know if this is the best way to fix it (or if this even breaks something!), and I'd appreciate any comments or approval for this patch. Thanks,

[cp-patches] RFA: Eclipse cleanup

2006-11-02 Thread Francis Kung
Hi, I'd like to make the following two changes to the Eclipse settings files: 1) change default compiler compliance to 1.4, to ensure that we don't break the build unintentionally (it's happened a few times, where code acceptable in 1.5 is an error in 1.4... especially with the clone() method)

Re: [cp-patches] RFC: JTree memory leak

2006-11-02 Thread Roman Kennke
Hi Francis, The attached patch fixes a memory leak in the JTree, changing a Hashtable into a WeakHashMap. I'm not too familiar with this class, so I don't know if this is the best way to fix it (or if this even breaks something!), and I'd appreciate any comments or approval for this

[cp-patches] FYI: input tag support

2006-11-02 Thread Roman Kennke
This adds (very) basic support for input tags. That is the following input tag types are now rendered: text - JTextField password - JPasswordField submit - JButton reset - JButton button - JButton image - JButton checkbox - JCheckBox radio - JRadioButton Note that this probably won't work due to

[cp-patches] RFC: htmlAttributeSet and SmallHTMLAttributeSet

2006-11-02 Thread Roman Kennke
In my last patch I added support for HTML input tags. However, I came upon a problem with the attributes there. Strangely, all input tags showed up as input type=text. It turned out that this is the DTD default for that tag. After some debugging I found that somehow the HTML parser or some part of