jtable and combo box swing java

Solutions on MaxInterview for jtable and combo box swing java by the best coders in the world

showing results for - "jtable and combo box swing java"
Mateo
18 Mar 2016
1{
2TableColumnModel cm = myTable.getColumnModel();
3  cm.getColumn(0).setResizable(false);
4  cm.getColumn(0).setPreferredWidth(45);
5  cm.getColumn(1).setResizable(false);
6  cm.getColumn(1).setPreferredWidth(45);
7  cm.getColumn(2).setResizable(false);
8  cm.getColumn(2).setPreferredWidth(45);
9  cm.getColumn(6).setPreferredWidth(55);
10  cm.getColumn(7).setPreferredWidth(55);
11  cm.getColumn(12).setCellEditor(new DefaultCellEditor(
12    new JComboBox(new DefaultComboBoxModel(new String[] {
13      "Yes",
14      "No",
15      "Maybe"
16    }))));
17}
18