本文整理了Java中javax.swing.JFileChooser.createDialog()
方法的一些代码示例,展示了JFileChooser.createDialog()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JFileChooser.createDialog()
方法的具体详情如下:
包路径:javax.swing.JFileChooser
类名称:JFileChooser
方法名:createDialog
暂无
代码示例来源:origin: org.apache.cayenne.modeler/cayenne-modeler
protected JDialog createDialog(Component parent) throws HeadlessException {
if (cachedDialog == null) {
cachedDialog = super.createDialog(parent);
}
return cachedDialog;
}
}
代码示例来源:origin: com.l2fprod.common/l2fprod-common-directorychooser
protected JDialog createDialog(Component parent) throws HeadlessException {
JDialog dialog = super.createDialog(parent);
((JComponent)dialog.getContentPane()).setBorder(
LookAndFeelTweaks.WINDOW_BORDER);
return dialog;
}
代码示例来源:origin: uk.gov.nationalarchives/droid-ui
/**
* Overridden to add the control panel to the dialog.
* @param parent the dialog's parent
* @return the created dialog
*/
@Override
protected JDialog createDialog(Component parent) {
JDialog dialog = super.createDialog(parent);
Container contentPane = dialog.getContentPane();
contentPane.add(bottomPanel, BorderLayout.SOUTH);
dialog.pack();
return dialog;
}
代码示例来源:origin: worstcase/gumshoe
protected JDialog createDialog(Component parent) throws HeadlessException {
dialog = super.createDialog(parent);
dialog.setLocation(locationX, locationY);
return dialog;
}
代码示例来源:origin: xXKeyleXx/MyPet
@Override
protected JDialog createDialog(Component parent) throws HeadlessException {
JDialog dialog = super.createDialog(parent);
dialog.setIconImage(logoImage);
return dialog;
}
};
代码示例来源:origin: cytoscape/application
protected JDialog createDialog(Component parent) throws HeadlessException {
JDialog jd = super.createDialog(parent);
jcb = new JCheckBox(jcbLabel);
jcb.setSelected(jcbFlag);
jcb.addItemListener(new CheckBoxListener());
Container contentPane = jd.getContentPane();
contentPane.add(jcb, BorderLayout.SOUTH);
jd.pack();
return jd;
}
代码示例来源:origin: org.gephi/desktop-io-export
@Override
protected JDialog createDialog(Component parent) throws HeadlessException {
dialog = super.createDialog(parent);
Component c = dialog.getContentPane().getComponent(0);
if (c != null && c instanceof JComponent) {
Insets insets = ((JComponent) c).getInsets();
southPanel.setBorder(BorderFactory.createEmptyBorder(insets.top, insets.left, insets.bottom, insets.right));
}
dialog.getContentPane().add(southPanel, BorderLayout.SOUTH);
return dialog;
}
代码示例来源:origin: datacleaner/DataCleaner
@Override
protected JDialog createDialog(final Component parent) throws HeadlessException {
final JDialog dialog = super.createDialog(parent);
dialog.setMinimumSize(new Dimension(400, 400));
return dialog;
}
代码示例来源:origin: sc.fiji/TrackMate_
@Override
protected JDialog createDialog( final Component lParent ) throws HeadlessException
{
final JDialog dialog = super.createDialog( lParent );
dialog.setIconImage( TRACKMATE_ICON.getImage() );
return dialog;
}
};
代码示例来源:origin: es.gob.afirma/afirma-ui-core-jse
@Override
protected JDialog createDialog(final Component p) {
final JDialog dialog = super.createDialog(p);
dialog.setIconImage((Image) icon);
return dialog;
}
};
代码示例来源:origin: org.opencadc/cadc-upload-manager
protected JDialog createDialog(Component parent)
throws HeadlessException
{
final JDialog dialog = super.createDialog(null);
Util.setPositionRelativeToParent(dialog, parent, 20, 20);
return dialog;
}
}
代码示例来源:origin: fiji/TrackMate
@Override
protected JDialog createDialog( final Component lParent ) throws HeadlessException {
final JDialog dialog = super.createDialog( lParent );
dialog.setIconImage( TRACKMATE_ICON.getImage() );
return dialog;
}
};
代码示例来源:origin: fiji/TrackMate
@Override
protected JDialog createDialog( final Component lParent ) throws HeadlessException
{
final JDialog dialog = super.createDialog( lParent );
dialog.setIconImage( TRACKMATE_ICON.getImage() );
return dialog;
}
};
代码示例来源:origin: sc.fiji/TrackMate_
@Override
protected JDialog createDialog( final Component lParent ) throws HeadlessException {
final JDialog dialog = super.createDialog( lParent );
dialog.setIconImage( TRACKMATE_ICON.getImage() );
return dialog;
}
};
代码示例来源:origin: sc.fiji/TrackMate_
@Override
protected JDialog createDialog( final Component lParent ) throws HeadlessException {
final JDialog dialog = super.createDialog( lParent );
dialog.setIconImage( TRACKMATE_ICON.getImage() );
return dialog;
}
};
代码示例来源:origin: cytoscape/application
protected JDialog createDialog(Component parent) throws HeadlessException {
JDialog jd = super.createDialog(parent);
jcb = new JCheckBox("Copy Expression Data to Network Attributes?");
jcb.setSelected(copyToAttribs);
jcb.addItemListener(new CopyExpListener());
Container contentPane = jd.getContentPane();
contentPane.add(jcb, BorderLayout.SOUTH);
jd.pack();
return jd;
}
代码示例来源:origin: org.opencadc/cadc-download-manager
protected JDialog createDialog(Component parent) throws HeadlessException {
JDialog dialog = super.createDialog(null);
Util.setPositionRelativeToParent(dialog, parent, 20, 20);
return dialog;
}
}
代码示例来源:origin: fiji/TrackMate
@Override
protected JDialog createDialog( final Component lParent ) throws HeadlessException {
final JDialog dialog = super.createDialog( lParent );
dialog.setIconImage( TRACKMATE_ICON.getImage() );
return dialog;
}
};
代码示例来源:origin: uk.org.mygrid.taverna.scufl/scufl-ui-api
/**
* Create the {@link JDialog} which contains the file chooser and add a
* {@link Checkbox} to it
*/
@Override
protected JDialog createDialog(Component parent) throws HeadlessException {
JDialog dialog = super.createDialog(parent);
JPanel panel = createPanel();
dialog.add(panel, java.awt.BorderLayout.SOUTH);
dialog.pack();
return dialog;
}
代码示例来源:origin: Mine-and-blade-admin/Battlegear2
@Override
protected JDialog createDialog(Component parent) throws HeadlessException {
// intercept the dialog created by JFileChooser
JDialog dialog = super.createDialog(parent);
dialog.setModal(true); // set modality (or setModalityType)
dialog.setAlwaysOnTop(true);
return dialog;
}
};
内容来源于网络,如有侵权,请联系作者删除!