Example usage for javafx.scene.text FontWeight EXTRA_BOLD

List of usage examples for javafx.scene.text FontWeight EXTRA_BOLD

Introduction

In this page you can find the example usage for javafx.scene.text FontWeight EXTRA_BOLD.

Prototype

FontWeight EXTRA_BOLD

To view the source code for javafx.scene.text FontWeight EXTRA_BOLD.

Click Source Link

Document

represents 'Extra Bold' font weight (800).

Usage

From source file:com.virus.removal.javafxapplication.FXMLDocumentController.java

@Override
public void initialize(final URL url, final ResourceBundle rb) {

    dash.setVisible(false);//from  w w w  .  j a  va 2s. c  o m
    scann.setVisible(false);
    about.setVisible(false);
    his.setVisible(false);
    update.setVisible(false);
    general.setVisible(false);
    isProtected.setVisible(false);
    unprotected.setVisible(true);

    handler = VirusREMHandler.getInstance();
    virusRegistry = VirusRegistry.getInstance();
    rkm = RegistryKeyManager.getInstance();
    virusCache = VirusCache.instance;

    textAreaForHistoryFromFile = readVirusScanHistoryFromFile();

    if (StringUtils.isBlank(textAreaForHistoryFromFile.getText())) {
        if (StringUtils.isNotBlank(textAreaForHistory.getText())) {
            textAreaForHistory.clear();
        }
        textAreaForHistory.setStyle("-fx-text-fill: #00AEEF;");
        textAreaForHistory.setFont(Font.font("Verdana", FontWeight.EXTRA_BOLD, 12));
        textAreaForHistory
                .appendText("\n\n\n\n\n\n\n\n\n\n\n                                                  ");
        textAreaForHistory.appendText(HISTORY_UNAVAILABLE);
        clearHistory.setDisable(true);
    }

    final String languageName = readLastSavedLanguageFromFile();

    if (StringUtils.isNotBlank(languageName)) {
        if (StringUtils.equals(languageName, "English")) {
            this.ee(null);
        } else if (StringUtils.equals(languageName, "French")) {
            this.ff(null);
        } else if (StringUtils.equals(languageName, "Spanish")) {
            this.ss(null);
        } else if (StringUtils.equals(languageName, "Portuguese")) {
            this.pp(null);
        }
    } else {
        drop.setText("English");
        this.ee(null);
    }

}

From source file:com.virus.removal.javafxapplication.FXMLDocumentController.java

/**
 * @param event/*  www.  ja v  a2 s. com*/
 */
@FXML
private void b3(final ActionEvent event) {

    if (isPageProtected) {
        c3.setStyle("-fx-background-color:#3FC639");
    } else {
        c3.setStyle("-fx-background-color:#DF4444");
    }
    b3.setStyle("-fx-background-color:#373E48");

    c1.setStyle("-fx-background-color:transparent");
    b1.setStyle("-fx-background-color:transparent");

    c2.setStyle("-fx-background-color:transparent");
    b2.setStyle("-fx-background-color:transparent");

    c4.setStyle("-fx-background-color:transparent");
    b4.setStyle("-fx-background-color:transparent");

    b5.setStyle("-fx-background-color:transparent");
    b6.setStyle("-fx-background-color:transparent");

    his.setVisible(true);
    his.setManaged(true);

    isProtected.setVisible(false);
    isProtected.setManaged(false);

    scann.setVisible(false);
    scann.setManaged(false);

    dash.setVisible(false);
    dash.setManaged(false);

    about.setVisible(false);
    about.setManaged(false);

    update.setVisible(false);
    update.setManaged(false);

    general.setVisible(false);
    general.setManaged(false);

    unprotected.setVisible(false);
    unprotected.setManaged(false);

    javafx.application.Platform.runLater(new Runnable() {

        /* (non-Javadoc)
         * @see java.lang.Runnable#run()L
         */
        @Override
        public void run() {

            textAreaForHistory.setStyle("-fx-text-fill: #00AEEF;");

            if (!isHistoryDataAppended) {
                if (StringUtils.isNotBlank(textAreaForHistoryFromFile.getText())) {
                    System.out.println(textAreaForHistoryFromFile.getText());
                    textAreaForHistory.setFont(Font.font("Verdana", FontWeight.EXTRA_BOLD, 11));
                    textAreaForHistory.appendText(textAreaForHistoryFromFile.getText());
                    clearHistory.setDisable(false);
                    isHistoryDataAppended = true;
                }
            }

        }
    });

}

From source file:com.virus.removal.javafxapplication.FXMLDocumentController.java

/**
 * @param event/*from   w ww  .  ja  va2 s. c o m*/
 */
@FXML
private void b5(final ActionEvent event) {

    b5.setStyle("-fx-background-color:#373E48");
    b6.setStyle("-fx-background-color:transparent");

    c4.setStyle("-fx-background-color:transparent");
    b4.setStyle("-fx-background-color:transparent");

    c2.setStyle("-fx-background-color:transparent");
    b2.setStyle("-fx-background-color:transparent");

    c3.setStyle("-fx-background-color:transparent");
    b3.setStyle("-fx-background-color:transparent");

    c1.setStyle("-fx-background-color:transparent");
    b1.setStyle("-fx-background-color:transparent");

    general.setVisible(true);
    general.setManaged(true);

    isProtected.setVisible(false);
    isProtected.setManaged(false);

    scann.setManaged(false);
    scann.setVisible(false);

    dash.setVisible(false);
    dash.setManaged(false);

    his.setVisible(false);
    his.setManaged(false);

    about.setVisible(false);
    about.setManaged(false);

    update.setVisible(false);
    update.setManaged(false);

    unprotected.setVisible(false);
    unprotected.setManaged(false);

    if (StringUtils.isBlank(textAreaForGeneralSettings.getText())) {
        javafx.application.Platform.runLater(new Runnable() {

            @Override
            public void run() {
                textAreaForGeneralSettings
                        .appendText("\n\n\n\n\n\n\n\n\n\n\n                                                  ");
                if (StringUtils.equals(drop.getText(), "English")) {
                    textAreaForGeneralSettings.appendText(SETTINGS_UNAVAILABLE);
                } else if (StringUtils.equals(drop.getText(), "Spanish")) {
                    textAreaForGeneralSettings.appendText(SETTINGS_UNAVAILABLE_IN_SPANISH);
                } else if (StringUtils.equals(drop.getText(), "French")) {
                    textAreaForGeneralSettings.appendText(SETTINGS_UNAVAILABLE_IN_FRENCH);
                } else if (StringUtils.equals(drop.getText(), "Portuguese")) {
                    textAreaForGeneralSettings.appendText(SETTINGS_UNAVAILABLE_IN_PORTUGUESE);
                }
                textAreaForGeneralSettings.setFont(Font.font("Verdana", FontWeight.EXTRA_BOLD, 12));
                textAreaForGeneralSettings.setStyle("-fx-text-fill: #00AEEF;");
            }

        });
    }

}

From source file:com.virus.removal.javafxapplication.FXMLDocumentController.java

/**
 * @param event/*from  www.j  ava 2s  .c o m*/
 */
@FXML
private void b6(final ActionEvent event) {

    b6.setStyle("-fx-background-color:#373E48");
    b5.setStyle("-fx-background-color:transparent");

    c4.setStyle("-fx-background-color:transparent");
    b4.setStyle("-fx-background-color:transparent");

    c2.setStyle("-fx-background-color:transparent");
    b2.setStyle("-fx-background-color:transparent");

    c3.setStyle("-fx-background-color:transparent");
    b3.setStyle("-fx-background-color:transparent");

    c1.setStyle("-fx-background-color:transparent");
    b1.setStyle("-fx-background-color:transparent");

    update.setVisible(true);
    update.setManaged(true);

    isProtected.setVisible(false);
    isProtected.setManaged(false);

    scann.setVisible(false);
    scann.setManaged(false);

    dash.setVisible(false);
    dash.setManaged(false);

    his.setVisible(false);
    his.setManaged(false);

    about.setVisible(false);
    about.setManaged(false);

    general.setVisible(false);
    general.setManaged(false);

    unprotected.setVisible(false);
    unprotected.setManaged(false);

    if (StringUtils.isBlank(textAreaForUpdate.getText())) {
        javafx.application.Platform.runLater(new Runnable() {

            @Override
            public void run() {
                textAreaForUpdate
                        .appendText("\n\n\n\n\n\n\n\n\n\n\n                                                  ");
                if (drop.getText().equals("English")) {
                    textAreaForUpdate.appendText(UPDATE_UNAVAILABLE);
                } else if (drop.getText().equals("Spanish")) {
                    textAreaForUpdate.appendText(UPDATE_UNAVAILABLE_IN_SPANISH);
                } else if (drop.getText().equals("French")) {
                    textAreaForUpdate.appendText(UPDATE_UNAVAILABLE_IN_FRENCH);
                } else if (drop.getText().equals("Portuguese")) {
                    textAreaForUpdate.appendText(UPDATE_UNAVAILABLE_IN_PORTUGUESE);
                }
                textAreaForUpdate.setFont(Font.font("Verdana", FontWeight.EXTRA_BOLD, 12));
                textAreaForUpdate.setStyle("-fx-text-fill: #00AEEF;");
            }

        });
    }

}

From source file:com.virus.removal.javafxapplication.FXMLDocumentController.java

/**
 * @param event//w w  w  .  j a v a 2s.c  o m
 */
@FXML
private void clearHistory(final ActionEvent event) {

    c3.setStyle("-fx-background-color:#DF4444");
    b3.setStyle("-fx-background-color:#373E48");

    c1.setStyle("-fx-background-color:transparent");
    b1.setStyle("-fx-background-color:transparent");

    c2.setStyle("-fx-background-color:transparent");
    b2.setStyle("-fx-background-color:transparent");

    c4.setStyle("-fx-background-color:transparent");
    b4.setStyle("-fx-background-color:transparent");

    b5.setStyle("-fx-background-color:transparent");
    b6.setStyle("-fx-background-color:transparent");

    his.setVisible(true);
    his.setManaged(true);

    isProtected.setVisible(false);
    isProtected.setManaged(false);

    scann.setVisible(false);
    scann.setManaged(false);

    dash.setVisible(false);
    dash.setManaged(false);

    about.setVisible(false);
    about.setManaged(false);

    update.setVisible(false);
    update.setManaged(false);

    general.setVisible(false);
    general.setManaged(false);

    unprotected.setVisible(false);
    unprotected.setManaged(false);

    javafx.application.Platform.runLater(new Runnable() {

        /* (non-Javadoc)
         * @see java.lang.Runnable#run()
         */
        @Override
        public void run() {
            textAreaForHistory.clear();
            clearHistory.setDisable(true);

            textAreaForHistory
                    .appendText("\n\n\n\n\n\n\n\n\n\n\n                                                  ");

            if (StringUtils.equals(drop.getText(), "English")) {
                textAreaForHistory.appendText(HISTORY_UNAVAILABLE);
                textForLastScanInHistory.setText("Last Scan: Please perform a scan.");
            } else if (StringUtils.equals(drop.getText(), "Spanish")) {
                textAreaForHistory.appendText(HISTORY_UNAVAILABLE_IN_SPANISH);
                textForLastScanInHistory.setText("ltimo escaneo: Por favor, haga un escaneo.");
            } else if (StringUtils.equals(drop.getText(), "French")) {
                textAreaForHistory.appendText(HISTORY_UNAVAILABLE_IN_FRENCH);
                textForLastScanInHistory.setText("Dernier scan: Veuillez effectuer un scan.");
            } else if (StringUtils.equals(drop.getText(), "Portuguese")) {
                textAreaForHistory.appendText(HISTORY_UNAVAILABLE_IN_PORTUGUESE);
                textForLastScanInHistory.setText("ltima anlise: Por-favor faa uma anlise.");
            }

            textAreaForHistory.setFont(Font.font("Verdana", FontWeight.EXTRA_BOLD, 12));

            virusScanHistoryCount = 0;
        }
    });

    clearHistory.setTooltip(new Tooltip("Clear the history"));

}

From source file:com.virus.removal.javafxapplication.FXMLDocumentController.java

/**
 * @param event//from   w  ww.  ja  va  2s .c o m
 */
@FXML
private void ee(final ActionEvent event) {
    drop.setText("English");

    /* Dashboard */
    b2.setText("   Dashboard                   ");
    b2.setTooltip(new Tooltip("Dashboard"));

    b2.setLayoutX(1.0);
    b2.setLayoutY(109.0);

    d1.setText("Dashboard");
    d2.setText("Version: Adware & Toolbar Removal Tool");
    d3.setText("Demo");

    statusTextInDash.setText("Status:");
    lastScanTextInDash.setText("Last Scan:");
    buildTextInDash.setText("Build:");

    statusValInDash.setText(POTENTIALLY_UNPROTECTED);
    lastScanValInDash.setText("Please perform a scan");
    buildValInDash.setText("01.01.193");

    scan.setText("Scan Now");
    scan.setTooltip(new Tooltip("Scan Now"));

    /* Scan */
    b1.setText("   Scan                             ");
    b1.setTooltip(new Tooltip("Scan"));

    b1.setLayoutX(1.0);
    b1.setLayoutY(167.0);

    /* Unprotected after scan is completed */
    s1.setText("Potentially Unprotected!");
    s2.setText("Your computer may be at risk, please perform a scan.");
    s3.setText("Virus Scan");

    s4.setText("Adware Cleaner");
    s5.setText("Toolbar Cleaner");
    s6.setText("Demo");

    scan1.setText("Not up to date");
    scan2.setText("Not checked");
    scan3.setText("Not checked");

    /* Protected after scan is completed */
    protect1.setText("Potentially Protected!");
    protect2.setText("Your computer has been scanned and protected.");
    protect3.setText("Virus Scan");

    protect4.setText("Adware Cleaner");
    protect5.setText("Toolbar Cleaner");
    protect6.setText("Demo");

    scan4.setText("Up to date");
    scan5.setText("Checked");
    scan6.setText("Checked");

    u.setText("Start Scanning");
    u.setTooltip(new Tooltip("Start Scanning"));

    q.setText("Cancel Scan");

    /* History */
    b3.setText(" History                        ");
    b3.setTooltip(new Tooltip("History"));

    b3.setLayoutX(1.0);
    b3.setLayoutY(228.0);

    textForLastScanInHistory.setText("Last Scan: Please perform a scan.");
    textForDemo.setText("Demo");

    clearHistory.setText("Clear history");
    clearHistory.setTooltip(new Tooltip("Clear history"));

    if (StringUtils.isNotBlank(textAreaForHistory.getText())
            && (StringUtils.contains(textAreaForHistory.getText(), HISTORY_UNAVAILABLE_IN_SPANISH)
                    || StringUtils.contains(textAreaForHistory.getText(), HISTORY_UNAVAILABLE_IN_FRENCH)
                    || StringUtils.contains(textAreaForHistory.getText(), HISTORY_UNAVAILABLE_IN_PORTUGUESE))) {
        textAreaForHistory.clear();
        textAreaForHistory.setStyle("-fx-text-fill: #00AEEF;");
        textAreaForHistory.setFont(Font.font("Verdana", FontWeight.EXTRA_BOLD, 12));
        textAreaForHistory
                .appendText("\n\n\n\n\n\n\n\n\n\n\n                                                  ");
        textAreaForHistory.appendText(HISTORY_UNAVAILABLE);
        clearHistory.setDisable(true);
    }

    /* General Settings */
    b5.setText("General Settings      ");
    b5.setTooltip(new Tooltip("General Settings"));

    b5.setLayoutX(6.0);
    b5.setLayoutY(27.0);

    g1.setText("General Settings:");
    g2.setText("Version: Adware & Toolbar Removal Tool");
    g3.setText("Build: 01.01.193");
    g4.setText("Demo");

    w.setText("Apply");
    e.setText("Cancel");

    if (StringUtils.isNotBlank(textAreaForGeneralSettings.getText())) {
        textAreaForGeneralSettings.clear();
    }
    textAreaForGeneralSettings.setStyle("-fx-text-fill: #00AEEF;");
    textAreaForGeneralSettings.setFont(Font.font("Verdana", FontWeight.EXTRA_BOLD, 12));
    textAreaForGeneralSettings
            .appendText("\n\n\n\n\n\n\n\n\n\n\n                                                  ");
    textAreaForGeneralSettings.appendText(SETTINGS_UNAVAILABLE);

    /* Update */
    b6.setText("Update                   ");
    b6.setTooltip(new Tooltip("Update"));

    b6.setLayoutX(3.0);
    b6.setLayoutY(82.0);

    updateFound.setText("Update(s) Found:");
    updateNow.setText("Update Now");
    installUpdates.setText("Install Updates");
    ignore.setText("Ignore");
    demoInUpdate.setText("Demo");

    textAreaForUpdate.clear();
    textAreaForUpdate.appendText("\n\n\n\n\n\n\n\n\n\n\n                                                  ");
    textAreaForUpdate.appendText(UPDATE_UNAVAILABLE);
    textAreaForUpdate.setFont(Font.font("Verdana", FontWeight.EXTRA_BOLD, 12));
    textAreaForUpdate.setStyle("-fx-text-fill: #00AEEF;");

    /* About */
    b4.setText("  About                        ");
    b4.setTooltip(new Tooltip("About"));

    b4.setLayoutX(4.0);
    b4.setLayoutY(136.0);

    a1.setText("About");
    a2.setText("Version: Adware & Toolbar Removal Tool");
    a3.setText("Device ID: Demo Version");
    a4.setText("Demo");

    t.setText("Help");
    y.setText("Register");

    /* Advanced Settings */
    b7.setText("Advanced Settings");
    //b7.setTooltip(new Tooltip("Advanced Settings"));

    b7.setLayoutX(1.0);
    b7.setLayoutY(292.0);

    txt.setText(
            "An important aspect of technology is its accessibility and moreover assurance that things will not go wrong, as everything which has to do with the technology industry and the ecosystem it has built, has grown phenomenally, so has the need for better security, more reliable interfaces, and optimal performance. Keeping just that in mind at VirusREM weve come up with the perfect product which caters to both the mass market of consumers and the niche requirements of corporations.");
}

From source file:com.virus.removal.javafxapplication.FXMLDocumentController.java

/**
 * @param event//w  ww.  j  a v a  2 s  . co m
 */
@FXML
private void ss(final ActionEvent event) {
    drop.setText("Spanish");

    /* Dashboard */
    b2.setText(" Panel de Control        ");
    b2.setTooltip(new Tooltip("Panel de Control"));

    b2.setLayoutX(1.0);
    b2.setLayoutY(109.0);

    d1.setText("Panel de Control");
    d2.setText("Versin: Adware & Herramienta para remover Barra de Herramientas");
    d3.setText("Demo");

    statusTextInDash.setText("Estatus:");
    lastScanTextInDash.setText("ltimo escaneo:");
    buildTextInDash.setText("Armado:");

    statusValInDash.setText("Potencialmente Desprotegido");
    lastScanValInDash.setText("Por favor, haga un escaneo");
    buildValInDash.setText("01.01.193");

    scan.setText("Escanear Ahora");
    scan.setTooltip(new Tooltip("Escanear Ahora"));

    /* Scan */
    b1.setText(" Escaneo                      ");
    b1.setTooltip(new Tooltip("Escaneo"));

    b1.setLayoutX(1.0);
    b1.setLayoutY(167.0);

    /* Unprotected after scan is completed */
    s1.setText("Potencialmente Desprotegido!");
    s2.setText("Tu computadora puede estar en riesgo. Por favor, haz un escaneo.");
    s3.setText("Escaneo de virus");

    s4.setText("Limpiador de Adware");
    s5.setText("Limpiador de Barra de Herramientas");
    s6.setText("Demo");

    scan1.setText("No actualizado");
    scan2.setText("Sin revisar");
    scan3.setText("Sin revisar");

    /* Protected after scan is completed */
    protect1.setText("Potencialmente Protegido!");
    protect2.setText("El ordenador ha sido escaneada y protegido.");
    protect3.setText("Escaneo de virus");

    protect4.setText("Limpiador de Adware");
    protect5.setText("Limpiador de Barra de Herramientas");
    protect6.setText("Demo");

    scan4.setText("A hoy");
    scan5.setText("Comprobado");
    scan6.setText("Comprobado");

    u.setText("Comenzando escaneo");
    u.setTooltip(new Tooltip("Comenzando escaneo"));

    q.setText("Cancelar Escaneo");

    /* History */
    b3.setText("   Historial                        ");
    b3.setTooltip(new Tooltip("Historial"));

    b3.setLayoutX(1.0);
    b3.setLayoutY(228.0);

    textForLastScanInHistory.setText("ltimo escaneo: Por favor, haga un escaneo.");
    textForDemo.setText("Demo");

    clearHistory.setText("Limpiar historial");
    clearHistory.setTooltip(new Tooltip("Limpiar historial"));

    if (StringUtils.isNotBlank(textAreaForHistory.getText())
            && (StringUtils.contains(textAreaForHistory.getText(), HISTORY_UNAVAILABLE)
                    || StringUtils.contains(textAreaForHistory.getText(), HISTORY_UNAVAILABLE_IN_FRENCH)
                    || StringUtils.contains(textAreaForHistory.getText(), HISTORY_UNAVAILABLE_IN_PORTUGUESE))) {
        textAreaForHistory.clear();
        textAreaForHistory.setStyle("-fx-text-fill: #00AEEF;");
        textAreaForHistory.setFont(Font.font("Verdana", FontWeight.EXTRA_BOLD, 12));
        textAreaForHistory
                .appendText("\n\n\n\n\n\n\n\n\n\n\n                                                  ");
        textAreaForHistory.appendText(HISTORY_UNAVAILABLE_IN_SPANISH);
        clearHistory.setDisable(true);
    }

    /* General Settings */
    b5.setText("  Configuraciones Generales   ");
    b5.setTooltip(new Tooltip("Configuraciones Generales"));

    b5.setLayoutX(6.0);
    b5.setLayoutY(27.0);

    g1.setText("Configuraciones Generales:");
    g2.setText("Versin: Adware & Herramienta para remover Barra de Herramientas");
    g3.setText("Armado: 01.01.193");
    g4.setText("Demo");

    w.setText("Aplicar");
    e.setText("Cancelar");

    if (StringUtils.isNotBlank(textAreaForGeneralSettings.getText())) {
        textAreaForGeneralSettings.clear();
    }
    textAreaForGeneralSettings.setStyle("-fx-text-fill: #00AEEF;");
    textAreaForGeneralSettings.setFont(Font.font("Verdana", FontWeight.EXTRA_BOLD, 12));
    textAreaForGeneralSettings
            .appendText("\n\n\n\n\n\n\n\n\n\n\n                                                  ");
    textAreaForGeneralSettings.appendText(SETTINGS_UNAVAILABLE_IN_SPANISH);

    /* Update */
    b6.setText("   Actualizar                   ");
    b6.setTooltip(new Tooltip("Actualizar"));

    b6.setLayoutX(3.0);
    b6.setLayoutY(82.0);

    updateFound.setText("Actualizaciones Encontradas:");
    updateNow.setText("Actualice Ahora");
    ignore.setText("Ignorar");
    demoInUpdate.setText("Demo");

    textAreaForUpdate.clear();
    textAreaForUpdate.appendText("\n\n\n\n\n\n\n\n\n\n\n                                                  ");
    textAreaForUpdate.appendText(UPDATE_UNAVAILABLE_IN_SPANISH);
    textAreaForUpdate.setFont(Font.font("Verdana", FontWeight.EXTRA_BOLD, 12));
    textAreaForUpdate.setStyle("-fx-text-fill: #00AEEF;");

    /* About */
    b4.setText("  Acerca                        ");
    b4.setTooltip(new Tooltip("Acerca"));

    b4.setLayoutX(4.0);
    b4.setLayoutY(136.0);

    a1.setText("Acerca");
    a2.setText("Versin: Adware & Herramienta para remover Barra de");
    a3.setText("ID del dispositivo: Demo Versin");
    a4.setText("Demo");

    t.setText("Ayuda");
    y.setText("Registrar");

    /* Advanced Settings */
    b7.setText("Configuraciones Avanzadas     ");
    //b7.setTooltip(new Tooltip("Configuraciones Avanzadas"));

    b7.setLayoutX(1.0);
    b7.setLayoutY(292.0);

    txt.setText(
            "Un aspecto importante de la tecnologa es su accesibilidad y garanta, adems, que las cosas no van mal, como todo lo que tiene que ver con la industria de la tecnologa y el ecosistema que ha construido, ha crecido enormemente, por lo que tiene la necesidad de mejorar la seguridad, las interfaces ms fiables y un rendimiento ptimo. Mantener slo eso en mente en VirusREM que hemos llegado con el producto perfecto, que atiende a las necesidades del mercado de masas de los consumidores y las necesidades de las empresas de nicho.");
}

From source file:com.virus.removal.javafxapplication.FXMLDocumentController.java

/**
 * @param event/*from   w  ww  .  j  a  v a 2  s . c o m*/
 */
@FXML
private void ff(final ActionEvent event) {
    drop.setText("French");

    /* Dashboard */
    //      b2.setText("   Tableau de bord                   ");
    b2.setText("Tableau de bord");
    b2.setTooltip(new Tooltip("Tableau de bord"));

    b2.setLayoutX(-12.0);
    b2.setLayoutY(109.0);

    d1.setText("Tableau de bord");
    d2.setText("Version: Outil de suppression de barre doutils et Adwares (logiciels publicitaires)");
    d3.setText("Dmo");

    statusTextInDash.setText("Statut:");
    lastScanTextInDash.setText("Dernier scan:");
    buildTextInDash.setText("Construire:");

    statusValInDash.setText("Potentiellement non protg");
    lastScanValInDash.setText("Veuillez effectuer un scan");
    buildValInDash.setText("01.01.193");

    scan.setText("Scanner maintenant");
    scan.setTooltip(new Tooltip("Scanner maintenant"));

    /* Scan */
    b1.setText(" Scan                             ");
    b1.setTooltip(new Tooltip("Scan"));

    b1.setLayoutX(1.0);
    b1.setLayoutY(167.0);

    /* Unprotected after scan is completed */
    s1.setText("Potentiellement Non protg!");
    s2.setText("Votre ordinateur peut tre en risque, veuillez effectuer un scan.");
    s3.setText("Scan de virus");

    s4.setText("Nettoyeur des Adwares");
    s5.setText("Nettoyeur de barre doutils");
    s6.setText("Dmo");

    scan1.setText("n'est pas  jour");
    scan2.setText("Non vrifi");
    scan3.setText("Non vrifi");

    /* Protected after scan is completed */
    protect1.setText("Potentiellement Protected!");
    protect2.setText("Votre ordinateur a t numris et protg.");
    protect3.setText("Scan de virus");

    protect4.setText("Nettoyeur des Adwares");
    protect5.setText("Nettoyeur de barre doutils");
    protect6.setText("Dmo");

    scan4.setText(" jour");
    scan5.setText("Vrifi");
    scan6.setText("Vrifi");

    u.setText("commencer le scan");
    u.setTooltip(new Tooltip("commencer le scan"));

    q.setText("Annuler Scan");

    /* History */
    //b3.setText("   Historique                        ");
    b3.setText("Historique");
    b3.setTooltip(new Tooltip("Historique"));

    b3.setLayoutX(-30.0);
    b3.setLayoutY(228.0);

    textForLastScanInHistory.setText("Dernier scan: Veuillez effectuer un scan.");
    textForDemo.setText("Dmo");

    clearHistory.setText("Supprimer lhistorique");
    clearHistory.setTooltip(new Tooltip("Supprimer lhistorique"));

    if (StringUtils.isNotBlank(textAreaForHistory.getText())
            && (StringUtils.contains(textAreaForHistory.getText(), HISTORY_UNAVAILABLE_IN_SPANISH)
                    || StringUtils.contains(textAreaForHistory.getText(), HISTORY_UNAVAILABLE)
                    || StringUtils.contains(textAreaForHistory.getText(), HISTORY_UNAVAILABLE_IN_PORTUGUESE))) {
        textAreaForHistory.clear();
        textAreaForHistory.setStyle("-fx-text-fill: #00AEEF;");
        textAreaForHistory.setFont(Font.font("Verdana", FontWeight.EXTRA_BOLD, 12));
        textAreaForHistory
                .appendText("\n\n\n\n\n\n\n\n\n\n\n                                                  ");
        textAreaForHistory.appendText(HISTORY_UNAVAILABLE_IN_FRENCH);
        clearHistory.setDisable(true);
    }

    /* General Settings */
    b5.setText("  Paramtres gnraux      ");
    b5.setTooltip(new Tooltip("Paramtres gnraux"));

    b5.setLayoutX(6.0);
    b5.setLayoutY(27.0);

    g1.setText("Paramtres gnraux:");
    g2.setText("Version: Outil de suppression de barre doutils et Adwares");
    g3.setText("Construire: 01.01.193");
    g4.setText("Dmo");

    w.setText("Appliquer");
    e.setText("Annuler");

    if (StringUtils.isNotBlank(textAreaForGeneralSettings.getText())) {
        textAreaForGeneralSettings.clear();
    }
    textAreaForGeneralSettings.setStyle("-fx-text-fill: #00AEEF;");
    textAreaForGeneralSettings.setFont(Font.font("Verdana", FontWeight.EXTRA_BOLD, 12));
    textAreaForGeneralSettings
            .appendText("\n\n\n\n\n\n\n\n\n\n\n                                                  ");
    textAreaForGeneralSettings.appendText(SETTINGS_UNAVAILABLE_IN_FRENCH);

    /* Update */
    //      b6.setText("   Mise  jour                   ");
    b6.setText("Mise  jour");
    b6.setTooltip(new Tooltip("Mise  jour"));

    b6.setLayoutX(-18.0);
    b6.setLayoutY(82.0);

    updateFound.setText("Mise  jour (s) trouve (s):");
    updateNow.setText("Mettre  jour maintenant");
    ignore.setText("Ignorer");
    demoInUpdate.setText("Dmo");

    textAreaForUpdate.clear();
    textAreaForUpdate.appendText("\n\n\n\n\n\n\n\n\n\n\n                                                  ");
    textAreaForUpdate.appendText(UPDATE_UNAVAILABLE_IN_FRENCH);
    textAreaForUpdate.setFont(Font.font("Verdana", FontWeight.EXTRA_BOLD, 12));
    textAreaForUpdate.setStyle("-fx-text-fill: #00AEEF;");

    /* About */
    //      b4.setText("    propos                        ");
    b4.setText(" propos");
    b4.setTooltip(new Tooltip(" propos"));

    b4.setLayoutX(-23.0);
    b4.setLayoutY(136.0);

    a1.setText(" propos");
    a2.setText("Version: Outil de suppression de barre doutils et des Adwares");
    a3.setText("ID de l'appareil: Dmo Version");
    a4.setText("Dmo");

    t.setText("Aide");
    y.setText("S'inscrire");

    /* Advanced Settings */
    b7.setText("Paramtres avancs");
    //b7.setTooltip(new Tooltip("Paramtres avancs"));

    b7.setLayoutX(1.0);
    b7.setLayoutY(292.0);

    txt.setText(
            "Un aspect important de la technologie est son accessibilit et de l'assurance de plus que les choses ne vont pas aller mal, comme tout ce qui a  voir avec l'industrie de la technologie et de l'cosystme, il a construit, a connu une croissance phnomnale, a donc la ncessit d'une meilleure scurit, interfaces plus fiables , et des performances optimales. Garder tout cela  l'esprit  VirusREM nous avons mis au point le produit parfait qui rpond  la fois le march de masse des consommateurs et les exigences de niche des socits.");
}

From source file:com.virus.removal.javafxapplication.FXMLDocumentController.java

/**
 * @param event/*from   ww w . java  2 s  .c o m*/
 */
@FXML
private void pp(final ActionEvent event) {
    drop.setText("Portuguese");

    /* Dashboard */
    b2.setText("Painel                   ");
    b2.setTooltip(new Tooltip("Painel"));

    b2.setLayoutX(-10.0);
    b2.setLayoutY(109.0);

    d1.setText("Painel");
    d2.setText("Verso: Adware & Ferramenta De Remoo da Barra de Ferramentas");
    d3.setText("Demonstrao");

    statusTextInDash.setText("Estado:");
    lastScanTextInDash.setText("ltima anlise:");
    buildTextInDash.setText("Construa:");

    statusValInDash.setText("Potencialmente Desprotegido");
    lastScanValInDash.setText("Por-favor faa uma anlise");
    buildValInDash.setText("01.01.193");

    scan.setText("Anlise agora");
    scan.setTooltip(new Tooltip("Anlise agora"));

    /* Scan */
    //      b1.setText("      Anlise                             ");
    b1.setText("Anlise");
    b1.setTooltip(new Tooltip("Anlise"));

    b1.setLayoutX(-38.0);
    b1.setLayoutY(167.0);

    /* Unprotected after scan is completed */
    s1.setText("Potencialmente Desprotegido!");
    s2.setText("O seu computador pode estar em risco, por-favor faa uma anlise.");
    s3.setText("Anlise de vrus");

    s4.setText("Limpador do Adware");
    s5.setText("Limpador da Barra de Ferramentas");
    s6.setText("Demonstrao");

    scan1.setText("Desatualizado");
    scan2.setText("No verificado");
    scan3.setText("No verificado");

    /* Protected after scan is completed */
    protect1.setText("Potencialmente Protegido!");
    protect2.setText("O seu computador foi digitalizado e protegida.");
    protect3.setText("Anlise de vrus");

    protect4.setText("Limpador do Adware");
    protect5.setText("Limpador da Barra de Ferramentas");
    protect6.setText("Demonstrao");

    scan4.setText("Atualizado");
    scan5.setText("Verificado");
    scan6.setText("Verificado");

    u.setText("Comear a anlise");
    u.setTooltip(new Tooltip("Comear a anlise"));

    q.setText("Cancele Anlise");

    /* History */
    b3.setText("Histrico");
    b3.setTooltip(new Tooltip("Histrico"));

    b3.setLayoutX(-33.0);
    b3.setLayoutY(228.0);

    textForLastScanInHistory.setText("ltima anlise: Por-favor faa uma anlise.");
    textForDemo.setText("Demonstrao");

    clearHistory.setText("Histrico limpo");
    clearHistory.setTooltip(new Tooltip("Histrico limpo"));

    if (StringUtils.isNotBlank(textAreaForHistory.getText())
            && (StringUtils.contains(textAreaForHistory.getText(), HISTORY_UNAVAILABLE_IN_SPANISH)
                    || StringUtils.contains(textAreaForHistory.getText(), HISTORY_UNAVAILABLE_IN_FRENCH)
                    || StringUtils.contains(textAreaForHistory.getText(), HISTORY_UNAVAILABLE))) {
        textAreaForHistory.clear();
        textAreaForHistory.setStyle("-fx-text-fill: #00AEEF;");
        textAreaForHistory.setFont(Font.font("Verdana", FontWeight.EXTRA_BOLD, 12));
        textAreaForHistory
                .appendText("\n\n\n\n\n\n\n\n\n\n\n                                                  ");
        textAreaForHistory.appendText(HISTORY_UNAVAILABLE_IN_PORTUGUESE);
        clearHistory.setDisable(true);
    }

    /* General Settings */
    b5.setText("  Configuraes Gerais      ");
    b5.setTooltip(new Tooltip("Configuraes Gerais"));

    b5.setLayoutX(6.0);
    b5.setLayoutY(27.0);

    g1.setText("Configuraes Gerais:");
    g2.setText("Verso: Adware & Ferramenta De Remoo da Barra de Ferramentas");
    g3.setText("Construa: 01.01.193");
    g4.setText("Demonstrao");

    w.setText("Aplique");
    e.setText("Cancele");

    if (StringUtils.isNotBlank(textAreaForGeneralSettings.getText())) {
        textAreaForGeneralSettings.clear();
    }
    textAreaForGeneralSettings.setStyle("-fx-text-fill: #00AEEF;");
    textAreaForGeneralSettings.setFont(Font.font("Verdana", FontWeight.EXTRA_BOLD, 12));
    textAreaForGeneralSettings
            .appendText("\n\n\n\n\n\n\n\n\n\n\n                                                  ");
    textAreaForGeneralSettings.appendText(SETTINGS_UNAVAILABLE_IN_PORTUGUESE);

    /* Update */
    b6.setText("Actualizaoe");
    b6.setTooltip(new Tooltip("Actualizaoe"));

    b6.setLayoutX(-10.0);
    b6.setLayoutY(82.0);
    updateFound.setText("Actualizao(es) Encontrada(s):");
    updateNow.setText("Actualize agora");
    ignore.setText("Ignore");
    demoInUpdate.setText("Demonstrao");

    textAreaForUpdate.clear();
    textAreaForUpdate.appendText("\n\n\n\n\n\n\n\n\n\n\n                                                  ");
    textAreaForUpdate.appendText(UPDATE_UNAVAILABLE_IN_PORTUGUESE);
    textAreaForUpdate.setFont(Font.font("Verdana", FontWeight.EXTRA_BOLD, 12));
    textAreaForUpdate.setStyle("-fx-text-fill: #00AEEF;");

    /* About */
    b4.setText(" Sobre                        ");
    b4.setTooltip(new Tooltip("Sobre"));

    b4.setLayoutX(4.0);
    b4.setLayoutY(136.0);

    a1.setText("Sobre");
    a2.setText("Verso: Adware & Ferramenta De Remoo da Barra de Ferramentas");
    a3.setText("ID do aparelho: Demonstrao Verso");
    a4.setText("Demonstrao");

    t.setText("Ajuda");
    y.setText("Registe-se");

    /* Advanced Settings */
    b7.setText("Configuraes Avanadas");
    //b7.setTooltip(new Tooltip("Configuraes Avanadas"));

    b7.setLayoutX(1.0);
    b7.setLayoutY(292.0);

    txt.setText(
            "Um aspecto importante da tecnologia  a sua acessibilidade e garantia, alm disso, que as coisas no vo dar errado, como tudo o que tem a ver com a indstria da tecnologia e do ecossistema que construiu, tem crescido fenomenalmente, tem assim a necessidade de uma melhor segurana, as interfaces mais fiveis e um desempenho ideal. Mantendo apenas isso em mente o tempo VirusREM ns viemos acima com o produto perfeito, que serve tanto para o mercado de massa de consumidores e os requisitos de nicho de empresas.");
}

From source file:com.virus.removal.javafxapplication.FXMLDocumentController.java

/**
 * /*from w  ww  .  j a v  a  2 s  .  c o m*/
 */
private void processHistoryData() {

    if (handler.getVirusScanStatus() == VirusScanStatus.VIRUS_JOB_COMPLETED
            || handler.getVirusScanStatus() == VirusScanStatus.VIRUS_SCAN_STOPPED) {

        textAreaForHistory.setStyle("-fx-text-fill: #00AEEF;");

        /* Enable the button */
        if (clearHistory.isDisabled()
                && (textAreaForHistory.getText().contains(HISTORY_UNAVAILABLE)
                        || textAreaForHistory.getText().contains(HISTORY_UNAVAILABLE_IN_SPANISH)
                        || textAreaForHistory.getText().contains(HISTORY_UNAVAILABLE_IN_FRENCH)
                        || textAreaForHistory.getText().contains(HISTORY_UNAVAILABLE_IN_PORTUGUESE))
                && virusScanHistoryList.size() > 0) {
            clearHistory.setDisable(false);
            textAreaForHistory.clear();
        }

        textAreaForHistory.setFont(Font.font("Verdana", FontWeight.EXTRA_BOLD, 11));

        for (final VirusScanHistory virusScanHistory : virusScanHistoryList) {

            /* Scanned Date */
            final Text scannedText = new Text("Scanned: " + virusScanHistory.getScanDate());
            scannedText.setLayoutX(50.0);
            scannedText.setLayoutY(150.0);

            if (virusScanHistoryCount != 0) {
                textAreaForHistory.appendText("\n\n\n\n");
            }

            textAreaForHistory.appendText(scannedText.getText());
            textAreaForHistory.appendText("                                                         ");

            /* Status */
            final String jobStatus = virusScanHistory.getScanStatus();
            final Text jobStatusText = new Text(jobStatus);

            final Text statusText = new Text("Status: " + jobStatusText.getText());
            statusText.setLayoutX(450.0);
            statusText.setLayoutY(150.0);

            textAreaForHistory.appendText(statusText.getText());

            textAreaForHistory.appendText("\n\n");

            /* PC Name */
            final Text pcNameText = new Text("PC Name: " + virusScanHistory.getPcName());
            pcNameText.setLayoutX(50.0);
            pcNameText.setLayoutY(175.0);

            textAreaForHistory.appendText(pcNameText.getText());
            textAreaForHistory.appendText(
                    "                                                                                  ");

            /* Threats Found */
            final Text threatsFoundText = new Text("Threats Found: " + virusScanHistory.getThreatsFound());
            threatsFoundText.setLayoutX(450.0);
            threatsFoundText.setLayoutY(175.0);

            textAreaForHistory.appendText(threatsFoundText.getText());
            virusScanHistoryCount++;

        }
    } else {

        //         if (handler.getVirusScanStatus() == null || handler.getVirusScanStatus() == VirusScanStatus.VIRUS_SCAN_STARTED) {
        //
        //            if (textAreaForHistory.getText() == null || textAreaForHistory.getText().isEmpty()) {
        //               textAreaForHistory.appendText("\n\n\n\n\n\n\n\n\n\n\n                                                  ");
        //
        //               if (StringUtils.equals(drop.getText(), "English")) {
        //                  textAreaForHistory.appendText(HISTORY_UNAVAILABLE);
        //                  textForLastScanInHistory.setText("Last Scan: Please perform a scan.");
        //               } else if (StringUtils.equals(drop.getText(), "Spanish")) {
        //                  textAreaForHistory.appendText(HISTORY_UNAVAILABLE_IN_SPANISH);
        //                  textForLastScanInHistory.setText("ltimo escaneo: Por favor, haga un escaneo.");
        //               } else if (StringUtils.equals(drop.getText(), "French")) {
        //                  textAreaForHistory.appendText(HISTORY_UNAVAILABLE_IN_FRENCH);
        //                  textForLastScanInHistory.setText("Dernier scan: Veuillez effectuer un scan.");
        //               } else if (StringUtils.equals(drop.getText(), "Portuguese")) {
        //                  textAreaForHistory.appendText(HISTORY_UNAVAILABLE_IN_PORTUGUESE);
        //                  textForLastScanInHistory.setText("ltima anlise: Por-favor faa uma anlise.");
        //               } 
        //               
        //               textAreaForHistory.setFont(Font.font("Verdana", FontWeight.EXTRA_BOLD, 12));
        //               
        //               /* First time, button is disabled */
        //               clearHistory.setDisable(true);
        //               
        //            }
        //         }
    }

    virusScanHistoryList.clear();
}