1010
1111package org .snapbackup .ui .filter ;
1212
13- import java .awt .Component ;
1413import java .awt .Dimension ;
1514import java .awt .Frame ;
1615import java .awt .event .ActionEvent ;
2423
2524public class FilterDialog extends JDialog {
2625
27- SnapBackupFrame f = SnapBackupFrame .current ;
28- String nullStr = SystemAttributes .nullStr ;
29- FilterUIProperties ui = new FilterUIProperties ();
26+ SnapBackupFrame f = SnapBackupFrame .current ;
27+ String nullStr = SystemAttributes .nullStr ;
28+ FilterUIProperties ui = new FilterUIProperties ();
3029
3130 // Define Controls
3231 JPanel filterPanel = new JPanel ();
@@ -64,7 +63,7 @@ public class FilterDialog extends JDialog {
6463
6564 public FilterDialog (Frame owner ) {
6665 super (owner );
67- setDefaultCloseOperation (WindowConstants . DISPOSE_ON_CLOSE );
66+ setDefaultCloseOperation (DISPOSE_ON_CLOSE );
6867 setTitle (ui .filterRuleTitle );
6968 configureContols ();
7069 addContols ();
@@ -86,19 +85,19 @@ void configureContols() {
8685 BorderFactory .createTitledBorder (ui .filterRuleIncludeTitle ),
8786 BorderFactory .createEmptyBorder (0 , 5 , 5 , 5 )));
8887 includeDataPanel .setLayout (new BoxLayout (includeDataPanel , BoxLayout .LINE_AXIS ));
89- includeDataPanel .setAlignmentX (Component . LEFT_ALIGNMENT ); //Why??? Swing deficiency
88+ includeDataPanel .setAlignmentX (LEFT_ALIGNMENT ); //Why??? Swing deficiency
9089 excludePanel .setLayout (new BoxLayout (excludePanel , BoxLayout .PAGE_AXIS ));
9190 excludePanel .setBorder (BorderFactory .createCompoundBorder (
9291 BorderFactory .createTitledBorder (ui .filterRuleExcludeTitle ),
9392 BorderFactory .createEmptyBorder (0 , 5 , 5 , 5 )));
9493 excludeDataPanel .setLayout (new BoxLayout (excludeDataPanel , BoxLayout .LINE_AXIS ));
95- excludeDataPanel .setAlignmentX (Component . LEFT_ALIGNMENT ); //Why??? Swing deficiency
94+ excludeDataPanel .setAlignmentX (LEFT_ALIGNMENT ); //Why??? Swing deficiency
9695 excludeFoldersPanel .setLayout (new BoxLayout (excludeFoldersPanel , BoxLayout .LINE_AXIS ));
97- excludeFoldersPanel .setAlignmentX (Component . LEFT_ALIGNMENT ); //Why??? Swing deficiency
96+ excludeFoldersPanel .setAlignmentX (LEFT_ALIGNMENT ); //Why??? Swing deficiency
9897 excludeSizePanel .setLayout (new BoxLayout (excludeSizePanel , BoxLayout .LINE_AXIS ));
99- excludeSizePanel .setAlignmentX (Component . LEFT_ALIGNMENT ); //Why??? Swing deficiency
98+ excludeSizePanel .setAlignmentX (LEFT_ALIGNMENT ); //Why??? Swing deficiency
10099 buttonPanel .setLayout (new BoxLayout (buttonPanel , BoxLayout .LINE_AXIS ));
101- buttonPanel .setAlignmentX (Component . LEFT_ALIGNMENT ); //Why??? Swing deficiency
100+ buttonPanel .setAlignmentX (LEFT_ALIGNMENT ); //Why??? Swing deficiency
102101 deleteButton .addActionListener (new ActionListener () {
103102 public void actionPerformed (ActionEvent e ) { actionDelete (); } } );
104103 cancelButton .addActionListener (new ActionListener () {
@@ -109,10 +108,9 @@ void configureContols() {
109108 UIUtilities .makeBold (okButton );
110109 getRootPane ().setDefaultButton (okButton );
111110 getRootPane ().registerKeyboardAction (new ActionListener () {
112- public void actionPerformed (ActionEvent e ) {
113- actionCancel (); } },
114- KeyStroke .getKeyStroke (KeyEvent .VK_ESCAPE , 0 ),
115- JComponent .WHEN_IN_FOCUSED_WINDOW );
111+ public void actionPerformed (ActionEvent e ) { actionCancel (); } },
112+ KeyStroke .getKeyStroke (KeyEvent .VK_ESCAPE , 0 ),
113+ JComponent .WHEN_IN_FOCUSED_WINDOW );
116114 }
117115
118116 void addContols () {
0 commit comments