private void switchActvLabelTxtFieldVisibility(final Component comp, final boolean saveLabelChange){
        final boolean visible = true;

        if( comp instanceof JLabel ){
            JLabel jl = (JLabel)comp;
            jl.setVisible( !visible );

            final JTextField jtf = jTextFieldsArr[ Integer.parseInt(comp.getName()) ];
            jtf.setText( jl.getText() );
            jtf.setVisible( visible );
            jtf.requestFocus();
        }

        if( comp instanceof JTextField ){
            //If not visible, exit.
            if( !comp.isVisible() ) {
                return;
            }

            final JTextField jtxtf = (JTextField)comp;
            jtxtf.setVisible(!visible);

            final MyActvJLabel myjl = jLabelsActvArr[Integer.parseInt(comp.getName())];
            myjl.setVisible(visible);

            //Set text
            if (saveLabelChange) {
                final String jTextFieldTxt = jtxtf.getText();
                if (jTextFieldTxt != null && !"".equals(jTextFieldTxt)) {

                    //check if text changed...
                    if (jTextFieldTxt.equals(myjl.getText())) {
                        return;
                    }

                    int actvLabelId = getFromDBActvLabelId(jTextFieldTxt);
                    if (isActvIdRepeatToday(actvLabelId)) {
                        JOptionPane.showInternalMessageDialog(jPanel1, recursosTexto.getString("msgErrIsRepActvLbl"), recursosTexto.getString("msgErrIsRepActvLblT"), JOptionPane.ERROR_MESSAGE);
                        return;
                    }

                    //First check if the label's text already exists in the DB.
                    if (actvLabelId == ACTV_CAT_UNSPECIFIED_ID) {
                        updateScreenResetRowValues(currentlyShownActivityRowsNum); //Reset values of default component ONLY if NEW label, else use DBs value...
                        actvLabelId = updateInDBActvLabelDesc(jTextFieldTxt, COMPONENT_TYPE_DEFAULT);
                    }

                    myjl.setId(actvLabelId);
                    myjl.setText(jTextFieldTxt);

                    //update probable missmatch
                    //updateScreenActvIdDayMissMatch();

                    //Fix to save label changes to DB
                    updateInDBDayEntry( DAYS_TO_ROLL_TODAY_STR );

                }
            }


        }

    }