<Swing Dev> javax.swing.plaf.basic.BasicHTML.isHTMLString(String)

Alexander Scherbatiy alexandr.scherbatiy at oracle.com
Mon Aug 5 14:10:51 UTC 2013


On 8/2/2013 12:47 PM, Kevin Connor Arpe wrote:
> Hello,
>
> My original message is still awaiting approval by the list moderator.  
> If my mail was sent to the wrong list, please let me know.  Otherwise, 
> please kindly approve the previous mail.

    Your email has been already approved. You need to be subscribed to 
the swing-dev at openjdk.java.net alias 
(http://mail.openjdk.java.net/mailman/listinfo/swing-dev)
    to read the replay: 
http://mail.openjdk.java.net/pipermail/swing-dev/2013-July/002835.html

   Thanks,
   Alexandr.


>
> Kind regards,
> Kevin
>
>
> On Fri, Jul 26, 2013 at 7:27 PM, Kevin Connor Arpe 
> <kevinarpe at gmail.com <mailto:kevinarpe at gmail.com>> wrote:
>
>     Hello,
>
>     This is my first post to this mailing list.
>
>     I was playing around with HTML + text labels on Swing widgets
>     today.  I noticed that the sniff test for HTML is defined by this
>     static method: javax.swing.plaf.basic.BasicHTML.isHTMLString(String)
>
>     The test is quite strict.  Basically, the string must start with
>     "<html>" -- no whitespace allowed, but it is case insensitive.
>
>     If there is a good reason for this strictness, please let me
>     know.  Otherwise, I would like to submit a small patch (+ test) to
>     improve this static method to be more forgiving.  If OK, please
>     also advise about JDK7u vs JDK8.  (I don't know if a [simple]
>     patch can be applied to both releases easily.)
>
>     In Perl regex parlance, something like: m/\s*<html\s*>/i
>     Of course, my solution probably wouldn't use a regex, nor Perl. =)
>
>     Please share you thoughts.
>
>     Thanks,
>     Kevin Connor ARPE
>     Hongkong
>
>




More information about the swing-dev mailing list