List of usage examples for java.awt Button addKeyListener
public synchronized void addKeyListener(KeyListener l)
From source file:Align_Projections.java
Button addButton(String label) { Button b = new Button(label); b.addActionListener(this); b.addKeyListener(IJ.getInstance()); add(b);/*from w w w . j av a2 s.co m*/ return b; }