Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Controlling JComboBox size in JTable cell

Thread Tools

Controlling JComboBox size in JTable cell

Posts: n/a

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,


Reply With Quote
Andrew Thompson
Posts: n/a
On 27 Jun 2005 11:51:37 -0700, Yulia wrote:

> I have a JTable ..

A better group for GUI questions is

Andrew Thompson Web & IT Help Open-source software suite Science & Technology Images that escape the mundane
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
JTable in JComboBox lizard Java 7 07-27-2012 08:58 AM
Controlling the scroll pane in JComboBox Aaron Fude Java 6 06-29-2008 07:40 PM
Putting a JTable inside a JTable cell? Tivo Escobar Java 1 04-12-2007 11:09 AM
JTable Cell Editor - JComboBox column Chris Java 0 06-14-2005 09:09 PM
How to set and highlight text in JTable cell on selection and/or invoke cell editor directly. Java 1 07-12-2004 10:22 PM