I want combo box in jtable visible from start not when i click the cell... any idea?
Majestics 84 Posting Pro
Recommended Answers
Jump to PostLet's java.awt.Robot do it.
Jump to PostTry using this for your cell renderer. You can pass it the combo box that you are using for the cell editor.
class CheckBoxCellRenderer implements TableCellRenderer { JComboBox combo; public CheckBoxCellRenderer(JComboBox comboBox) { this.combo = new JComboBox(); for (int i=0; i<comboBox.getItemCount(); i++){ combo.addItem(comboBox.getItemAt(i)); } } public Component …
Jump to PostIt would really depend on how you created the renders and assigned them to the column. If you did it the same way as the first then I don't see any reason why it would not work fine.
All 10 Replies
quuba 81 Posting Pro
Majestics 84 Posting Pro
mKorbel 274 Veteran Poster
Majestics 84 Posting Pro
mKorbel 274 Veteran Poster
Majestics 84 Posting Pro
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
Majestics 84 Posting Pro
Majestics 84 Posting Pro
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.