Call ButtonObject of the following two methods can be
1> setModifiers (int modifiers) to set an arbitrary modifier, you can call NCKey class constants, such as: NCKey.MODIFIERS_ALT
2> setHotKey (String keyStr) to set any shortcut keys, such as: "G".
If we create an object of type ButtonObject button bnObj, through the following settings, you can specify the button's shortcut keys: alt + G
bnObj.setModifiers (NCKey.MODIFIERS_ALT);
bnObj.setHotKey ( "G");







