private void commandItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_commandItemStateChanged
        String c=((ComboText)command.getSelectedItem()).getValue();
        editor.removeAll();
        if(c.equals("MAKE")){
            editor.add(this.create);
        }
        if(c.equals("drawMap")){
            editor.add(this.mapPane);
        }
        if(c.equals("drawPixel")||c.equals("lineFrom")||c.equals("lineTo")){
            editor.add(this.pointPane);
        }
        if(c.equals("drawLine")){
            editor.add(this.drawLine);
        }
        if(c.equals("setColor")){
            editor.add(this.setColor);
        }
        if(global.showToolTips){
            try{
                String tip=translator.addons.getString("canvas2d."+c+".help");
                tips.setText(tip);
                tipBox.setVisible(true);
            }catch(Exception e){
                tipBox.setVisible(false);
            }
        }
        editor.validate();
        repaint();
    }//GEN-LAST:event_commandItemStateChanged