本文整理了Java中javax.swing.JFileChooser.getAccessory()
方法的一些代码示例,展示了JFileChooser.getAccessory()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JFileChooser.getAccessory()
方法的具体详情如下:
包路径:javax.swing.JFileChooser
类名称: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)
内容来源于网络,如有侵权,请联系作者删除!