argTable.getSelectionModel().setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
argTable.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
  public NodeArgumentDialog() {    JPanel nodeArgPanel = new JPanel(new BorderLayout());    // ok and cancel buttons panel    JPanel buttonPanel = new JPanel();    JButton okButton = new JButton("OK");    okButton.addActionListener(new ActionListener() {      public void actionPerformed(ActionEvent e) {        setVisible(false);      }    });    buttonPanel.add(okButton);    JButton cancelButton = new JButton("Cancel");    cancelButton.addActionListener(new ActionListener() {      public void actionPerformed(ActionEvent e) {        setVisible(false);      }    });    buttonPanel.add(cancelButton);    // panel for table    JPanel tablePanel = new JPanel();    // add JTable    argTable = new JTable();    // don't allow user to reorder columns    argTable.getTableHeader().setReorderingAllowed(false);    argTable.setColumnSelectionAllowed(false);    argTable.getSelectionModel().setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);    JScrollPane scrollPane = new JScrollPane(argTable);    tablePanel.setLayout(new BorderLayout());    tablePanel.add(scrollPane, BorderLayout.CENTER);    nodeArgPanel.add(tablePanel, BorderLayout.CENTER);    nodeArgPanel.add(buttonPanel, BorderLayout.SOUTH);    getContentPane().add(nodeArgPanel);    pack();  }