Terai Atsuhiro 2022-03-06 (日) 07:22:26

http://terai.xrea.jp/swing/lrcombobox/screenshot.png

class LRItem{
  private final String leftText;
  private final String rightText;
  public LRItem(String strLeft, String strRight) {
    leftText  = strLeft;
    rightText = strRight;
  }
  public String getHtmlText() {
    return "<html><table width='240'><tr><td align='left'>"+leftText+
    "</td><td align='right'>"+rightText+"</td></tr></table></html>";
  }
  public String getLeftText()  { return leftText; }
  public String getRightText() { return rightText; }
  public String toString()     { return getHtmlText(); }
}