nu.zoom.swing.desktop.Workbench.getDialogOwner()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(5.4k)|赞(0)|评价(0)|浏览(88)

本文整理了Java中nu.zoom.swing.desktop.Workbench.getDialogOwner()方法的一些代码示例,展示了Workbench.getDialogOwner()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Workbench.getDialogOwner()方法的具体详情如下:
包路径:nu.zoom.swing.desktop.Workbench
类名称:Workbench
方法名:getDialogOwner

Workbench.getDialogOwner介绍

暂无

代码示例

代码示例来源:origin: nu.zoom/filechooser

public File openFile() {
  log.trace("Creating file open dialog");
  JFileChooser chooser = getChooser();
  chooser.showOpenDialog(workbench.getDialogOwner());
  File file = chooser.getSelectedFile();
  saveLastDirectory(file);
  return file;
}

代码示例来源:origin: nu.zoom.desktop/filechooser

@Override
public File openFile() {
  log.trace("Creating file open dialog");
  JFileChooser chooser = getChooser();
  chooser.showOpenDialog(workbench.getDialogOwner());
  File file = chooser.getSelectedFile();
  saveLastDirectory(file);
  return file;
}

代码示例来源:origin: nu.zoom.desktop/filechooser

@Override
public File saveFile() {
  log.trace("Creating file save dialog");
  JFileChooser chooser = getChooser();
  chooser.showSaveDialog(workbench.getDialogOwner());
  File file = chooser.getSelectedFile();
  saveLastDirectory(file);
  return file;
}

代码示例来源:origin: nu.zoom/filechooser

public File saveFile() {
  log.trace("Creating file save dialog");
  JFileChooser chooser = getChooser();
  chooser.showSaveDialog(workbench.getDialogOwner());
  File file = chooser.getSelectedFile();
  saveLastDirectory(file);
  return file;
}

代码示例来源:origin: nu.zoom/eon2

private JDialog buildGUI(Vector editValues) {
  dlg = new JDialog(workbench.getDialogOwner(), messages.format(
      "attributes.stringeditor.title",
      attributeID), true);
  dlg.setLocationRelativeTo(workbench.getDialogOwner());
  dlg.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
  Vector<String> header = new Vector<String>();

代码示例来源:origin: nu.zoom.svansprogram/svansprogram-gui-rules

final JDialog dlg = new JDialog(workbench.getDialogOwner());
dlg.setLocationRelativeTo(workbench.getDialogOwner());

代码示例来源:origin: nu.zoom/svansprogram

@Override
public boolean canClose() {
  if (manager.isChanged()) {
    int result = JOptionPane.showConfirmDialog(
        workbench.getDialogOwner(),
        messages.getMessage("nu.zoom.catonine.unsaved"),
        messages.getMessage("nu.zoom.catonine.unsaved.title"),
        JOptionPane.YES_NO_CANCEL_OPTION);
    switch (result) {
      case JOptionPane.YES_OPTION:
        saveManager(false);
        return true;
      case JOptionPane.NO_OPTION:
        return true;
      default:
        return false;
    }
  }
  return true;
}

代码示例来源:origin: nu.zoom/eon2

AddAttributeDialog(Workbench workbench, Messages messages) {
  super(workbench.getDialogOwner(), messages
      .getMessage("attributes.dialog.add.title"), true);
  setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);

代码示例来源:origin: nu.zoom/portunis

public CreatePasswordDialog(Workbench workbench, Messages messages,
    String titleKey, String messageKey) {
  super(workbench.getDialogOwner(), messages.getMessage(titleKey), true);
  setLocationRelativeTo(workbench.getDialogOwner());
  this.messages = messages;

代码示例来源:origin: nu.zoom/portunis

KeyPasswordDialog(Workbench workbench, Messages messages) {
  super(workbench.getDialogOwner(), messages
      .getMessage("keystore.key.passphrase.title"), true);
  setLocationRelativeTo(workbench.getDialogOwner());

代码示例来源:origin: nu.zoom/portunis

public ImportCertificateDialog(Workbench workbench, Messages messages,
    Certificate cert, ZoomKeyStore store) {
  super(workbench.getDialogOwner(), messages.getMessage("keystore.import.cert.confirm.title"), true);
  this.messages = messages;
  this.store = store;

代码示例来源:origin: nu.zoom/eon2

public PasswordDialog(Workbench workbench, Messages messages) {
  super(workbench.getDialogOwner(), messages
      .getMessage("connection.password.query.title"), true);
  passwordField = new JPasswordField(40);
  setLocationRelativeTo(workbench.getDialogOwner());

代码示例来源:origin: nu.zoom/portunis

int chooserAction = chooser.showSaveDialog(workbench.getDialogOwner());
if (chooserAction == JFileChooser.APPROVE_OPTION) {
  File keystoreFile = chooser.getSelectedFile();
      int option = JOptionPane
          .showConfirmDialog(
              workbench.getDialogOwner(),
              messages
                  .getMessage("keystore.menu.save.overwrite"),

代码示例来源:origin: nu.zoom/portunis

chooser.setToolTipText(messages.getMessage("keystore.import.cert.tooltip"));
chooser.setDialogTitle(messages.getMessage("keystore.import.cert"));
int option = chooser.showOpenDialog(workbench.getDialogOwner());
if (option == JFileChooser.APPROVE_OPTION) {
  File certFile = chooser.getSelectedFile();
      ImportCertificateDialog confirmDlg = new ImportCertificateDialog(
          workbench, messages, cert, store);
      Point location = workbench.getDialogOwner().getLocation() ;
      location.x += 16 ;
      location.y += 16 ;
      confirmDlg.setLocation(location);
      confirmDlg.pack();
      if (confirmDlg.getHeight() > workbench.getDialogOwner().getHeight()) {
        confirmDlg.setSize(
            confirmDlg.getWidth(),
            workbench.getDialogOwner().getHeight()-16);

代码示例来源:origin: nu.zoom/eon2

@Override
  public void actionPerformed(ActionEvent e) {
    AddAttributeDialog dlg = new AddAttributeDialog(workbench, messages);
    dlg.pack();
    dlg.setLocationRelativeTo(workbench.getDialogOwner());
    dlg.setVisible(true);
    String attributeID = dlg.getText();
    if (attributeID != null) {
      AttributeEditor editor = editorFactory.getEditor(attributeID);
      editor.create(connectionInformation, iCtx, dn, attributeID);
    }
  }
}

代码示例来源:origin: nu.zoom/eon2

if (typeBreak > 0) {
  String newName = JOptionPane.showInputDialog(workbench
      .getDialogOwner(), messages.format(
      "tree.popup.rename.message",
      oldName), oldName.substring(typeBreak + 1, oldName

代码示例来源:origin: nu.zoom/portunis

error = false;
int retval = chooser.showOpenDialog(plugin.getWorkbench()
    .getDialogOwner());

相关文章