toolbar.add(selectColorButton);
    protected JPanel getColorAndLineGUI() {	if (palette == null) {	    palette = new JPanel(); 	    palette.setBorder(BorderFactory.createEmptyBorder());	}	    	resetGUI();	palette.removeAll();	palette.removeAll();	JToolBar toolbar = new JToolBar();	toolbar.setFloatable(false);	toolbar.setMargin(new Insets(0, 0, 0, 0));	toolbar.add(lineColorButton);	toolbar.add(fillColorButton);	toolbar.add(mattingColorButton);	toolbar.add(new JLabel(" "));	toolbar.add(mattedCheckBox);	if (stroke instanceof BasicStroke) {	    BasicStrokeEditorMenu tmpbse = getBasicStrokeEditor();	    if (tmpbse != null) {		ImageIcon icon = BasicStrokeEditorMenu.createIcon(tmpbse.getBasicStroke(), 50, 								  icon_height, true);		lineButton = new JButton(icon);		lineButton.setToolTipText("Modify Line Parameters");		lineButton.addActionListener(new ActionListener() {			public void actionPerformed(ActionEvent ae) {			    JButton button = getLineButton();			    JPopupMenu popup = new JPopupMenu();			    JMenu menu = getLineTypeMenu();			    if (menu != null) {				popup.add(menu);			    }			    getBasicStrokeEditor().setGUI(popup);			    JMenu[] menus = getLineMenuAdditions();			    if (menus != null) {				for (int i = 0; i < menus.length; i++) {				    menu = menus[i];				    if (menu != null) {					popup.add(menu);				    }				}			    }			    popup.show(button, button.getWidth(), 0);			}		    });		tmpbse.setLaunchButton(lineButton);		toolbar.add(new JLabel(" "));		toolbar.add(lineButton);	    }	}	palette.add(toolbar);	   	return palette;    }