本文整理汇总了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);
}
示例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);
}
示例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$
}
示例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")));
}