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.
テーブルの選択された行の要素の詳細情報を含むウィンドウ (ステージ) を表示できるように、プログラムのテーブルビュー内の情報にアクセスするために必要です。どうもありがとうございました。
テーブルから選択したアイテムを取得するには、次のコードを使用します。
table.getSelectionModel().getSelectedItem()
選択モデルには、インデックス、複数選択などに関する情報を提供する他の便利な方法もあります。