Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
プログラムの実行時にテキストエリア内にロード時にテキストを表示するにはどうすればよいですか? 現在、ActionPerformedにテキストが表示されていますが、プログラム実行時に表示させたいです。
初期値をコンストラクタに渡すだけ
TextArea textArea = new TextArea("My default string");
についても同様ですJTextArea。
JTextArea