panel = new JPanel(); ok = new JButton(jEdit.getProperty("common.ok")); ok.addActionListener(new ActionHandler()); getRootPane().setDefaultButton(ok); panel.add(ok); getContentPane().add(BorderLayout.SOUTH,panel);
Box box = new Box(BoxLayout.X_AXIS); box.add(Box.createGlue()); close = new JButton(jEdit.getProperty("common.close")); close.addActionListener(new ActionHandler()); getRootPane().setDefaultButton(close); box.add(close); box.add(Box.createGlue()); content.add(BorderLayout.SOUTH,box);
	public AboutDialog(View view)	{		super(view,jEdit.getProperty("about.title"),true);		JPanel panel = new JPanel(new BorderLayout());		String[] args = { jEdit.getVersion() };		JLabel label = new JLabel(jEdit.getProperty("about.caption",args),			SwingConstants.CENTER);		panel.add(BorderLayout.NORTH,label);		label = new JLabel(new ImageIcon(getClass().getResource(			"/org/gjt/sp/jedit/jedit_logo.gif")));		label.setBorder(new CompoundBorder(new EmptyBorder(5,5,5,5),			new BevelBorder(BevelBorder.LOWERED)));		panel.add(BorderLayout.CENTER,label);		JPanel panel2 = new JPanel(new GridLayout(0,1));		StringTokenizer st = new StringTokenizer(			jEdit.getProperty("about.message"),"\n");		while(st.hasMoreTokens())		{			panel2.add(new JLabel(st.nextToken(),				SwingConstants.CENTER));		}		panel.add(BorderLayout.SOUTH,panel2);		getContentPane().add(BorderLayout.CENTER,panel);		panel = new JPanel();		ok = new JButton(jEdit.getProperty("common.ok"));		ok.addActionListener(new ActionHandler());		getRootPane().setDefaultButton(ok);		panel.add(ok);		getContentPane().add(BorderLayout.SOUTH,panel);		pack();		setLocationRelativeTo(view);		show();	}