本文整理了Java中javax.swing.text.JTextComponent.getActions()
方法的一些代码示例,展示了JTextComponent.getActions()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTextComponent.getActions()
方法的具体详情如下:
包路径:javax.swing.text.JTextComponent
类名称:JTextComponent
方法名:getActions
暂无
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
/**
* The following two methods allow us to find an
* action provided by the editor kit by its name.
*
* @param comp the component to get the actions from
* @return the relation
*/
protected HashMap<Object, Action> createActionTable(JTextComponent comp) {
HashMap<Object, Action> result;
int i;
Action[] actions;
Action action;
result = new HashMap<Object, Action>();
actions = comp.getActions();
for (i = 0; i < actions.length; i++) {
action = actions[i];
result.put(action.getValue(Action.NAME), action);
}
return result;
}
代码示例来源:origin: Waikato/weka-trunk
/**
* The following two methods allow us to find an
* action provided by the editor kit by its name.
*
* @param comp the component to get the actions from
* @return the relation
*/
protected HashMap<Object, Action> createActionTable(JTextComponent comp) {
HashMap<Object, Action> result;
int i;
Action[] actions;
Action action;
result = new HashMap<Object, Action>();
actions = comp.getActions();
for (i = 0; i < actions.length; i++) {
action = actions[i];
result.put(action.getValue(Action.NAME), action);
}
return result;
}
代码示例来源:origin: stackoverflow.com
Action[] actions = ta.getActions();
JMenuBar menubar = new JMenuBar();
JMenu actionmenu = new JMenu("Actions");
代码示例来源:origin: notzippy/JALOPY2-MAIN
Action[] actions = component.getActions();
代码示例来源:origin: org.appdapter/org.appdapter.lib.gui
Action[] acts = component.getActions();
if (acts != null && acts.length > 0) {
menu.addSeparator();
内容来源于网络,如有侵权,请联系作者删除!