Package javafx.scene.control

Examples of javafx.scene.control.TextArea


    } else if (type == Type.TEXT_AREA) {
      textField = null;
      passwordField = null;
      numericStepperDigits = null;
      listView = null;
      textArea = new TextArea();
      textArea.setWrapText(true);
      textArea.setPromptText(labelText);
      if (width != null) {
        textArea.setPrefColumnCount(width.intValue());
      }
View Full Code Here


      log.debug("Iniitializing Services...");
      notifyPreloader(new ProgressNotification(0.2d));
      initServices();

      if (initErrors != null && initErrors.length() > 0) {
        final TextArea errorDetails = TextAreaBuilder.create().text(initErrors.toString()).wrapText(true
            ).focusTraversable(false).editable(false).opacity(0.7d).build();
        if (initErrorHeader == null) {
          initErrorHeader = RS.rbLabel(KEY.APP_TITLE_ERROR);
        }
        final GuiUtil.DialogService dialogService = GuiUtil.dialogService(stage, KEY.APP_TITLE, initErrorHeader,
View Full Code Here

        launch(args);
    }

    @Override
    public void start(Stage primaryStage) {
        TextArea textArea = new TextArea();
        WebView webView = new WebView();
        WebEngine engine = webView.getEngine();

        EventStreams.valuesOf(textArea.textProperty())
                .successionEnds(Duration.ofMillis(500))
                .subscribe(html -> engine.loadContent(html));

        SplitPane root = new SplitPane();
        root.getItems().addAll(textArea, webView);
View Full Code Here

        label.setStyle("-fx-text-fill: "+blackOrWhiteDependingFromBack +";");
        label.setWrapText(true);
        label.setGraphic(icon);
        back.getChildren().add(label);
       
        final TextArea area = new TextArea();
        area.setPrefRowCount(10);
        if (e!=null){
          area.setText(Throwables.getStackTraceAsString(e));
        }
        area.setOpacity(0.4);
        area.setEditable(false);
        VBox.setVgrow(area, Priority.ALWAYS);
        back.getChildren().add(area);
        area.getStyleClass().add("consoleFont");
       
        ContextMenu menue = new ContextMenu();
        MenuItem item = new MenuItem("copy to clipboard");
        item.setOnAction(new EventHandler<ActionEvent>() {
          @Override
          public void handle(ActionEvent event) {
            final Clipboard clipboard = Clipboard.getSystemClipboard();
              final ClipboardContent content = new ClipboardContent();
              content.putString(area.getText());
              clipboard.setContent(content);
          }
        });
        menue.getItems().add(item);
        area.setContextMenu(menue);
       
        Button ok = new Button("OK");
        ok.setPrefWidth(100);
        ok.setOnAction(new EventHandler<ActionEvent>() {
          @Override
View Full Code Here

                contentPanel.getChildren().add(labelPanel);

                StringWriter sw = new StringWriter();
                PrintWriter pw = new PrintWriter(sw);
                throwable.printStackTrace(pw);
                TextArea text = new TextArea(sw.toString());
                text.setEditable(false);
                text.setWrapText(true);
                text.setPrefWidth(60 * 8);
                text.setPrefHeight(20 * 12);

                VBox.setVgrow(text, Priority.ALWAYS);
                contentPanel.getChildren().add(text);
            }
           
View Full Code Here

        setContent(createBodyPane());
        setCollapsible(false);      
    }
   
    private Pane createBodyPane(){
        scoresText= new TextArea();
        scoresText.setEditable(false);
        scoresText.setPrefWidth(200);
        scoresText.setPrefHeight(170);
        closeButton= new Button("Close");
        closeButton.setOnAction(new EventHandler<ActionEvent>(){
View Full Code Here

        Date matchday = null;
        try {
            matchday = DateHelper.parseDate(tfMatchday.getText());
        } catch (final ParseException e) {
            // invalid date format
            final TextArea message = new TextArea();
            message.setMaxWidth(Integer.MAX_VALUE);
            message.setWrapText(true);
            message.setEditable(false);
            message.setText(ResourceLoader.getMessage(MessageId.V004.getMessageKey()));
            vbContent.getChildren().add(message);
            return;
        }

        // collect team names from input text fields
View Full Code Here

* Time: 12:05
*/
public class TextAreaFactory implements Callback<Void, FXFormNode> {

    public FXFormNode call(Void aVoid) {
        TextArea textArea = new TextArea();
        return new FXFormNodeWrapper(textArea, textArea.textProperty());
    }
View Full Code Here

     * Build the errorNode to display the error taht occured.
     *
     * @param ce the CoreException to display
     */
    private void buildErrorNode(final CoreException ce) {
        final TextArea ta = TextAreaBuilder.create()
                .text(ce.getMessage())
                .build();
        this.errorNode = PaneBuilder.create().children(ta).build();
    }
View Full Code Here

                stage.setScene(scene);
                stage.setResizable(false);
                stage.setTitle(Constants.TITLE);

                Pane scroll_disc = (Pane) Utility.getFromCacheNode("area_pane");
                TextArea area = new TextArea(Utility.getTextFromResource("/resources/license/DISCLAIMER.TXT"));
                area.setId("disclaimer_area_txt");
                area.setEditable(false);
                scroll_disc.getChildren().add(area);
                area.setPrefWidth(544.0);
                area.setMinWidth(544.0);
                area.setPrefHeight(360.0);
                area.setMinHeight(360.0);

                __ck_accept_disc = (CheckBox) Utility.getFromCacheNode("ck_accept_disc");
                __ck_accept_disc.setOnAction((ActionEvent e) -> {
                    __btn_continue_disc.setDisable(!__ck_accept_disc.isSelected());
                });
View Full Code Here

TOP

Related Classes of javafx.scene.control.TextArea

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.