Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #2738 > unrolled thread

JTable Cell Editor missin

Started by"RC" <rc@THRWHITE.remove-dii-this>
First post2011-04-27 15:40 +0000
Last post2011-04-27 15:40 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.lang.java.gui


Contents

  JTable Cell Editor missin "RC" <rc@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
    Re: JTable Cell Editor mi "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000

#2738 — JTable Cell Editor missin

From"RC" <rc@THRWHITE.remove-dii-this>
Date2011-04-27 15:40 +0000
SubjectJTable Cell Editor missin
Message-ID<fgvsbe$70p$1@news.nems.noaa.gov>
  To: comp.lang.java.programmer
I am just wonder why in JTable

There are
TableCellEditor getCellEditor()
TableCellEditor getCellEditor(int row, int column)

But there is only

setCellEditor(TableCellEditor anEditor)

Why JTable doesn't have

setCellEditor(TableCellEditor anEditor, int row, int column) ?

What happen if I want to set each cell in a different editors?!

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [next] | [standalone]


#2739 — Re: JTable Cell Editor mi

From"Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this>
Date2011-04-27 15:40 +0000
SubjectRe: JTable Cell Editor mi
Message-ID<2c6dnfUrJ8ta5K7anZ2dnUVZ_rOqnZ2d@wavecable.com>
In reply to#2738
  To: comp.lang.java.programmer
RC wrote:
> I am just wonder why in JTable
> 
> There are
> TableCellEditor getCellEditor()
> TableCellEditor getCellEditor(int row, int column)
> 
> But there is only
> 
> setCellEditor(TableCellEditor anEditor)
> 
> Why JTable doesn't have
> 
> setCellEditor(TableCellEditor anEditor, int row, int column) ?
> 
> What happen if I want to set each cell in a different editors?!
As I understand it, cell editors are free to return whatever component 
needed for whatever cell.  You would specify the component for the 
row/column in the cellEditor, not specify the cell editor for that 
row/column.

-- 
Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.gui


csiph-web