2022-03-06 (日) 07:22:26
  • category: swing folder: LRComboBox title: JComboBoxのItemを左右に配置 tags: [JComboBox, Html] author: aterai pubdate: 2005-01-17T00:09:58+09:00 description: JComboBoxのItemにテキストを左右に分けて配置します。 image: https://lh3.googleusercontent.com/_9Z4BYR88imo/TQTPk2QD9aI/AAAAAAAAAeM/xrl0d1ms74g/s800/LRComboBox.png

概要

JComboBoxItemにテキストを左右に分けて配置します。
http://terai.s55.xrea.com/swing/lrcombobox/screenshot.png

サンプルコード

View in GitHub: Java, Kotlin

解説

JComboBoxItemtableタグを使用して文字列を左右に振り分けています。
  • JComboBoxのリストにカラムを追加・削除可能
  • JComboBoxのサイズ変更に未対応

参考リンク

コメント