public void actionPerformed(ActionEvent evt) { fmt_chosen = null; dispose(); } });
title, true); setModal(true); setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); addWindowListener(new WindowAdapter() { buttonPane.add(okButton); buttonPane.add(cancelButton); Container contentPane = getContentPane(); contentPane.setLayout(new BorderLayout()); contentPane.add(textPane, BorderLayout.NORTH); contentPane.add(buttonPane, BorderLayout.SOUTH); pack(); setLocation(Administrator.INSTANCE.getCenteredPos(getWidth(), getHeight())); setVisible(true);
Administrator.setLastDir(file.getParentFile()); ObjectFormatDialog fmtDialog = new ObjectFormatDialog("Select XML Format of Ingest File(s)"); if (fmtDialog.getSelection() != null) { String ingestFormat = fmtDialog.getSelection(); String pid = Ingest.oneFromFile(file, long st = System.currentTimeMillis(); ObjectFormatDialog fmtDialog = new ObjectFormatDialog("Select XML Format of Ingest File(s)"); if (fmtDialog.getSelection() != null) { String ingestFormat = fmtDialog.getSelection(); Ingest.multiFromDirectory(file, ingestFormat,
@Override public void windowClosing(WindowEvent we) { fmt_chosen = null; dispose(); } });
public void actionPerformed(ActionEvent evt) { dispose(); } });