本文整理了Java中javax.swing.JFileChooser.getDialogTitle()
方法的一些代码示例,展示了JFileChooser.getDialogTitle()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JFileChooser.getDialogTitle()
方法的具体详情如下:
包路径:javax.swing.JFileChooser
类名称:JFileChooser
方法名:getDialogTitle
暂无
代码示例来源:origin: org.netbeans.api/org-openide-util
String title = chooser.getDialogTitle();
代码示例来源:origin: org.netbeans.api/org-openide-util-ui
String title = chooser.getDialogTitle();
代码示例来源:origin: eu.mihosoft.vrl/vrl
@Override
public String getDialogTitle() {
return super.getDialogTitle();
}
代码示例来源:origin: tinyMediaManager/tinyMediaManager
@Override
public String getDialogTitle() {
if (!JAVAFX_AVAILABLE) {
return super.getDialogTitle();
}
return fileChooser.getTitle();
}
代码示例来源:origin: com.itextpdf/itext-rups
fileChooser.setDialogTitle(fileChooser.getDialogTitle() + " raw bytes");
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-makeproject
private JFileChooser createDirPanel(String seed, final PropertyEditorSupport editor, PropertyEnv propenv) {
String titleText = java.util.ResourceBundle.getBundle("org/netbeans/modules/cnd/makeproject/api/Bundle").getString("Run_Directory");
String buttonText = java.util.ResourceBundle.getBundle("org/netbeans/modules/cnd/makeproject/api/Bundle").getString("SelectLabel");
final JFileChooser chooser = RemoteFileUtil.createFileChooser(getSourceExecutionEnvironment(), titleText, buttonText,
JFileChooser.DIRECTORIES_ONLY, null, seed, true);
chooser.putClientProperty("title", chooser.getDialogTitle()); // NOI18N
chooser.setControlButtonsAreShown(false);
propenv.setState(PropertyEnv.STATE_NEEDS_VALIDATION);
propenv.addPropertyChangeListener(new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent evt) {
if (PropertyEnv.PROP_STATE.equals(evt.getPropertyName()) && evt.getNewValue() == PropertyEnv.STATE_VALID) {
File selectedFile= chooser.getSelectedFile();
String path = CndPathUtilities.toRelativePath(makeConfiguration.getBaseDir(), selectedFile.getPath()); // FIXUP: not always relative path
path = CndPathUtilities.normalizeSlashes(path);
editor.setValue(path);
}
}
});
return chooser;
}
代码示例来源:origin: notzippy/JALOPY2-MAIN
: (Frame) javax.swing.SwingUtilities
.getAncestorOfClass(java.awt.Frame.class, parent);
String title = chooser.getDialogTitle();
代码示例来源:origin: in.jlibs/org-openide-util
String title = chooser.getDialogTitle();
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
String title = chooser.getDialogTitle();
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
String title = chooser.getDialogTitle();
代码示例来源:origin: uk.gov.nationalarchives.thirdparty.netbeans/org-openide-util
String title = chooser.getDialogTitle();
代码示例来源:origin: joel-costigliola/assertj-swing
/**
* Returns the {@code String} representation of the given {@code Component}, which should be a {@code JFileChooser}.
*
* @param c the given {@code Component}.
* @return the {@code String} representation of the given {@code JFileChooser}.
*/
@RunsInCurrentThread
@Override
@Nonnull protected String doFormat(@Nonnull Component c) {
JFileChooser fileChooser = (JFileChooser) c;
String format = "%s[name=%s, dialogTitle=%s, dialogType=%s, currentDirectory=%s, enabled=%b, visible=%b, showing=%b";
return String.format(format, getRealClassName(c), quote(fileChooser.getName()),
quote(fileChooser.getDialogTitle()), DIALOG_TYPES.get(fileChooser.getDialogType()),
new StandardRepresentation().toStringOf(fileChooser.getCurrentDirectory()),
fileChooser.isEnabled(),
fileChooser.isVisible(), fileChooser.isShowing());
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-makeproject
true);
chooser.setControlButtonsAreShown(false);
chooser.putClientProperty("title", chooser.getDialogTitle()); // NOI18N
setElfFilters(chooser, filters, latch);
propenv.setState(PropertyEnv.STATE_NEEDS_VALIDATION);
内容来源于网络,如有侵权,请联系作者删除!