mapProperties = new JTable(new PropertiesTableModel()); mapProperties.getSelectionModel().addListSelectionListener(this); JScrollPane propScrollPane = new JScrollPane(mapProperties); propScrollPane.setPreferredSize(new Dimension(150, 150));  pack();
    private void init() {    }