if(resizeBox.isSelected() && !chosen.equals(LayoutPlugin.STR_SORT_ALPHABETICAL)) {
if(!(chosen == null) && resizeBox.isSelected() && !chosen.equals(LayoutPlugin.STR_SORT_ALPHABETICAL)) {
	    private void setupPanel() {	        this.setPreferredSize(new Dimension(300, 200));	        this.setBorder(BorderFactory.createTitledBorder("Circle Layout Settings"));			this.setAlignmentX(Component.LEFT_ALIGNMENT);	        	        this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));	        	        final SmartCircleLayout myLayout = _pluginRef.getSmartCircleLayout();	        String[] options = myLayout.measuresOffered(_pluginRef.getRegistry());	        // display a pulldown with all the measures we can sort by	        optionList = new JComboBox(options);	        //optionList.setSelectedIndex(4);	        optionList.addActionListener(new ActionListener() {	            public void actionPerformed(ActionEvent e) {	                String chosen = (String)((JComboBox)e.getSource()).getSelectedItem();	                //System.out.println("OPTIONBOX: " + chosen);	                if(resizeBox.isSelected() && !chosen.equals(LayoutPlugin.STR_SORT_ALPHABETICAL)) {	                    _snaPluginRef.resizeNodes(chosen);	                }	                myLayout.setActiveMeasure(chosen);	                _pluginRef.setLayout(LayoutPlugin.LAYOUT_Circle, true);	            }	        });	        	        snaButton = new JButton("Add SNA Measures");	        snaButton.setPreferredSize(new Dimension(30, 10));	        snaButton.setMaximumSize(new Dimension(150, 30));	        snaButton.addActionListener(new ActionListener() {	            public void actionPerformed(ActionEvent e) {	                    // Run SNA Calculations	                	_snaPluginRef.indecize();	                    _snaPluginRef.calculate();	                    	                    // Update ComboBox	        	        String[] ops = myLayout.measuresOffered(_pluginRef.getRegistry());	        	        optionList.removeAllItems();	        	        for(int k=0; k<ops.length; k++) {	        	            optionList.addItem(ops[k]);	        	        }	        	        	        	        // need to repaint?/revalidate?	            }	        });	        	        resizeBox = new JCheckBox("Scale Node Size");	        	        Container container = new Container();	        container.setLayout(new BoxLayout(container, BoxLayout.X_AXIS));	        JLabel sortLabel = new JLabel("Sort By: ", JLabel.CENTER);	        sortLabel.setAlignmentX(Component.CENTER_ALIGNMENT);	        container.add(sortLabel);	        container.add(optionList);	        	        this.add(container); //, BorderLayout.NORTH);	        this.add(new Box.Filler(new Dimension(200, 15), new Dimension(200, 15), new Dimension(800, 30)));            if(_snaPluginRef != null) {                this.add(snaButton); //, BorderLayout.CENTER);                	        this.add(new Box.Filler(new Dimension(200, 15), new Dimension(200, 15), new Dimension(800, 30)));                this.add(resizeBox); //, BorderLayout.SOUTH);            }                        	    }