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.
ユーザーがボタンを押したときに JTable に「レイヤー」を追加するアプリケーションがあります。新しいファイルが作成されると、アプリケーションは最初のレイヤーを追加します。このレイヤーが JTable で自動的に選択されるようにしたいと思います。これを達成する方法を知っている人はいますか?
JTable の選択モデルを介して選択を制御できます。
myJTable.getSelectionModel().setSelectionInterval( index, index );