I cannot get clear info as to when it is correct to use a CellRenderer object or a cellEditor object (for adding a JLabel to a JTable cell). Is there any difference what you use?? Do you need both objects?? Does an editor edit the cell at construction only? Please reply ASAP Thanks elid
Michael Morris
Ranch Hand
Joined: Jan 30, 2002
Posts: 3451
posted
0
Hi elid, First off you need to change your display name to a first and last name as is the policy here at JavaRanch. Cell editors are just that: they give you control on what the user enters into a cell and exist through the life of the table. Cell renderers render or "draw" the cells and also live as long as their table. If you don't supply editors or renderers then the default for the particular type of component that occupies the cell will be used. Hope this clears it up, Michael Morris
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher