79307670

Date: 2024-12-25 13:43:05
Score: 1
Natty:
Report link

if you use the swing library you can just use the :

setMnemonic()

but how? suppose you have an JMenu in swing, look at the below:

 JMenu setting = new JMenu("setting");
 setting.setMnemonic('s');

it makes the first letter underline. hope this useful for you.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: noorullahkarimi