<div dir="ltr"><div>Hello,<br></div><div><br>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.<br>
<br>Kind regards,<br></div>Kevin<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jul 26, 2013 at 7:27 PM, Kevin Connor Arpe <span dir="ltr"><<a href="mailto:kevinarpe@gmail.com" target="_blank">kevinarpe@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div>Hello,<br><br></div>This is my first post to this mailing list.<br><br>
</div>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)<br>
<br></div>The test is quite strict. Basically, the string must start with "<html>" -- no whitespace allowed, but it is case insensitive.<br><br></div>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.)<br>
<br></div><div>In Perl regex parlance, something like: m/\s*<html\s*>/i<br></div><div>Of course, my solution probably wouldn't use a regex, nor Perl. =)<br></div><div><br></div>Please share you thoughts.<br><br>
</div>Thanks,<br>Kevin Connor ARPE<br></div>Hongkong<br></div>
</blockquote></div><br></div>