javax.swing.Timer.setActionCommand()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(132)

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

Timer.setActionCommand介绍

暂无

代码示例

代码示例来源:origin: org.vesalainen.dsql/dsql

public DSqlParseAction(WorkBench workBench, UndoableEditListener listener, boolean readonly)
{
  super(null);
  this.workBench = workBench;
  this.listener = listener;
  this.readonly = readonly;
  timer = new Timer(500, this);
  timer.stop();
  timer.setRepeats(false);
  timer.setActionCommand("TimerAction");
  
  blackAction = new StyledEditorKit.ForegroundAction("Black", Color.BLACK);
  redAction = new StyledEditorKit.ForegroundAction("Red", Color.red);
  blueAction = new StyledEditorKit.ForegroundAction("Blue", Color.BLUE);
  grayAction = new StyledEditorKit.ForegroundAction("Green", Color.LIGHT_GRAY);
  orangeAction = new StyledEditorKit.ForegroundAction("Orange", Color.ORANGE);
  
}

代码示例来源:origin: com.thesett/debug_ui_tools_swing

fadeState.timer.setActionCommand(groupName);
fadeState.timer.setInitialDelay(400);
fadeState.timer.start();

代码示例来源:origin: stackoverflow.com

valueTimer.setActionCommand("valueTimer");
blinkTimer.setActionCommand("blinkTimer");

代码示例来源:origin: GoldenGnu/jeveassets

groupTimer.setActionCommand(FilterPanelAction.GROUP_TIMER.name());
timer.setActionCommand(FilterPanelAction.FILTER_TIMER.name());

代码示例来源:origin: GoldenGnu/jeveassets

timer.setActionCommand(ProgramAction.TIMER.name());

相关文章