Container content = getContentPane();
JPanel content = new JPanel(new BorderLayout()); content.setBorder(new EmptyBorder(12,12,12,12)); setContentPane(content);
	public ViewRegisters(View view)	{		super(view,jEdit.getProperty("view-registers.title"),true);		Container content = getContentPane();		contents = new Vector();		registerCombo = new JComboBox();		Registers.Register[] registers = Registers.getRegisters();		int index = 0;		for(int i = 0; i < registers.length; i++)		{			Registers.Register reg = registers[i];			if(reg == null)				continue;			String value = reg.toString();			if(value == null)				continue;			String name;			if(i == '\n')				name = "\n";			else if(i == '\t')				name = "\t";			else if(i == '$')			{				index = registerCombo.getItemCount();				name = jEdit.getProperty("view-registers.clipboard");			}			else				name = String.valueOf((char)i);			registerCombo.addItem(name);			contents.addElement(reg);		}		if(registerCombo.getItemCount() == 0)		{			registerCombo.addItem(jEdit.getProperty("view-registers.none"));			contents.addElement(null);		}		registerCombo.setMaximumSize(registerCombo.getPreferredSize());		Box box = new Box(BoxLayout.X_AXIS);		box.add(new JLabel(jEdit.getProperty("view-registers.caption")));		box.add(registerCombo);		box.add(Box.createGlue());		box.add(new JLabel(jEdit.getProperty("view-registers.type")));		type = new JLabel();		box.add(type);		box.add(Box.createHorizontalStrut(5));		content.add(BorderLayout.NORTH,box);		contentTextArea = new JTextArea(10,80);		contentTextArea.setFont(view.getTextArea().getPainter().getFont());		contentTextArea.setEditable(false);		content.add(BorderLayout.CENTER,new JScrollPane(contentTextArea));		JPanel panel = new JPanel();		close = new JButton(jEdit.getProperty("common.close"));		close.addActionListener(new ActionHandler());		panel.add(close);		getRootPane().setDefaultButton(close);		content.add(BorderLayout.SOUTH,panel);		registerCombo.addActionListener(new ActionHandler());		registerCombo.setSelectedIndex(index);		pack();		setLocationRelativeTo(view);		show();	}