Ablertus Posted June 29, 2004 Report Share Posted June 29, 2004 Люди, у меня вопрос. Как можно использовать разные CellEditors (например, ComboBoxes, CheckBoxes e. g.) в разных строках одной таблицы JTable, в одной и той же колонне? Quote Link to post Share on other sites
TS133T Posted July 1, 2004 Report Share Posted July 1, 2004 Вообшето каждая колонка имеет только один "data type" и поэтому к ней можно только подсоединить один тип "TableCellEditor". Но если нужно что то специальное всегда можно написать собственный "TableCellEditor" и в зависимости от "row" отдавать определённый Component. Или по крайней мере исползуй Proxy. public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column); Quote Link to post Share on other sites
Ablertus Posted July 7, 2004 Author Report Share Posted July 7, 2004 Spasibo. Ya uzhe poproboval s TableCellRenderer, no komponenty mertvye. Seychas muchayus s Editorom. Quote Link to post Share on other sites
TS133T Posted July 9, 2004 Report Share Posted July 9, 2004 Spasibo. Ya uzhe poproboval s TableCellRenderer, no komponenty mertvye. Seychas muchayus s Editorom. "no komponenty" что ты этим имеешь ввиду? Quote Link to post Share on other sites
Ablertus Posted July 14, 2004 Author Report Share Posted July 14, 2004 Компоненты не реагируют. То есть скажем ComboBox выглядит как ComboBox, но в ответ на click даже не раскрывается список. Quote Link to post Share on other sites
Ablertus Posted July 14, 2004 Author Report Share Posted July 14, 2004 Кажется, теперь получилось. Quote Link to post Share on other sites
Ablertus Posted August 13, 2004 Author Report Share Posted August 13, 2004 Does anyone know, is there an interface between Java and R-statistics? Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.