setLayout(new BorderLayout());
	private void drawDialog() {		super.dialogInit();		setTitle(JFritz.getMessage("stats"));		setModal(true);		setLayout(new BorderLayout());		getContentPane().setLayout(new BorderLayout());		JPanel topPane = new JPanel();		JPanel mainPane = new JPanel();		JPanel bottomPane = new JPanel();		BoxLayout boxlayout = new BoxLayout(mainPane, BoxLayout.Y_AXIS);		mainPane.setBorder(BorderFactory.createEmptyBorder(10, 20, 5, 20));		mainPane.setLayout(boxlayout);		KeyListener keyListener = (new KeyAdapter() {			public void keyPressed(KeyEvent e) {				Debug.msg("KEY: " + e);				if (e.getKeyCode() == KeyEvent.VK_ESCAPE						|| (e.getSource() == cancelButton && e.getKeyCode() == KeyEvent.VK_ENTER)) {					pressed_OK = false;					setVisible(false);				}				if (e.getSource() == okButton						&& e.getKeyCode() == KeyEvent.VK_ENTER) {					pressed_OK = true;					setVisible(false);				}			}		});		addKeyListener(keyListener);		ActionListener actionListener = new ActionListener() {			public void actionPerformed(ActionEvent e) {				Object source = e.getSource();				pressed_OK = (source == okButton);				setVisible((source != okButton) && (source != cancelButton));				if (e.getSource() == refreshButton) {					getStats();				}			}		};		okButton = new JButton("Okay");		okButton.setIcon(new ImageIcon(Toolkit.getDefaultToolkit().getImage(				getClass().getResource(						"/de/moonflower/jfritz/resources/images/okay.png"))));		cancelButton = new JButton("Abbruch");		refreshButton = new JButton("Statistik aktualisieren");		refreshButton				.setIcon(new ImageIcon(						Toolkit								.getDefaultToolkit()								.getImage(										getClass()												.getResource(														"/de/moonflower/jfritz/resources/images/modify.png"))));		topPane.add(refreshButton);		okButton.addActionListener(actionListener);		okButton.addKeyListener(keyListener);		cancelButton.addActionListener(actionListener);		cancelButton.addKeyListener(keyListener);		refreshButton.addActionListener(actionListener);		bottomPane.add(okButton);		bottomPane.add(cancelButton);		byteSendRateLabel = new JLabel();		byteReceiveRateLabel = new JLabel();		totalBytesSendLabel = new JLabel();		totalBytesReceivedLabel = new JLabel();		dns1Label = new JLabel();		dns2Label = new JLabel();		mainPane.add(byteSendRateLabel);		mainPane.add(byteReceiveRateLabel);		mainPane.add(totalBytesSendLabel);		mainPane.add(totalBytesReceivedLabel);		mainPane.add(dns1Label);		mainPane.add(dns2Label);		JPanel panel = new JPanel();		panel.setLayout(new BorderLayout());		panel.add(topPane, BorderLayout.NORTH);		panel.add(mainPane, BorderLayout.CENTER);		panel.add(bottomPane, BorderLayout.SOUTH);		getContentPane().add(panel);		setSize(new Dimension(400, 200));		// setResizable(false);		// pack();	}