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.
はい、値を JList に設定します。しかし、setSelectedValue() がイベントを発生させずに接続されたリスナーに通知するカスタム JList を実装する簡単な方法があることを知りたいです。私はそれを静かに保ちたい:)。
javax.swing.ListSelectionModelイベントを発生させないカスタムを実装し、インスタンスを に割り当てますjavax.swing.JList。
javax.swing.ListSelectionModel
javax.swing.JList