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.
Nimbus のルック アンド フィールを使用しています。JList があり、最初または最後の項目を選択すると、強調表示が丸くなります。通常は正方形です。
他の要素と同じように正方形に変更するにはどうすればよいですか?
誤ってBorderFactoryを変更して、角が丸いLineBorderを使用していました。これを取り除いた後、細胞は正しく現れました。
ListCellRendererあなたはそれにあなたが好きな視覚化を与えるあなた自身を定義することができます。
ListCellRenderer