キー入力をすべて保持する別のクラスをJFrameに追加しようとするたびに、Eclipseはこれを行うように指示します:frame.add(frame, new KeyInput());、エラーを返します: Exception in thread "main" java.lang.IllegalArgumentException: adding container's parent to itsel
私がやっていることは、JavaFXを使ったテキストベースのRPGのようなものです。今、いくつかのテキストを表示するために、私はこれを持っている:アニメーションの長さは、テキストのサイズに依存 final IntegerProperty i = new SimpleIntegerProperty(0);
Timeline timeline = new Timeline();