setDefaultCloseOperation(DISPOSE_ON_CLOSE);
	public SendDialog(View view)	{		super(view,jEdit.getProperty("send.title"),true);		this.view = view;				JPanel panel = new JPanel();		GridBagLayout layout = new GridBagLayout();		panel.setLayout(layout);				GridBagConstraints constraints = new GridBagConstraints();		constraints.gridwidth = constraints.gridheight = 1;		constraints.fill = constraints.BOTH;		constraints.weightx = 1.0f;		JLabel label = new JLabel(jEdit			.getProperty("send.smtp"),SwingConstants.RIGHT);		layout.setConstraints(label,constraints);		panel.add(label);				constraints.gridx = 1;		constraints.gridwidth = 2;		smtp = new JTextField(jEdit			.getProperty("send.smtp.value"),30);		layout.setConstraints(smtp,constraints);		panel.add(smtp);				constraints.gridx = 0;		constraints.gridy = 1;		constraints.gridwidth = 1;		label = new JLabel(jEdit.getProperty("send.from"),			SwingConstants.RIGHT);		layout.setConstraints(label,constraints);		panel.add(label);				constraints.gridx = 1;		constraints.gridwidth = 2;		from = new JTextField(jEdit			.getProperty("send.from.value"),30);		layout.setConstraints(from,constraints);		panel.add(from);				constraints.gridx = 0;		constraints.gridy = 2;		constraints.gridwidth = 1;		label = new JLabel(jEdit.getProperty("send.to"),			SwingConstants.RIGHT);		layout.setConstraints(label,constraints);		panel.add(label);				constraints.gridx = 1;		constraints.gridwidth = 2;		to = new JTextField(jEdit.getProperty("send.to.value"),30);		layout.setConstraints(to,constraints);		panel.add(to);				constraints.gridx = 0;		constraints.gridy = 3;		constraints.gridwidth = 1;		label = new JLabel(jEdit.getProperty("send.subject"),			SwingConstants.RIGHT);		layout.setConstraints(label,constraints);		panel.add(label);				constraints.gridx = 1;		constraints.gridwidth = 2;		subject = new JTextField(view.getBuffer().getPath(),30);		layout.setConstraints(subject,constraints);		panel.add(subject);				constraints.gridx = 0;		constraints.gridy = 4;		constraints.gridwidth = constraints.REMAINDER;		constraints.fill = constraints.VERTICAL;		constraints.anchor = constraints.WEST;		selectionOnly = new JCheckBox(jEdit.getProperty(			"send.selectionOnly"));		selectionOnly.getModel().setSelected("on".equals(			jEdit.getProperty("send.selectionOnly.value")));		layout.setConstraints(selectionOnly,constraints);		panel.add(selectionOnly);				getContentPane().add(BorderLayout.NORTH,panel);		getContentPane().add(BorderLayout.CENTER,new JSeparator());				buttons = new JPanel();		send = new JButton(jEdit.getProperty("send.send"));		buttons.add(send);		cancel = new JButton(jEdit.getProperty("common.cancel"));		buttons.add(cancel);				getContentPane().add(BorderLayout.SOUTH,buttons);				Dimension screen = getToolkit().getScreenSize();		pack();		setLocation((screen.width - getSize().width) / 2,			(screen.height - getSize().height) / 2);				setDefaultCloseOperation(DISPOSE_ON_CLOSE);				getRootPane().setDefaultButton(send);		addKeyListener(this);		send.addActionListener(this);		cancel.addActionListener(this);				show();	}