*/
	    public LayoutChooserPanel(LayoutPlugin lp) {	        _pluginRef = lp;	        toolbar = new JToolBar("Layout");//	        toolbar.setBorder(BorderFactory.createTitledBorder(STR_LABEL_CHOOSERPANEL));	        	        // TODO: may want to handle some of these externally	        this.setLayout(new FlowLayout(FlowLayout.LEFT));	        this.setBorder(BorderFactory.createTitledBorder(STR_LABEL_CHOOSERPANEL));			this.setAlignmentX(Component.LEFT_ALIGNMENT);						if(USE_BUTTONS) {			    // code attached in bottom			}			// if not USE_BUTTONS --> do a chooser			else {		        icons[0] = LayoutUtil.createImageIcon("images/" + IMG_NAME_FORCEDIR + ".gif");		        icons[1] = LayoutUtil.createImageIcon("images/" + IMG_NAME_WFORCEDIR + ".gif");		        icons[2] = LayoutUtil.createImageIcon("images/" + IMG_NAME_FRUCHREIN + ".gif");		        icons[3] = LayoutUtil.createImageIcon("images/" + IMG_NAME_CIRCLE + ".gif");		        icons[4] = LayoutUtil.createImageIcon("images/" + IMG_NAME_FORCEDIR + ".gif");		        icons[5] = LayoutUtil.createImageIcon("images/" + IMG_NAME_FORCEDIR + ".gif");		        icons[6] = LayoutUtil.createImageIcon("images/" + IMG_NAME_FORCEDIR + ".gif");		        icons[7] = LayoutUtil.createImageIcon("images/" + IMG_NAME_FORCEDIR + ".gif");		        icons[8] = LayoutUtil.createImageIcon("images/" + IMG_NAME_FORCEDIR + ".gif");		        icons[9] = LayoutUtil.createImageIcon("images/" + IMG_NAME_FORCEDIR + ".gif");		        		        // Create the combo box.		        Integer[] intArray = new Integer[layout_names.length];		        for (int i = 0; i < layout_names.length; i++) {		            intArray[i] = new Integer(i);		        }		        		        // Action Listener		        ActionListener layoutActions = new ActionListener() {		            public void actionPerformed(ActionEvent e) {		                Integer chosen = (Integer)((JComboBox)e.getSource()).getSelectedItem();		                int chosen_val = chosen.intValue();		                		                String layout_type;		                if(chosen_val < layout_names.length) {		                    layout_type = layout_names[chosen_val];			                if(layout_type != null) {			                    _pluginRef.setLayout(layout_type, true);			                }		                }		            }		        };		        		        layoutList = new JComboBox(intArray);		        LayoutChooserRenderer renderer= new LayoutChooserRenderer();		        renderer.setPreferredSize(new Dimension(140, 20));		        renderer.setMaximumSize(new Dimension(170, 30));		        layoutList.setRenderer(renderer);		        layoutList.setMaximumRowCount(5);		        layoutList.addActionListener(layoutActions);		        this.add(layoutList);			}	    }