List of usage examples for javax.swing AbstractButton setMultiClickThreshhold
public void setMultiClickThreshhold(long threshhold)
From source file:MultiClickThreshholdDemo.java
public static void main(String[] a) { JFrame frame = new JFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); AbstractButton bn = new JButton(); bn.setMultiClickThreshhold(1000); bn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { System.out.println("action"); }/*ww w . j a v a 2 s . co m*/ }); frame.add(bn); frame.setSize(300, 200); frame.setVisible(true); }