本文整理了Java中javax.swing.JTextPane.getActions()
方法的一些代码示例,展示了JTextPane.getActions()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTextPane.getActions()
方法的具体详情如下:
包路径:javax.swing.JTextPane
类名称:JTextPane
方法名:getActions
暂无
代码示例来源:origin: org.jspresso.framework/jspresso-swing-components
/**
* Constructs a new {@code JHTMLEditor} instance.
*
* @param locale
* the locale to create the JHTMLEditor for.
*/
public JHTMLEditor(Locale locale) {
setFocusable(true);
bundle = ResourceBundle.getBundle(getClass().getName(), locale);
setLayout(new BorderLayout());
editorPane = new JTextPane();
editorPane.setEditorKit(new HTMLEditorKit());
Action[] actions = editorPane.getActions();
Map<String, Action> editorActions = new LinkedHashMap<>();
for (Action action : actions) {
editorActions.put((String) action.getValue(Action.NAME), action);
}
toolBar = createToolBar(editorActions);
scrollPane = new JScrollPane();
scrollPane.setViewportView(editorPane);
add(scrollPane, BorderLayout.CENTER);
add(toolBar, BorderLayout.SOUTH);
}
代码示例来源:origin: org.integratedmodelling/klab-common
};
Keymap k = consolePane.getKeymap();
JTextComponent.loadKeymap(k, newBindings, consolePane.getActions());
代码示例来源:origin: bbuck/DragonConsole
};
Keymap k = consolePane.getKeymap();
JTextComponent.loadKeymap(k, newBindings, consolePane.getActions());
代码示例来源:origin: org.vesalainen.dsql/dsql
sqlPane.setPreferredSize(new Dimension(700, 200));
Map<Object,Action> actions = new HashMap<>();
for (Action action : sqlPane.getActions())
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-ui
Action[] actionsArray = jtpMain.getActions();
for (int i = 0; i < actionsArray.length; i++) {
Action a = actionsArray[i];
内容来源于网络,如有侵权,请联系作者删除!