Java Code Examples for javax.swing.Box.Filler#addMouseListener()

The following examples show how to use javax.swing.Box.Filler#addMouseListener() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SimpleDock.java    From Cognizant-Intelligent-Test-Scripter with Apache License 2.0 5 votes vote down vote up
private void initFiller() {
    Filler filler = new Filler(new Dimension(0, 0), new Dimension(0, 0), new Dimension(32767, 32767));
    filler.addMouseListener(new MouseAdapter() {
        @Override
        public void mouseEntered(MouseEvent me) {
            mainFrame.getGlassPane().setVisible(false);
        }
    });
    add(filler, BorderLayout.CENTER);
}
 
Example 2
Source File: SimpleDock.java    From Cognizant-Intelligent-Test-Scripter with Apache License 2.0 5 votes vote down vote up
private Filler getLeftFiller() {
    Filler filler = new Filler(
            new Dimension(0, 0),
            new Dimension(0, 0),
            new Dimension(32767, 32767));
    filler.addMouseListener(new MouseAdapter() {
        @Override
        public void mouseClicked(MouseEvent me) {
            mainFrame.getGlassPane().setVisible(false);
        }
    });

    return filler;
}