Answers for "jtable combo box swing java"

0

jtable and combo box swing java

{
TableColumnModel cm = myTable.getColumnModel();
  cm.getColumn(0).setResizable(false);
  cm.getColumn(0).setPreferredWidth(45);
  cm.getColumn(1).setResizable(false);
  cm.getColumn(1).setPreferredWidth(45);
  cm.getColumn(2).setResizable(false);
  cm.getColumn(2).setPreferredWidth(45);
  cm.getColumn(6).setPreferredWidth(55);
  cm.getColumn(7).setPreferredWidth(55);
  cm.getColumn(12).setCellEditor(new DefaultCellEditor(
    new JComboBox(new DefaultComboBoxModel(new String[] {
      "Yes",
      "No",
      "Maybe"
    }))));
}
Posted by: Guest on August-21-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language