/** * Constructs a new AddMediumDialog. * * @param parent the parent of this dialog */ public AddMediumDialog(Component parent) { super(JOptionPane.getFrameForComponent(parent), resources.getString("AddMediumDialog.title")); setModal(true); listeners.put("OKButtonAction", new OKButtonAction()); listeners.put("CancelButtonAction", new CancelButtonAction()); getContentPane().add(createContentPanel(), BorderLayout.CENTER); getContentPane().add(createButtonsPanel(), BorderLayout.SOUTH); }
/** * Constructs a new AddMediumDialog. * * @param parent the parent of this dialog */ public AddMediumDialog(Component parent) { super(JOptionPane.getFrameForComponent(parent), resources.getString("AddMediumDialog.title")); setModal(true); listeners.put("OKButtonAction", new OKButtonAction()); listeners.put("CancelButtonAction", new CancelButtonAction()); getContentPane().add(createContentPanel(), BorderLayout.CENTER); getContentPane().add(createButtonsPanel(), BorderLayout.SOUTH); }