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

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

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

JFileChooser.getAccessory介绍

暂无

代码示例

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

@Override
  public Dimension getPreferredSize () {
    if (fc.getAccessory() != null) {
      Dimension origPref = getAccessoryPanel().getPreferredSize();
      LOG.fine("AccessoryWrapper.getPreferredSize: orig pref size: " + origPref);
      
      prefSize.height = origPref.height;
      
      prefSize.width = Math.max(prefSize.width, origPref.width);
      int centerW = centerPanel.getWidth();
      if (centerW != 0 && prefSize.width > centerW / 2) {
        prefSize.width = centerW / 2;
      }
      LOG.fine("AccessoryWrapper.getPreferredSize: resulting pref size: " + prefSize);
      
      return prefSize;
    }
    return super.getPreferredSize();
  }
};

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

@Override
public Dimension getMinimumSize () {
  if (fc.getAccessory() != null) {
    minSize.height = getAccessoryPanel().getMinimumSize().height;
    return minSize;
  }
  return super.getMinimumSize();
}
@Override

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

JPanel treePanel = new JPanel();
treePanel.setLayout(new BorderLayout());
JComponent accessory = fc.getAccessory();
topToolbar = createTopToolbar();
topCombo = createTopCombo(fc);

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

private JComponent createTopCombo(JFileChooser fc) {
  JPanel panel = new JPanel();
  if (fc.getAccessory() != null) {
    panel.setBorder(BorderFactory.createEmptyBorder(4, 0, 8, 0));
  } else {

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

holdingPanel.add(_buttonPanel = createButtonPanel(), BorderLayout.SOUTH);
Component accessory = chooser.getAccessory();
if (accessory != null) {
  chooser.add(chooser.getAccessory(), BorderLayout.BEFORE_FIRST_LINE);

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

chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
Component accessory = chooser.getAccessory();
if (accessory != null) {
 chooser.add("North", chooser.getAccessory());

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

currentViewPanel= listViewPanel;
centerPanel.add(getAccessoryPanel(), BorderLayout.AFTER_LINE_ENDS);
JComponent accessory= fc.getAccessory();
if (accessory != null)

相关文章

JFileChooser类方法