tProperties = new JTable(tableModel); JScrollPane propScrollPane = new JScrollPane(tProperties);
propertiesTable = new JTable(tableModel); JScrollPane propScrollPane = new JScrollPane(propertiesTable);
    private void init() {        tProperties = new JTable(tableModel);        JScrollPane propScrollPane = new JScrollPane(tProperties);        propScrollPane.setPreferredSize(new Dimension(200, 150));        JButton okButton = new JButton(OK_BUTTON);        JButton cancelButton = new JButton(CANCEL_BUTTON);        JButton deleteButton = new JButton(Resources.getIcon("gnome-delete.png"));        deleteButton.setToolTipText(DELETE_BUTTON);        JPanel user = new VerticalStaticJPanel();        user.setBorder(BorderFactory.createEmptyBorder(5, 0, 0, 0));        user.setLayout(new BoxLayout(user, BoxLayout.X_AXIS));        user.add(Box.createGlue());        user.add(Box.createRigidArea(new Dimension(5, 0)));        user.add(deleteButton);        JPanel buttons = new VerticalStaticJPanel();        buttons.setBorder(BorderFactory.createEmptyBorder(5, 0, 0, 0));        buttons.setLayout(new BoxLayout(buttons, BoxLayout.X_AXIS));        buttons.add(Box.createGlue());        buttons.add(okButton);        buttons.add(Box.createRigidArea(new Dimension(5, 0)));        buttons.add(cancelButton);        JPanel mainPanel = new JPanel();        mainPanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));        mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));        mainPanel.add(propScrollPane);        mainPanel.add(user);        mainPanel.add(buttons);        getContentPane().add(mainPanel);        getRootPane().setDefaultButton(okButton);        //create actionlisteners        okButton.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent actionEvent) {            	buildPropertiesAndDispose();            }        });        cancelButton.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent actionEvent) {                dispose();            }        });        deleteButton.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent actionEvent) {                deleteSelected();            }        });    }