String vendor = System.getProperty( "java.vendor" ); String classver = System.getProperty( "java.class.version" ); String javaver = System.getProperty( "java.version" );  if ( ( vendor != null ) && ( classver != null ) && ( javaver != null ) ) { if ( vendor.startsWith( "Netscape" ) ) { if ( ( classver.startsWith( "45.3" ) ) && ( javaver.startsWith( "1.1.5" ) ) ) {  }  else { return ; } } }
    public void clearOptions()    {        Choice ch = ( Choice ) ipart;        //        // Ouch. Don't try to provide data-drivenness in a OptionMenu-styl        // selector interactor running inside netscape because the applet        // will crash and there's no way to catch the error.        // When I discovered this, I.E. claimed to be at java 1.1.  Netscape        // claimed java 1.1.2.  This was I.E. 4.0 and Netscape 4.04        //        // ...update: Netscape 4.06 works it claims 45.3 and 1.1.5        //        String vendor = System.getProperty( "java.vendor" );        String classver = System.getProperty( "java.class.version" );        String javaver = System.getProperty( "java.version" );        if ( ( vendor != null ) && ( classver != null ) && ( javaver != null ) ) {            if ( vendor.startsWith( "Netscape" ) ) {                if ( ( classver.startsWith( "45.3" ) ) && ( javaver.startsWith( "1.1.5" ) ) ) {                    /* keep going because it's Netscape 4.06 */                }                else {                    return ;                }            }        }        try {            int length = ch.getItemCount();            int i;            for ( i = length - 1; i >= 0; i-- )                ch.remove( i );        }        catch ( Exception nsme ) {            nsme.printStackTrace();            System.out.println            ( "SelectorInteractor error: Your Java implementation is pre 1.1" );            System.out.println            ( "    Data-driven OptionMenu-style SelectorInteractors aren't available." );            System.out.println            ( "    Try using ScrolledList-style instead." );        }    }