Sometimes, you need to find the Browser in which an applet is loaded. This small bit of code can do the job:
public void getBrowserInfo(){ String vendor = System.getProperty("java.vendor.url").toLowerCase(); browser = UNKNOWN_BROWSER; if(vendor.indexOf("www.microsoft.com") != -1) browser = IE; if(vendor.indexOf("java.sun.com") != -1) browser = NS6; if(vendor.indexOf("home.netscape.com") != -1) browser = NS47;}
Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.























