Package javafx.scene.control

Examples of javafx.scene.control.TextField


        masterpwd_lbl = (Label) getFromCacheNode("masterpwd_lbl");

        EffectFX.neonEffect(username_lbl, Color.WHITE);
        EffectFX.neonEffect(masterpwd_lbl, Color.WHITE);

        /**
         * Se e' possibile per default il campo username e' impostato con il
         * valore della property "user.name".
         */
        final TextField USER_TXT = (TextField) getFromCacheNode("user_txt");

        String def_user = "";
        try {
            def_user = System.getProperty("user.name");
            if (def_user == null || def_user.length() == 0) {
                def_user = "";
            }
        } catch (Exception exc) {
        }
        USER_TXT.setText(def_user);

        /**
         * Carico i vari vaori del login, ed imposto gli eventi da gestire.
         */
        final PasswordField PASS_TXT = (PasswordField) getFromCacheNode("pass_txt");

        PASS_TXT.setText("");
        PASS_TXT.requestFocus();

        if (DEBUG) {
            PASS_TXT.setText("1234567890");
        }

        btn_exit = (Button) getFromCacheNode("exit_btn");
        btn_exit.setFocusTraversable(false);
        btn_exit.setOnAction((ActionEvent e) -> {
            UtilityFX.sysExit(__EXIT_NO_ERROR__);
        });

        login_btn = (Button) getFromCacheNode("login_btn");
        login_btn.setFocusTraversable(false);

        EventHandler<ActionEvent> eh = (ActionEvent event) -> {
            try {
                checkLogin(USER_TXT, PASS_TXT);
            } catch (Exception ex) {
                ex.printStackTrace();
            }
        };

        login_btn.setOnAction(eh);
        USER_TXT.setOnAction(eh);
        PASS_TXT.setOnAction(eh);

        //--------------------------------------------------------------------//
        //--------------------------------------------------------------------//
        //--------------------------------------------------------------------//
View Full Code Here


        Label masterpwd_lbl = (Label) getFromCacheNode("masterpwd_lbl");

        EffectFX.neonEffect(username_lbl, Color.WHITE);
        EffectFX.neonEffect(masterpwd_lbl, Color.WHITE);

        /**
         * Se e' possibile per default il campo username e' impostato con il
         * valore della property "user.name".
         */
        final TextField USER_TXT = (TextField) getFromCacheNode("user_txt");

        String def_user = "";
        try {
            def_user = System.getProperty("user.name");
            if (def_user == null || def_user.length() == 0) {
                def_user = "";
            }
        } catch (Exception exc) {
        }
        USER_TXT.setText(def_user);

        /**
         * Carico i vari vaori del login, ed imposto gli eventi da gestire.
         */
        final PasswordField PASS_TXT = (PasswordField) getFromCacheNode("pass_txt");

        PASS_TXT.setText("");
        PASS_TXT.requestFocus();

        if (DEBUG) {
            PASS_TXT.setText("1234567890");
        }

        btn_exit = (Button) getFromCacheNode("exit_btn");
        btn_exit.setFocusTraversable(false);
        btn_exit.setOnAction((ActionEvent e) -> {
            UtilityFX.sysExit(__EXIT_NO_ERROR__);
        });

        login_btn = (Button) getFromCacheNode("login_btn");
        login_btn.setFocusTraversable(false);

        EventHandler<ActionEvent> eh = (ActionEvent event) -> {
            try {
                checkLogin(USER_TXT, PASS_TXT);
            } catch (Exception ex) {
                ex.printStackTrace();
            }
        };

        login_btn.setOnAction(eh);
        USER_TXT.setOnAction(eh);
        PASS_TXT.setOnAction(eh);

        //--------------------------------------------------------------------//
        //--------------------------------------------------------------------//
        //--------------------------------------------------------------------//
View Full Code Here

    public void setValueInClearPassword(char[] password) {
        clear();
        boolean prec_disa = isEditorDisable();
        hidden_field = null;
        pass_field = null;
        clear_field = new TextField();
        clear_field.setDisable(prec_disa);
        clear_field.setPrefWidth(pane.getPrefWidth());
        clear_field.setText(new String(password));
        pane.getChildren().add(clear_field);
        setTypeImageCombo((int) SensibleValueTypeListener.PASS_VALUE_TYPE);
View Full Code Here

    public void setValueInClear(String password) {
        clear();
        boolean prec_disa = isEditorDisable();
        hidden_field = null;
        pass_field = null;
        clear_field = new TextField();
        clear_field.setDisable(prec_disa);
        clear_field.setPrefWidth(pane.getPrefWidth());
        clear_field.setText(password);
        pane.getChildren().add(clear_field);
        setTypeImageCombo((int) SensibleValueTypeListener.CLEAR_VALUE_TYPE);
View Full Code Here

    public void setValueHidden() {
        clear();
        clear_field = null;
        pass_field = null;
        hidden_field = new TextField();
        hidden_field.setPrefWidth(pane.getPrefWidth());
        hidden_field.setEditable(false);
        hidden_field.setAlignment(Pos.CENTER);
        hidden_field.setFocusTraversable(false);
        hidden_field.setMouseTransparent(true);
View Full Code Here

    public void setValueInClearPassword(char[] password) {
        clear();
        boolean prec_disa = isEditorDisable();
        hidden_field = null;
        pass_field = null;
        clear_field = new TextField();
        clear_field.setDisable(prec_disa);
        clear_field.setPrefWidth(pane.getPrefWidth());
        clear_field.setText(new String(password));
        pane.getChildren().add(clear_field);
        setTypeImageCombo((int) SensibleValueTypeListener.PASS_VALUE_TYPE);
View Full Code Here

    public void setValueInClear(String password) {
        clear();
        boolean prec_disa = isEditorDisable();
        hidden_field = null;
        pass_field = null;
        clear_field = new TextField();
        clear_field.setDisable(prec_disa);
        clear_field.setPrefWidth(pane.getPrefWidth());
        clear_field.setText(password);
        pane.getChildren().add(clear_field);
        setTypeImageCombo((int) SensibleValueTypeListener.CLEAR_VALUE_TYPE);
View Full Code Here

    public void setValueHidden() {
        clear();
        clear_field = null;
        pass_field = null;
        hidden_field = new TextField();
        hidden_field.setPrefWidth(pane.getPrefWidth());
        hidden_field.setEditable(false);
        hidden_field.setAlignment(Pos.CENTER);
        hidden_field.setFocusTraversable(false);
        hidden_field.setMouseTransparent(true);
View Full Code Here

            task_arrow_error = new Task<Void>() {
                @Override protected Void call() throws Exception {
                    try {
                        Platform.runLater(() -> {
                            if (node instanceof TextField) {
                                TextField text = (TextField) node;
                                text.setStyle("-fx-background-color: linear-gradient(#FF4000, #DF0101);");
                            }
                        });

                        Thread.currentThread().sleep(3000);

                        Platform.runLater(() -> {
                            if (node instanceof TextField) {
                                TextField text = (TextField) node;
                                text.setStyle("");
                            }
                        });
                    } catch (Exception ex) {
                        Logger.getLogger(EffectFX.class.getName()).log(Level.SEVERE, null, ex);
                    }
View Full Code Here

            String helpURL = "file:///" + classPath + "/docs/readme.html";
            eng = view.getEngine();
            eng.load(helpURL);
            String fontURL = "file:///" + classPath + "/fonts/SourceCodePro-Regular.ttf";
            Font.loadFont(fontURL,  10);
            locationField = new TextField("");
            locationField.setMaxHeight(25);
            locationField.setPromptText("Enter URL or local path or drag and drop files here");
            locationField.setStyle("-fx-background-color:#454545; -fx-text-fill:#959595; border-width:1px; margin:2px");
            statusField = new TextArea("");
            statusField.setMaxHeight(36);
View Full Code Here

TOP

Related Classes of javafx.scene.control.TextField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.