Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv29800/src/net/sourceforge/bprocessor/gui
Modified Files:
Toolbar.java
Log Message:
Added mnemonics to most buttons, the only twist is that alt have to be pressed now to activate buttons, but all tooltip include mnemonic info, which look good. Added tooltip to all buttons.
Index: Toolbar.java
===================================================================
RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/Toolbar.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Toolbar.java 13 Jun 2006 09:42:35 -0000 1.6
--- Toolbar.java 21 Jul 2006 15:15:01 -0000 1.7
***************
*** 63,70 ****
* Register a toolbar action, with a push button.
* @param action The action
* @return The Button
*/
! public JButton registerPushButtonAction(Action action) {
JButton tb = new JButton(action);
toolBar.add(tb);
return tb;
--- 63,72 ----
* Register a toolbar action, with a push button.
* @param action The action
+ * @param tooltip The tooltip
* @return The Button
*/
! public JButton registerPushButtonAction(Action action, String tooltip) {
JButton tb = new JButton(action);
+ tb.setToolTipText(tooltip);
toolBar.add(tb);
return tb;
|