@@ -47,57 +47,57 @@ public enum MODE {
47
47
* @throws IOException in case the file to show in given mode failed to load
48
48
*/
49
49
public FrameHelp (MODE mode ) throws IOException { // TODO javadoc
50
- this . initComponents ();
50
+ initComponents ();
51
51
this .mode = mode ;
52
52
Dimension screenSize = Toolkit .getDefaultToolkit ().getScreenSize ();
53
- int width = this . getWidth ();
54
- int height = this . getHeight ();
55
- this . setLocation ((screenSize .width - width ) / 2 , (screenSize .height - height ) / 2 );
53
+ int width = getWidth ();
54
+ int height = getHeight ();
55
+ setLocation ((screenSize .width - width ) / 2 , (screenSize .height - height ) / 2 );
56
56
if (mode == MODE .SHOW_ABOUT ) {
57
57
URL url = getClass ().getResource (Configurator .getConfigurator ().getPathProperty ("help_file_about" ));
58
- this . editorPane .setPage (url );
58
+ editorPane .setPage (url );
59
59
} else if (mode == MODE .SHOW_HELP ) {
60
60
URL url = getClass ().getResource (Configurator .getConfigurator ().getPathProperty ("help_file_help" ));
61
- this . editorPane .setPage (url );
61
+ editorPane .setPage (url );
62
62
}
63
- this . setVisible (true );
63
+ setVisible (true );
64
64
}
65
65
66
66
private void initComponents () {
67
- this . jScrollPane1 = new JScrollPane ();
68
- this . editorPane = new JEditorPane ();
69
- this . helpWindowClose = new JButton ();
67
+ jScrollPane1 = new JScrollPane ();
68
+ editorPane = new JEditorPane ();
69
+ helpWindowClose = new JButton ();
70
70
71
- this . setDefaultCloseOperation (WindowConstants .DISPOSE_ON_CLOSE );
72
- this . setTitle ("JavaANPR - Help" );
73
- this . setResizable (false );
74
- this . jScrollPane1 .setViewportView (this . editorPane );
71
+ setDefaultCloseOperation (WindowConstants .DISPOSE_ON_CLOSE );
72
+ setTitle ("JavaANPR - Help" );
73
+ setResizable (false );
74
+ jScrollPane1 .setViewportView (editorPane );
75
75
76
- this . helpWindowClose .setFont (new java .awt .Font ("Arial" , 0 , 11 ));
77
- this . helpWindowClose .setText ("Close" );
78
- this . helpWindowClose .addActionListener (new java .awt .event .ActionListener () {
76
+ helpWindowClose .setFont (new java .awt .Font ("Arial" , 0 , 11 ));
77
+ helpWindowClose .setText ("Close" );
78
+ helpWindowClose .addActionListener (new java .awt .event .ActionListener () {
79
79
@ Override
80
80
public void actionPerformed (java .awt .event .ActionEvent evt ) {
81
- FrameHelp . this . helpWindowCloseActionPerformed (evt );
81
+ helpWindowCloseActionPerformed (evt );
82
82
}
83
83
});
84
84
85
- GroupLayout layout = new GroupLayout (this . getContentPane ());
86
- this . getContentPane ().setLayout (layout );
85
+ GroupLayout layout = new GroupLayout (getContentPane ());
86
+ getContentPane ().setLayout (layout );
87
87
layout .setHorizontalGroup (layout .createParallelGroup (GroupLayout .LEADING )
88
88
.add (layout .createSequentialGroup ().addContainerGap ()
89
89
.add (layout .createParallelGroup (GroupLayout .LEADING )
90
- .add (GroupLayout .TRAILING , this . helpWindowClose )
91
- .add (this . jScrollPane1 , GroupLayout .DEFAULT_SIZE , 514 , Short .MAX_VALUE ))
90
+ .add (GroupLayout .TRAILING , helpWindowClose )
91
+ .add (jScrollPane1 , GroupLayout .DEFAULT_SIZE , 514 , Short .MAX_VALUE ))
92
92
.addContainerGap ()));
93
93
layout .setVerticalGroup (layout .createParallelGroup (GroupLayout .LEADING ).add (GroupLayout .TRAILING ,
94
94
layout .createSequentialGroup ().addContainerGap ()
95
- .add (this . jScrollPane1 , GroupLayout .DEFAULT_SIZE , 461 , Short .MAX_VALUE )
96
- .addPreferredGap (LayoutStyle .RELATED ).add (this . helpWindowClose ).addContainerGap ()));
97
- this . pack ();
95
+ .add (jScrollPane1 , GroupLayout .DEFAULT_SIZE , 461 , Short .MAX_VALUE )
96
+ .addPreferredGap (LayoutStyle .RELATED ).add (helpWindowClose ).addContainerGap ()));
97
+ pack ();
98
98
}
99
99
100
100
private void helpWindowCloseActionPerformed (ActionEvent evt ) {
101
- this . dispose ();
101
+ dispose ();
102
102
}
103
103
}
0 commit comments