private void deactivateButtons(javax.swing.JToggleButton button) {
        for (int i = 0; i < this.jToolBar1.getComponents().length; i++) {
            Component component = this.jToolBar1.getComponent(i);
            if (component instanceof javax.swing.JToggleButton) {
                if (!component.equals(button)) {
                    javax.swing.JToggleButton b = (JToggleButton) component;
                    b.setSelected(false);
                    if (component.equals(this.btnSelect)) {
                        setSelectionMode();
                    }
                }
            }

        }
    }