私のアプリケーションでノートパッドの画面を作成しようとしています。ノートが作成されると、それらはロックされ、編集することはできませんが、ノートに新しいページを追加することができます。TextFlowでページ区切りを推測するには?
私は、TextFlowを使用することがこれの大きなコントロールとなると思いました。私は何をしたいことは以下の通りです:
**Note Taker Name**
**Date of Note**
Line of Note Text
Line of Note Text
Line of Note Text
Line of Note Text
------------------------------------------
**Note Taker Name**
**Date of Note**
Line of Note Text
Line of Note Text
Line of Note Text
Line of Note Text
私はそれをこのようにしようとしています
String s1 = "line of text";
textFlow.getChildren().add(new Text(s1));
textFlow.getChildren().add(new Text(System.lineSeparator()));
textFlow.getChildren().add(new Separator(Orientation.HORIZONTAL));
textFlow.getChildren().add(new Text(System.lineSeparator()));
textFlow.getChildren().add(new Text(s1));
scrollPane.setFitToWidth(true);
これは、セパレータを除いて、私が欲しいものはかなり私を提供ほんのラインです。私は、そのラインがTextFlow全体を横切ることを望んでおり、私はそれについてどうやって行くのか本当に分かりませんでした。
ありがとうございました。
感謝。私はそれを大きさにすることができないことを理解していなかったそれを撃つだろう。 –