JHotDraw 7.0.9

org.jhotdraw.application
Class MyMnemonicText

java.lang.Object
  extended by org.jhotdraw.application.MyMnemonicText

public class MyMnemonicText
extends java.lang.Object

An internal helper class that configures the text and mnemonic properties for instances of AbstractButton, JLabel, and javax.swing.Action. It's used like this:

 MyMnemonicText.configure(myButton, "Save &As")
 
The configure method unconditionally sets three properties on the target object: If the mnemonic marker character isn't present, then the second two properties are cleared to VK_UNDEFINED (0) and -1 respectively.


Method Summary
static void configure(java.lang.Object target, java.lang.String markedText)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

configure

public static void configure(java.lang.Object target,
                             java.lang.String markedText)

Copyright 1996-2007 (c) JHotDraw.org.
Some rights reserved.