import java.awt.*;
import java.awt.event.*;

import javax.swing.*;


public class GUI extends JFrame implements ActionListener {
	private JTextField dvdpath, destinationpath;
	private JProgressBar progress;
	private JButton install, close;
	private String os = System.getProperty("os.name");

	public GUI() {
		super("Edna bricht aus");
		setDefaultCloseOperation(EXIT_ON_CLOSE);

		getContentPane().setLayout(new BoxLayout(getContentPane(), BoxLayout.PAGE_AXIS));

		JPanel paths = new JPanel(new GridLayout(2,2));

		JLabel dvdlabel = new JLabel("Pfad zur DVD:");
		paths.add(dvdlabel);

		dvdpath = new JTextField();
		if (os.equals("Mac OS X"))
			dvdpath.setText("/Volumes/EDNABRICHTAUS");
		else
			dvdpath.setText("/mnt/cdrom");
		paths.add(dvdpath);


		JLabel destinationlabel = new JLabel("Installationspfad:");
		paths.add(destinationlabel);

		destinationpath = new JTextField("~/Edna bricht aus");
		paths.add(destinationpath);

		getContentPane().add(paths);


		progress = new JProgressBar();
		progress.setMaximum(27578);
		getContentPane().add(progress);


		JPanel buttonpanel = new JPanel(new FlowLayout());
		install = new JButton("Installieren");
		install.addActionListener(this);
		buttonpanel.add(install);

		close = new JButton("Beenden");
		close.addActionListener(this);
		buttonpanel.add(close);

		getContentPane().add(buttonpanel);

		setSize(300, 200);
		setVisible(true);
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		if (e.getSource() == install) {
			Unpack unpack = new Unpack(dvdpath.getText(), destinationpath.getText(), progress);
			unpack.start();
			install.setEnabled(false);
		} else if (e.getSource() == close) {
			System.exit(0);
		}
	}

	public static void main(String[] args) {
		new GUI();
	}

}

@@ -242,16 +242,22 @@
 private 
+final 
 String o
@@ -892,10 +892,41 @@
 eld(
+System.getProperty(%22user.home%22)+
 %22
-~
 /Edn
@@ -1408,15 +1408,15 @@
 ize(
-3
+5
 00, 
-20
+15
 0);%0A

use home directory instead of '~' (which java doesn't interpret)