org.openide.util.Utilities.stringToKeys()方法的使用及代码示例

x33g5p2x  于2022-01-31 转载在 其他  
字(0.8k)|赞(0)|评价(0)|浏览(655)

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

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());

相关文章

微信公众号

最新文章

更多