Custom JTable

36 views
Skip to first unread message

Hugo Martinez

unread,
Oct 21, 2009, 1:27:09 AM10/21/09
to Mac Widgets for Java
Hi I would like to overwrite JTable editCellAt method to do so I need
to extend JTable but I don't know how to do it with the
MacWidgetFactory because as far as I know when I execute

JTable table = MacWidgetFactory.createITunesTable(model);

I always got a JTable instance, Is there any method so I can
"Decorate" my custom JTable class?


Thank you in advance
Hugo

Ken Orr

unread,
Oct 21, 2009, 6:45:17 AM10/21/09
to mac-widget...@googlegroups.com
Hi Hugo,

You can use the ITunesTableUI instead of the factory and install that on your own JTable:


Mac Widgets for Java doesn't provide any way to extends JTable.editCellAt, so you'll have to extend JTable.

-Ken

Hugo Martinez

unread,
Oct 21, 2009, 10:34:11 AM10/21/09
to Mac Widgets for Java
Great! Thanks for your answer, that solved my problem.
I didn't know how can I "Decorate" my Custom JTable!!


Thank you
Hugo Martinez


On 21 oct, 05:45, Ken Orr <kenneth....@gmail.com> wrote:
> Hi Hugo,
> You can use the ITunesTableUI instead of the factory and install that on
> your own JTable:
>
> http://exploding-pixels.com/google_code/javadoc_0.9.5/com/explodingpi...
>
> Mac Widgets for Java doesn't provide any way to extends JTable.editCellAt,
> so you'll have to extend JTable.
>
> -Ken
>
Reply all
Reply to author
Forward
0 new messages