public JButton getButton(int buttonType) {
        for (int a = 0; a < getComponentCount(); a++) {
            if (getComponent(a) instanceof JButton) {
                JButton button = (JButton) getComponent(a);
                Object value = button.getClientProperty(PROPERTY_OPTION);
                int intValue = -1;
                if (value instanceof Number) {
                    intValue = ((Number) value).intValue();
                }
                if (intValue == buttonType) {
                    return button;
                }
            }
        }
        return null;
    }