setStandardMobileNumber = new JButton("Standard"); labelBusinessNumber = new JLabel(messages.getString("businessTelephoneNumber")+": ");
labelBusinessNumber = new JLabel(messages .getString("businessTelephoneNumber") + ": ");
	private void drawDialog() {		super.dialogInit();		createTable();		setTitle(messages.getString("phonebook"));		setModal(true);		setLayout(new BorderLayout());		getContentPane().setLayout(new BorderLayout());		JPanel topPane = new JPanel();		JPanel centerPane = new JPanel();		JPanel bottomPane = new JPanel();				saveButton = new JButton("Speichern"); // TODO I18N		saveButton.addActionListener(new java.awt.event.ActionListener() {			public void actionPerformed(ActionEvent e) {				saveButton_actionPerformed(e);			}		});		cancelButton = new JButton("Abbruch");// TODO I18N		cancelButton.addActionListener(new java.awt.event.ActionListener() {			public void actionPerformed(ActionEvent e) {				cancelButton_actionPerformed(e);			}		});		newButton = new JButton("Hinzufgen");// TODO I18N		newButton.setIcon(new ImageIcon(Toolkit.getDefaultToolkit().getImage(				getClass().getResource(						"/de/moonflower/jfritz/resources/images/add.png"))));		newButton.addActionListener(new java.awt.event.ActionListener() {			public void actionPerformed(ActionEvent e) {				newButton_actionPerformed(e);			}		});		delButton = new JButton("Lschen");// TODO I18N		delButton.setIcon(new ImageIcon(Toolkit.getDefaultToolkit().getImage(				getClass().getResource(						"/de/moonflower/jfritz/resources/images/delete.png"))));		delButton.addActionListener(new java.awt.event.ActionListener() {			public void actionPerformed(ActionEvent e) {				deleteButton_actionPerformed(e);			}		});		topPane.add(newButton);		topPane.add(delButton);		bottomPane.add(saveButton);		bottomPane.add(cancelButton);		JPanel panelLabelsAndTextFields = new JPanel();		panelLabelsAndTextFields.setLayout(new GridLayout(11,2));		System.out.println("Gridlayout");			labelFirstName = new JLabel(messages.getString("firstName")+": ");				textFieldFirstName = new JTextField();		labelMiddleName = new JLabel(messages.getString("middleName")+": ");		textFieldMiddleName = new JTextField();		labelLastName = new JLabel(messages.getString("lastName")+": ");		textFieldLastName = new JTextField();		labelStreet = new JLabel(messages.getString("street")+": ");		textFieldStreet = new JTextField();		labelPostalCode = new JLabel(messages.getString("postalCode")+": ");		textFieldPostalCode = new JTextField();		labelCity = new JLabel(messages.getString("city")+": ");		textFieldCity = new JTextField();		labelHomeNumber = new JLabel(messages.getString("homeTelephoneNumber")+": ");		textFieldHomeNumber = new JTextField();		setStandardHomeNumber = new JButton("Standard");		labelMobileNumber = new JLabel(messages.getString("mobileTelephoneNumber")+": ");		textFieldMobileNumber = new JTextField();		setStandardMobileNumber = new JButton("Standard");		labelBusinessNumber = new JLabel(messages.getString("businessTelephoneNumber")+": ");		textFieldBusinessNumber = new JTextField();		setStandardBusinessNumber = new JButton("Standard");		labelOtherNumber = new JLabel(messages.getString("otherTelephoneNumber")+": ");		textFieldOtherNumber = new JTextField();		setStandardOtherNumber = new JButton("Standard");		labelEmail = new JLabel(messages.getString("emailAddress")+": ");		textFieldEmail = new JTextField();		labelStandardNumber = new JLabel("Standard Nummer"+": ");		textStandardNumber = new JLabel("Not Set");			    JRadioButton radioButtonHome = new JRadioButton("");	    radioButtonHome.setActionCommand("standardHome");	    JRadioButton radioButtonMobile = new JRadioButton("");	    radioButtonMobile.setActionCommand("standardMobile");	    JRadioButton radioButtonBusiness = new JRadioButton("");	    radioButtonBusiness.setActionCommand("standardBusiness");	    JRadioButton radioButtonOther = new JRadioButton("");	    radioButtonOther.setActionCommand("standardOther");				panelLabelsAndTextFields.add(labelFirstName);		panelLabelsAndTextFields.add(textFieldFirstName);		panelLabelsAndTextFields.add(labelMiddleName);		panelLabelsAndTextFields.add(textFieldMiddleName);		panelLabelsAndTextFields.add(labelLastName);		panelLabelsAndTextFields.add(textFieldLastName);				panelLabelsAndTextFields.add(labelStreet);		panelLabelsAndTextFields.add(textFieldStreet);		panelLabelsAndTextFields.add(labelPostalCode);		panelLabelsAndTextFields.add(textFieldPostalCode);		panelLabelsAndTextFields.add(labelCity);		panelLabelsAndTextFields.add(textFieldCity);				JPanel homeNumberPanel = new JPanel();		homeNumberPanel.setLayout(new BoxLayout(homeNumberPanel,BoxLayout.X_AXIS));		homeNumberPanel.add(radioButtonHome);		homeNumberPanel.add(labelHomeNumber);		panelLabelsAndTextFields.add(homeNumberPanel);		panelLabelsAndTextFields.add(textFieldHomeNumber);		JPanel mobileNumberPanel = new JPanel();		mobileNumberPanel.setLayout(new BoxLayout(mobileNumberPanel,BoxLayout.X_AXIS));		mobileNumberPanel.add(radioButtonMobile);		mobileNumberPanel.add(labelMobileNumber);		panelLabelsAndTextFields.add(mobileNumberPanel);		panelLabelsAndTextFields.add(textFieldMobileNumber);		JPanel businessNumberPanel = new JPanel();		businessNumberPanel.setLayout(new BoxLayout(businessNumberPanel,BoxLayout.X_AXIS));		businessNumberPanel.add(radioButtonBusiness);		businessNumberPanel.add(labelBusinessNumber);		panelLabelsAndTextFields.add(businessNumberPanel);		panelLabelsAndTextFields.add(textFieldBusinessNumber);				JPanel otherNumberPanel = new JPanel();		otherNumberPanel.setLayout(new BoxLayout(otherNumberPanel,BoxLayout.X_AXIS));		otherNumberPanel.add(radioButtonOther);		otherNumberPanel.add(labelOtherNumber);		panelLabelsAndTextFields.add(otherNumberPanel);		panelLabelsAndTextFields.add(textFieldOtherNumber);/**		panelLabelsAndTextFields.add(labelEmail);		panelLabelsAndTextFields.add(textFieldEmail);*/				centerPane.setLayout(new BoxLayout(centerPane,BoxLayout.Y_AXIS));		centerPane.add(new JScrollPane(table),BorderLayout.NORTH);		centerPane.add(panelLabelsAndTextFields,BorderLayout.CENTER);				getContentPane().add(topPane, BorderLayout.NORTH);		getContentPane().add(centerPane, BorderLayout.CENTER);		getContentPane().add(bottomPane, BorderLayout.SOUTH);			    ButtonGroup group = new ButtonGroup();	    group.add(radioButtonHome);	    group.add(radioButtonMobile);	    group.add(radioButtonBusiness);	    group.add(radioButtonOther);		setSize(new Dimension(480, 500));	}