if ( !resultCombo.getItem( resultCombo.getSelectionIndex() ).equals( "" ) ) query.setMaxSearchResults( new Integer( resultCombo.getItem( resultCombo.getSelectionIndex() ) ).intValue() );
if ( !resultCombo.getText().equals( "" ) ) query.setMaxSearchResults( new Integer( resultCombo.getText() ).intValue() );
    public void performSearch() {        if ( PreferenceLoader.loadBoolean( "useCombo" ) ) {            if ( !minCombo.getText().equals( "" ) )                addQueryMinMax( minCombo );            if ( !maxCombo.getText().equals( "" ) )                addQueryMinMax( maxCombo );        }        else {            if ( !maxText.getText().equals( "" ) )                query.setMaxSize( maxText.getText(),                		maxCombo.getItem( maxCombo.getSelectionIndex() ) );            if ( !minText.getText().equals( "" ) )                query.setMinSize( minText.getText(),                 		minCombo.getItem( minCombo.getSelectionIndex() ) );        }        /* the max results */        if ( !resultCombo.getItem( resultCombo.getSelectionIndex() ).equals( "" ) )            query.setMaxSearchResults(             	new Integer(             		resultCombo.getItem( resultCombo.getSelectionIndex() ) ).intValue() );				/* the extension combo */        if ( !extensionCombo.getItem( extensionCombo.getSelectionIndex() ).equals( "" ) )            query.setFormat( extensionCombo.getItem( extensionCombo.getSelectionIndex() ) );        /* get the network id for this query */        Object obj =         	networkCombo.getData( networkCombo.getItem( networkCombo.getSelectionIndex() ) );        if ( obj != null ) { // if != All            NetworkInfo temp = ( NetworkInfo ) obj;            query.setNetwork( temp.getNetwork() );        }        /* now the query is ready to be send */        query.send();		/* set the button to stop */        this.setStopButton();    }