javafx.scene.control.TextArea.setWrapText()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(321)

本文整理了Java中javafx.scene.control.TextArea.setWrapText()方法的一些代码示例,展示了TextArea.setWrapText()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TextArea.setWrapText()方法的具体详情如下:
包路径:javafx.scene.control.TextArea
类名称:TextArea
方法名:setWrapText

TextArea.setWrapText介绍

暂无

代码示例

代码示例来源:origin: speedment/speedment

@Override
protected TextInputControl getInputControl() {
  TextArea area = new TextArea();
  area.setWrapText(true);
  return area;
}

代码示例来源:origin: speedment/speedment

final TextArea textArea = new TextArea(exceptionText);
textArea.setEditable(false);
textArea.setWrapText(true);

代码示例来源:origin: ssaring/sportstracker

@Override
  protected void setupDialogControls() {

    // Workaround: always show vertical scroll bars (otherwise they are displayed when the TextArea gets the focus)
    Platform.runLater(() -> {
      taAuthors.setWrapText(true);
      taTranslators.setWrapText(true);
    });
  }
}

代码示例来源:origin: com.speedment.tool/tool-propertyeditor

@Override
protected TextInputControl getInputControl() {
  TextArea area = new TextArea();
  area.setWrapText(true);
  return area;
}

代码示例来源:origin: com.aquafx-project/aquafx

public VBox createPage(int pageIndex) {
  VBox box = new VBox(5);
  int page = pageIndex * itemsPerPage();
  for (int i = page; i < page + itemsPerPage(); i++) {
    TextArea text = new TextArea(textPages[i]);
    text.setWrapText(true);
    box.getChildren().add(text);
  }
  return box;
}

代码示例来源:origin: stackoverflow.com

public void start(final Stage stage) throws Exception {
  TextArea textArea = new BlockingTextArea(TEXT, FORBIDDEN_PREFIX);
  textArea.setWrapText(true);

代码示例来源:origin: it.unibo.alchemist/alchemist-projectview

alert.setContentText(messages);
textArea.setEditable(false);
textArea.setWrapText(true);
textArea.setMaxWidth(Double.MAX_VALUE);
textArea.setMaxHeight(Double.MAX_VALUE);

代码示例来源:origin: org.controlsfx/controlsfx

textArea.setWrapText(true);

代码示例来源:origin: org.copper-engine/copper-monitoring-client

assert logWrapStackpane != null : "fx:id=\"logWrapStackpane\" was not injected: check your FXML file 'CustomMeasurePointResult.fxml'.";
logText.setWrapText(false);
logText.getStyleClass().add("consoleFont");
timeRange.setText("" + DEFAULT_TIME_FRAME);

代码示例来源:origin: com.canoo.dolphin-platform/dolphin-platform-client-javafx

textArea.setWrapText(true);

代码示例来源:origin: edu.utah.bmi.nlp/nlp-core

public void popDialog(String title, String header, String content) {
  if (guiEnabled)
    Platform.runLater(() -> {
      Dialog<String> dialog = new Dialog<>();
      dialog.setTitle(title);
      dialog.setHeaderText(header);
      TextArea textField = new TextArea();
      dialog.setHeight(400);
      dialog.setResizable(true);
      dialog.getDialogPane().setContent(textField);
      dialog.getDialogPane().getButtonTypes().add(ButtonType.OK);
      textField.setEditable(false);
      textField.setText(content);
      textField.setWrapText(true);
      dialog.showAndWait();
    });
  if(print)
    System.out.println(title+":\t"+header+":\t"+content);
}

代码示例来源:origin: PhoenicisOrg/phoenicis

valueLabel.setWrapText(true);
valueLabel.setPrefRowCount(entry.getValue().toString().length() / 25);

代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

public static void showException(String title, String message, Exception exception) {
 final Alert alert = new Alert(Alert.AlertType.ERROR);
 alert.initStyle(StageStyle.UTILITY);
 alert.setTitle("Exception");
 alert.setHeaderText(title);
 alert.setContentText(message);
 final StringWriter sw = new StringWriter();
 final PrintWriter pw = new PrintWriter(sw);
 exception.printStackTrace(pw);
 final String exceptionText = sw.toString();
 final Label label = new Label("Details:");
 final TextArea textArea = new TextArea(exceptionText);
 textArea.setEditable(false);
 textArea.setWrapText(true);
 textArea.setMaxWidth(Double.MAX_VALUE);
 textArea.setMaxHeight(Double.MAX_VALUE);
 GridPane.setVgrow(textArea, Priority.ALWAYS);
 GridPane.setHgrow(textArea, Priority.ALWAYS);
 final GridPane expContent = new GridPane();
 expContent.setMaxWidth(Double.MAX_VALUE);
 expContent.add(label, 0, 0);
 expContent.add(textArea, 0, 1);
 alert.getDialogPane().setExpandableContent(expContent);
 alert.showAndWait();
}

代码示例来源:origin: com.github.vatbub/common.view.core

public ExceptionAlert(Throwable e, String contentText, ButtonType... buttonTypes) {
    super(AlertType.ERROR, contentText, buttonTypes);

    String exceptionText = ExceptionUtils.getFullStackTrace(e);

    Label label = new Label(bundle.getString("stackTraceLabel"));

    TextArea textArea = new TextArea(exceptionText);
    textArea.setEditable(false);
    textArea.setWrapText(true);

    textArea.setMaxWidth(Double.MAX_VALUE);
    textArea.setMaxHeight(Double.MAX_VALUE);
    GridPane.setVgrow(textArea, Priority.ALWAYS);
    GridPane.setHgrow(textArea, Priority.ALWAYS);

    GridPane expContent = new GridPane();
    expContent.setMaxWidth(Double.MAX_VALUE);
    expContent.add(label, 0, 0);
    expContent.add(textArea, 0, 1);

    // Set expandable Exception into the dialog pane.
    this.getDialogPane().setExpandableContent(expContent);
  }
}

代码示例来源:origin: org.tentackle/tentackle-fx

TextArea textArea = new TextArea(exceptionText);
textArea.setEditable(false);
textArea.setWrapText(true);
textArea.setMaxWidth(Double.MAX_VALUE);
textArea.setMaxHeight(Double.MAX_VALUE);

代码示例来源:origin: com.dlsc.formsfx/formsfx-core

editableArea.setPrefRowCount(5);
editableArea.setPrefHeight(80);
editableArea.setWrapText(true);

代码示例来源:origin: com.bitplan.gui/com.bitplan.javafx

TextArea textArea = new TextArea();
textArea.setEditable(false);
textArea.setWrapText(true);

代码示例来源:origin: com.intuit.karate/karate-core

textArea = new TextArea();
textArea.setFont(App.getDefaultFont());
textArea.setWrapText(true);
textArea.setMinHeight(0);
textArea.setPromptText(consolePlaceHolder);

代码示例来源:origin: com.intuit.karate/karate-core

TextArea textArea = new TextArea();
textArea.setFont(App.getDefaultFont());
textArea.setWrapText(true);
textArea.setMinHeight(0);
text = step.toString();

代码示例来源:origin: org.copper-engine/copper-monitoring-client

resultTextarea.setWrapText(false);

相关文章