try { bDel = new JButton(new ImageIcon(MapEditor.loadImageResource("resources/gnome-delete.png"))); } catch (IOException e) { e.printStackTrace(); }
    private void init() {        tableModel = new PropertiesTableModel();        mapProperties = new JTable(tableModel);        mapProperties.getSelectionModel().addListSelectionListener(this);        JScrollPane propScrollPane = new JScrollPane(mapProperties);        propScrollPane.setPreferredSize(new Dimension(200, 150));        bOk = new JButton("OK");        bCancel = new JButton("Cancel");        bOk.addActionListener(this);        bCancel.addActionListener(this);        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(bOk);        buttons.add(Box.createRigidArea(new Dimension(5, 0)));        buttons.add(bCancel);        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(buttons);        getContentPane().add(mainPanel);        getRootPane().setDefaultButton(bOk);    }