JTable With ComboBox (list)

View: New views
3 Messages — Rating Filter:   Alert me  

JTable With ComboBox (list)

by gstockr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi!

I have struggled trying to find a tutorial how to add combobox to one of the columns in JTable in Netbeans.  I have noticed that it gives us an option using editor or renderer, but I am not familiar how to do it in netbeans.  I appreciate if you have step by step including code how to do it.

Thanks.

Parent Message unknown Re: JTable With ComboBox (list)

by Richard Dunne :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
http://www.exampledepot.com/egs/javax.swing.table/ComboBox.html

----- Original Message ----
From: gstockr <gstockr@...>
To: nbusers@...
Sent: Wednesday, February 6, 2008 11:28:15 PM
Subject: [nbusers] JTable With ComboBox (list)


Hi!

I have struggled trying to find a tutorial how to add combobox to one of the
columns in JTable in Netbeans.  I have noticed that it gives us an option
using editor or renderer, but I am not familiar how to do it in netbeans.  I
appreciate if you have step by step including code how to do it.

Thanks.

--
View this message in context: http://www.nabble.com/JTable-With-ComboBox-%28list%29-tp15324201p15324201.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.




Looking for last minute shopping deals? Find them fast with Yahoo! Search.

Re: JTable With ComboBox (list)

by gstockr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you. However, I thought Netbeans would create a new class that extends to TableCellRenderer or DefaultCellEditor when I entered the name of class automatically.  It sounds like Netbeans did not give us that options.  Example: Netbeans would allow us to create a new action via GUI (menu).  

Am I right that there is no way that netbeans could automatically create a new class related to tablecellrenderer or defaultcelleditor based on the object such as combobox or anything else to be inserted into column?



Richard Dunne wrote:
http://www.exampledepot.com/egs/javax.swing.table/ComboBox.html 

----- Original Message ----
From: gstockr <gstockr@yahoo.com>
To: nbusers@netbeans.org
Sent: Wednesday, February 6, 2008 11:28:15 PM
Subject: [nbusers] JTable With ComboBox (list)



Hi!

I
have
struggled
trying
to
find
a
tutorial
how
to
add
combobox
to
one
of
the
columns
in
JTable
in
Netbeans.  
I
have
noticed
that
it
gives
us
an
option
using
editor
or
renderer,
but
I
am
not
familiar
how
to
do
it
in
netbeans.  
I
appreciate
if
you
have
step
by
step
including
code
how
to
do
it.

Thanks.

--
View
this
message
in
context:
http://www.nabble.com/JTable-With-ComboBox-%28list%29-tp15324201p15324201.html
Sent
from
the
Netbeans
-
Users
mailing
list
archive
at
Nabble.com.







      ____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ