Example usage for javax.swing JFileChooser getActionListeners

List of usage examples for javax.swing JFileChooser getActionListeners

Introduction

In this page you can find the example usage for javax.swing JFileChooser getActionListeners.

Prototype

@BeanProperty(bound = false)
public ActionListener[] getActionListeners() 

Source Link

Document

Returns an array of all the action listeners registered on this file chooser.

Usage

From source file:Main.java

public static void main(String[] a) {
    JFrame frame = new JFrame("JFileChooser Popup");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

    JFileChooser fileChooser = new JFileChooser(".");
    ActionListener[] lis = fileChooser.getActionListeners();

    frame.add(fileChooser, BorderLayout.CENTER);

    frame.pack();/*from   w  ww  . ja v  a2s .c  o m*/
    frame.setVisible(true);
}