List of usage examples for javax.swing AbstractButton getMnemonic
public int getMnemonic()
From source file:Main.java
public static void main(String[] args) { AbstractButton jb = new JButton("Press Me"); System.out.println(jb.getMnemonic()); JFrame f = new JFrame(); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.getContentPane().add(jb);//from w w w . jav a2s . c o m f.pack(); f.setVisible(true); }