javax.swing.JFileChooser.getControlButtonsAreShown()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(106)

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

JFileChooser.getControlButtonsAreShown介绍

暂无

代码示例

代码示例来源:origin: de.sciss/submin

@Override
protected WebFileChooserPanel createPanel(final JFileChooser fileChooser) {
  return new SubminFileChooserPanel(getFileChooserType(), fileChooser.getControlButtonsAreShown());
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf

private void doControlButtonsChanged(PropertyChangeEvent e)
{
  if (getFileChooser().getControlButtonsAreShown())
  {
    addControlButtons();
  }
  else
  {
    removeControlButtons();
  }
}

代码示例来源:origin: org.gephi/directory-chooser

private void fireControlButtonsChanged(PropertyChangeEvent e) {
  if(getFileChooser().getControlButtonsAreShown()) {
    addControlButtons();
  } else {
    removeControlButtons();
  }
}

代码示例来源:origin: com.l2fprod.common/l2fprod-common-directorychooser

private void updateView(JFileChooser chooser) {
 if (chooser.getApproveButtonText() != null) {
  approveButton.setText(chooser.getApproveButtonText());
  approveButton.setMnemonic(chooser.getApproveButtonMnemonic());
 } else {
  if (JFileChooser.OPEN_DIALOG == chooser.getDialogType()) {
   approveButton.setText(openButtonText);
   approveButton.setToolTipText(openButtonToolTipText);
   approveButton.setMnemonic(openButtonMnemonic);
  } else {
   approveButton.setText(saveButtonText);
   approveButton.setToolTipText(saveButtonToolTipText);
   approveButton.setMnemonic(saveButtonMnemonic);
  }
 }
 cancelButton.setText(cancelButtonText);
 cancelButton.setMnemonic(cancelButtonMnemonic);
 newFolderButton.setText(newFolderText);
 newFolderButton.setToolTipText(newFolderToolTipText);
 newFolderButton.setVisible(((JDirectoryChooser)chooser).isShowingCreateDirectory());
 buttonPanel.setVisible(chooser.getControlButtonsAreShown());
 // ensure approve/cancel buttons have the same width
 approveButton.setPreferredSize(null);
 cancelButton.setPreferredSize(null);
 Dimension preferredSize = approveButton.getMinimumSize();
 preferredSize = new Dimension(Math.max(preferredSize.width, cancelButton
  .getPreferredSize().width), preferredSize.height);
 approveButton.setPreferredSize(preferredSize);
 cancelButton.setPreferredSize(preferredSize);    
}

代码示例来源:origin: com.jidesoft/jide-oss

_cancelButton.setMnemonic(cancelButtonMnemonic);
_buttonPanel.setVisible(chooser.getControlButtonsAreShown());
if (_toolbar != null) {
  Component[] components = _toolbar.getComponents();

代码示例来源:origin: org.gephi/directory-chooser

@Override
public void installComponents(JFileChooser fc) {
  fileChooser = fc;
  
  fc.setFocusCycleRoot(true);
  fc.setBorder(new EmptyBorder(4, 10, 10, 10));
  fc.setLayout(new BorderLayout(8, 8));
  
  updateUseShellFolder();
  createCenterPanel(fc);
  fc.add(centerPanel, BorderLayout.CENTER);
  
  if (fc.isMultiSelectionEnabled()) {
    setFileName(getStringOfFileNames(fc.getSelectedFiles()));
  } else {
    setFileName(getStringOfFileName(fc.getSelectedFile()));
  }
  
  if(fc.getControlButtonsAreShown()) {
    addControlButtons();
  }
  
  createPopup();
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf

getButtonPanel().add(cancelButton);
if (fc.getControlButtonsAreShown())

相关文章

JFileChooser类方法