count = roster.getOperationCount();
	public PluginManagerProgress(JDialog dialog, Roster roster)	{		super(JOptionPane.getFrameForComponent(dialog),			jEdit.getProperty("plugin-manager.progress.title"),true);		this.roster = roster;		JPanel content = new JPanel(new BorderLayout());		content.setBorder(new EmptyBorder(12,12,12,12));		setContentPane(content);		message = new JLabel("...");		message.setBorder(new EmptyBorder(0,0,12,0));		content.add(BorderLayout.NORTH,message);		progress = new JProgressBar();		progress.setStringPainted(true);		content.add(BorderLayout.CENTER,progress);		stop = new JButton(jEdit.getProperty("plugin-manager.progress.stop"));		stop.addActionListener(new ActionHandler());		JPanel panel = new JPanel();		panel.setLayout(new BoxLayout(panel,BoxLayout.X_AXIS));		panel.setBorder(new EmptyBorder(12,0,0,0));		panel.add(Box.createGlue());		panel.add(stop);		panel.add(Box.createGlue());		content.add(BorderLayout.SOUTH,panel);		count = roster.getOperationCount();		addWindowListener(new WindowHandler());		pack();		Dimension screen = getToolkit().getScreenSize();		Dimension size = getSize();		size.width = Math.max(size.width,500);		setSize(size);		setLocationRelativeTo(dialog);		show();	}