本文整理了Java中org.openide.util.Utilities.stringToKeys()
方法的一些代码示例,展示了Utilities.stringToKeys()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utilities.stringToKeys()
方法的具体详情如下:
包路径:org.openide.util.Utilities
类名称:Utilities
方法名:stringToKeys
[英]Convert a space-separated list of user-friendly key binding names to a list of Swing key strokes.
[中]将以空格分隔的用户友好键绑定名称列表转换为摆动键笔划列表。
代码示例来源:origin: org.netbeans.api/org-openide-awt
KeyStroke[] stroke = Utilities.stringToKeys(name);
if (stroke == null) {
throw new LayerGenerationException(
代码示例来源:origin: org.netbeans.modules/org-netbeans-core
FileObject dir = def.getParent();
if (def.isData()) {
KeyStroke[] strokes = Utilities.stringToKeys(def.getName());
if (strokes == null || strokes.length == 0) {
LOG.log(Level.WARNING, "could not load parse name of " + def.getPath());
内容来源于网络,如有侵权,请联系作者删除!