Controlling JComboBox size in JTable cell

Discussion in 'Java' started by Yulia, Jun 27, 2005.

  1. Yulia

    Yulia Guest

    Hi,

    I have a JTable where each cell is huge (in purpose).
    One of the columns uses DefaultCellEditor with JComboBox (so when user
    edits value of this column, a combo-box is displayed).

    The problem is that this combo-box is stretched and gets huge
    arrow-button with height similar to its containing cell.
    How can I make the combo-box smaller, so its height will be smaller
    than the height of the cell that contains it?
    Thanks in advance,

    Yulia
     
    Yulia, Jun 27, 2005
    #1
    1. Advertising

  2. Andrew Thompson, Jul 4, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tivo Escobar
    Replies:
    1
    Views:
    7,551
    manusa
    Apr 12, 2007
  2. news.rcn.com
    Replies:
    1
    Views:
    9,814
    Chris Smith
    Jul 12, 2004
  3. Chris
    Replies:
    0
    Views:
    8,306
    Chris
    Jun 14, 2005
  4. lizard

    JTable in JComboBox

    lizard, Jan 27, 2006, in forum: Java
    Replies:
    7
    Views:
    11,000
    valprivate
    Jul 27, 2012
  5. Aaron Fude
    Replies:
    6
    Views:
    1,990
    Andrew Thompson
    Jun 29, 2008
Loading...

Share This Page