当前位置: 首页>>代码示例>>Java>>正文


Java LaunchButton.setToolTipText方法代码示例

本文整理汇总了Java中VASSAL.tools.LaunchButton.setToolTipText方法的典型用法代码示例。如果您正苦于以下问题:Java LaunchButton.setToolTipText方法的具体用法?Java LaunchButton.setToolTipText怎么用?Java LaunchButton.setToolTipText使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在VASSAL.tools.LaunchButton的用法示例。


在下文中一共展示了LaunchButton.setToolTipText方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: NotesWindow

import VASSAL.tools.LaunchButton; //导入方法依赖的package包/类
public NotesWindow() {
  privateNotes = new PrivateNotesController();
  secretNotes = new SecretNotesController();
  frame = new NotesDialog();
  frame.setTitle(Resources.getString("Notes.notes")); //$NON-NLS-1$
  ActionListener al = new ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent e) {
      captureState();
      frame.setVisible(!frame.isShowing());
    }
  };
  launch = new LaunchButton(Resources.getString("Notes.notes"), TOOLTIP, BUTTON_TEXT, HOT_KEY, ICON, al); //$NON-NLS-1$
  launch.setAttribute(ICON, "/images/notes.gif"); //$NON-NLS-1$
  launch.setToolTipText(Resources.getString("Notes.notes")); //$NON-NLS-1$
  frame.pack();
  setup(false);
}
 
开发者ID:ajmath,项目名称:VASSAL-src,代码行数:18,代码来源:NotesWindow.java

示例2: ToolbarMenu

import VASSAL.tools.LaunchButton; //导入方法依赖的package包/类
public ToolbarMenu() {
  launch = new LaunchButton(Resources.getString(Resources.MENU), TOOLTIP, BUTTON_TEXT, BUTTON_HOTKEY, BUTTON_ICON, new ActionListener() {
    public void actionPerformed(ActionEvent e) {
      launch();
    }
  });
  menu = new JPopupMenu();
  launch.putClientProperty(MENU_PROPERTY, menu);
  launch.setToolTipText("Display Menu Options");
  GameModule.getGameModule().getGameState().addGameComponent(this);
}
 
开发者ID:ajmath,项目名称:VASSAL-src,代码行数:12,代码来源:ToolbarMenu.java

示例3: PlayerRoster

import VASSAL.tools.LaunchButton; //导入方法依赖的package包/类
public PlayerRoster() {
  ActionListener al = new ActionListener() {
    public void actionPerformed(ActionEvent e) {
      launch();
    }
  };
  retireButton = new LaunchButton(Resources.getString("PlayerRoster.retire"), TOOL_TIP, BUTTON_TEXT, null, BUTTON_ICON, al); //$NON-NLS-1$
  retireButton.setToolTipText(Resources.getString("PlayerRoster.allow_another")); //$NON-NLS-1$
  retireButton.setVisible(false);

  translatedObserver = Resources.getString("PlayerRoster.observer"); //$NON-NLS-1$
}
 
开发者ID:ajmath,项目名称:VASSAL-src,代码行数:13,代码来源:PlayerRoster.java

示例4: PieceWindow

import VASSAL.tools.LaunchButton; //导入方法依赖的package包/类
public PieceWindow() {
  root = new JPanel(new BorderLayout());
  ActionListener al = new ActionListener() {
    public void actionPerformed(ActionEvent e) {
      launchButtonPressed();
    }
  };
  launch = new LaunchButton(Resources.getString("Editor.PieceWindow.pieces"), TOOLTIP, BUTTON_TEXT, HOTKEY, ICON, al);
  launch.setToolTipText(Resources.getString("Editor.PieceWindow.show_hide_pieces_window", Resources.getString("Editor.PieceWindow.pieces")));
}
 
开发者ID:ajmath,项目名称:VASSAL-src,代码行数:11,代码来源:PieceWindow.java


注:本文中的VASSAL.tools.LaunchButton.setToolTipText方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。