@@ -0,0 +1,1358 @@
+package main.java;%0A%0Aimport java.awt.BorderLayout;%0Aimport java.awt.FlowLayout;%0A%0Aimport javax.swing.JButton;%0Aimport javax.swing.JDialog;%0Aimport javax.swing.JPanel;%0Aimport javax.swing.border.EmptyBorder;%0A%0Apublic class EditItemDialog extends JDialog %7B%0A%0A%09private final JPanel contentPanel = new JPanel();%0A%0A%09/**%0A%09 * Launch the application.%0A%09 */%0A%09public static void main(String%5B%5D args) %7B%0A%09%09try %7B%0A%09%09%09EditItemDialog dialog = new EditItemDialog();%0A%09%09%09dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);%0A%09%09%09dialog.setVisible(true);%0A%09%09%7D catch (Exception e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09%7D%0A%0A%09/**%0A%09 * Create the dialog.%0A%09 */%0A%09public EditItemDialog() %7B%0A%09%09setBounds(100, 100, 450, 300);%0A%09%09getContentPane().setLayout(new BorderLayout());%0A%09%09contentPanel.setLayout(new FlowLayout());%0A%09%09contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));%0A%09%09getContentPane().add(contentPanel, BorderLayout.CENTER);%0A%09%09%7B%0A%09%09%09JPanel buttonPane = new JPanel();%0A%09%09%09buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));%0A%09%09%09getContentPane().add(buttonPane, BorderLayout.SOUTH);%0A%09%09%09%7B%0A%09%09%09%09JButton okButton = new JButton(%22OK%22);%0A%09%09%09%09okButton.setActionCommand(%22OK%22);%0A%09%09%09%09buttonPane.add(okButton);%0A%09%09%09%09getRootPane().setDefaultButton(okButton);%0A%09%09%09%7D%0A%09%09%09%7B%0A%09%09%09%09JButton cancelButton = new JButton(%22Cancel%22);%0A%09%09%09%09cancelButton.setActionCommand(%22Cancel%22);%0A%09%09%09%09buttonPane.add(cancelButton);%0A%09%09%09%7D%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

Edit Dialog initialized