package main.java.de.c4.view.settings;

import javax.swing.JFrame;

public class SettingsFrame extends JFrame {

	public SettingsFrame() {
		this.pack();
		this.setVisible(true);
	}
}

@@ -48,133 +48,1599 @@
 java
-x.swing.JFrame;%0A%0Apublic class SettingsFrame extends JFrame %7B%0A%0A%09public SettingsFrame() %7B%0A%09%09this.pack();%0A%09%09this.setVisible(true
+.awt.GridBagConstraints;%0Aimport java.awt.GridBagLayout;%0Aimport java.awt.Insets;%0Aimport java.awt.event.ActionEvent;%0Aimport java.awt.event.ActionListener;%0Aimport java.util.jar.JarInputStream;%0A%0Aimport javax.swing.JButton;%0Aimport javax.swing.JFrame;%0Aimport javax.swing.JLabel;%0Aimport javax.swing.JTextField;%0A%0Aimport main.java.de.c4.controller.shared.Settings;%0A%0Apublic class SettingsFrame extends JFrame implements ActionListener %7B%0A%09JLabel usernameLabel;%0A%09JTextField usernameField;%0A%09JLabel lookAndFeelLabel;%0A%09JButton saveButton;%0A%09%0A%09public SettingsFrame() %7B%0A%09%09setTitle(%22Settings%22); //TODO i18n%0A%09%09setLayout(new GridBagLayout());%0A%09%09GridBagConstraints gbc = new GridBagConstraints();%0A        gbc.fill = GridBagConstraints.HORIZONTAL;%0A%09%09gbc.insets = new Insets(5, 5, 5, 5);%0A%09%09usernameLabel = new JLabel(%22Username%22); //TODO i18n%0A%09%09gbc.gridx = 0;%0A%09%09gbc.gridy = 0;%0A%09%09gbc.weightx = 0.0;%0A%09%09add(usernameLabel, gbc);%0A%09%09usernameField = new JTextField();%0A%09%09gbc.gridx = 1;%0A%09%09gbc.weightx = 1.0;%0A%09%09add(usernameField, gbc);%0A%09%09lookAndFeelLabel = new JLabel(%22Look & Feel%22); //TODO i18n%0A%09%09gbc.gridx = 0;%0A%09%09gbc.gridy = 1;%0A%09%09add(lookAndFeelLabel, gbc);%0A%09%09saveButton = new JButton(%22Save%22); //TODO i18n%0A%09%09saveButton.addActionListener(this);%0A%09%09gbc.gridx = 1;%0A%09%09gbc.gridy = 2;%0A%09%09add(saveButton, gbc);%0A%09%09loadValues();%0A%09%09this.pack();%0A%09%09this.setVisible(true);%0A%09%7D%0A%09%0A%09private void loadValues() %7B%0A%09%09usernameField.setText(Settings.INSTANCE.get(Settings.CONTACT_NAME));%0A%09%7D%0A%0A%09public void actionPerformed(ActionEvent e) %7B%0A%09%09Settings.INSTANCE.set(Settings.CONTACT_NAME, usernameField.getText());%0A%09%09Settings.INSTANCE.save();%0A%09%09dispose(
 );%0A%09

Change Username via GUI