Velocity Reviews - Computer Hardware Reviews

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

Reply
Thread Tools

Controlling JComboBox size in JTable cell

 
 
Yulia
Guest
Posts: n/a
 
      06-27-2005
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

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

> I have a JTable ..


A better group for GUI questions is comp.lang.java.gui.

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
 
Reply With Quote
 
 
 
Reply

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. news.rcn.com Java 1 07-12-2004 10:22 PM



Advertisments