I am a guy in dotnet and trying to create a java applet for my application. I was able to successfully create the applet , and it also works great in my application after I signed it.
The only problem I have is that when I embed an HTML file (in my case a .cshtml file), I see a white frame around the applet, and this is not the style in HTML.
I tried to get rid of the border, but I could not do it. the applet contains only the button that has the Icon . this is the only control and I set the border property of the EmptyBorder button
here is a screenshot when you view it in a browser.

pay attention to Dx in Screen Shot. Dx is a java applet , and you can notice WHITE around it.
here is HTML
<applet width="55" height="40" border="0" codebase="~/Content/My/applet" id="DxApplet" name="DxApplet" code="DxApplet.class" archive="DxButtonApplet.jar"> <param name="boxborder" value="false"> @Html.Raw(ViewBag.AppletParameters) </applet>
In addition, I added the following CSS , but that didn't help either.
applet:focus { outline: none; -moz-outline-style: none; }
I also added the following code in the applet init method
jButton1 is the name of the Dx button.
jButton1.setBorder(null); jButton1.setBorder(BorderFactory.createEmptyBorder());
but that didn't help either.
Could you tell me where I am wrong?
Here is the applet code below: https://gist.github.com/anonymous/1f31a97b68d34a5821e9
source share