cancelBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { dispose(); } });
bottomPanel.setBackground(MatrixLookAndFeel.PANEL_COLOUR);
	private DeleteDialog(MatrixTreeNode[] nodes) {		this.nodes = nodes;		JPanel contentPane = new JPanel(new BorderLayout());		setContentPane(contentPane);		Border border = new EmptyBorder(8, 8, 8, 8);		contentPane.setBorder(border);		JLabel label;		// MM: what if nodes.length == 0 ? or nodes == null ?		if (nodes.length == 1) {			Object[] transArgs = {				new String(nodes[0].getAsset().getName())			};			label = new JLabel(Matrix.translate("asset_map_confirm_move_child", transArgs));		} else {			Object[] transArgs = {				new Integer(nodes.length)			};			label = new JLabel(Matrix.translate("asset_map_confirm_move_children", transArgs));		}		contentPane.add( BorderLayout.CENTER, label);		deleteBtn = new JButton(Matrix.translate("asset_map_button_delete"));		cancelBtn = new JButton(Matrix.translate("asset_map_button_cancel"));		//ActionListener btnListener = new ButtonActionListener();		//deleteBtn.addActionListener(btnListener);		deleteBtn.addActionListener(new java.awt.event.ActionListener() {			public void actionPerformed(java.awt.event.ActionEvent evt) {				btn_pressed(evt);			}		});		deleteBtn.addKeyListener(new KeyAdapter() {			public void keyPressed(KeyEvent evt) {				key_pressed(evt);			}		});		cancelBtn.addActionListener(new ActionListener() {			public void actionPerformed(ActionEvent evt) {				dispose();			}		});		cancelBtn.addKeyListener(new KeyAdapter() {			public void keyPressed(KeyEvent evt) {				dispose();			}		});		//cancelBtn.addActionListener(btnListener);		JPanel panel = new JPanel();		panel.add(deleteBtn);		panel.add(cancelBtn);		contentPane.add( BorderLayout.SOUTH, panel );		FontMetrics fm = getFontMetrics(label.getFont());		int textWidth = fm.stringWidth(label.getText());		setSize(textWidth + 32, 125);	}