bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug swing/28696] JToolTip should support HTML


From: roman at kennke dot org
Subject: [Bug swing/28696] JToolTip should support HTML
Date: 18 Aug 2006 10:29:50 -0000


------- Comment #6 from roman at kennke dot org  2006-08-18 10:29 -------
> Two more nitpicks:
>
> 1) the JDK uses the same font for 'plain' and HTML tooltips, while
>   classpath seems to use Courier for HTML. This actually looks better
>   for some of my examples, but not for all. I suggest to default
>   to Helvetica/Arial/Dialog or whatever the UI uses as its default
>   font.

This is caused by the StyleConstants.getFont() correctly defaulting to
monospace. In order to fix this (the right way, without ugly hacks) is to make
the html renderer interpret CSS stylesheets and make it use the default.css,
that is already in the tree. I am working on CSS support and hope to get it
finished before the next release.


> 2) The HTML parser seems to suppress extra blank lines via constructs
>   like  <html><body>first line<br><br>thrid line<br></body></html>
>   or    <html><body><p>first paragraph</p> <p></p><p>third paragraph</p>...>
>
>   A paragraph consisting of a single space should not be blank, or should
>   it? For a demo, see the Niffler about dialog.

I think this will also be resolved when we have CSS support.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28696





reply via email to

[Prev in Thread] Current Thread [Next in Thread]