99 * @license Apache (http://www.apache.org/licenses/LICENSE-2.0)
1010 * @create 2012-05-04
1111 * @update 2015-09-4
12- *
13- *
12+ *
13+ *
1414 * @modifiedby Achintha Gunasekara
1515 * @modweb http://www.achinthagunasekara.com
1616 * @modemail contact@achinthagunasekara.com
@@ -27,46 +27,46 @@ public class About {
2727 private final JPanel panel ;
2828 private String contentText ;
2929 private final JLabel text ;
30-
31- public About () {
32- panel = new JPanel (new FlowLayout ());
33- panel .setBorder (BorderFactory .createEmptyBorder (8 , 8 , 8 , 8 ));
34- frame = new JFrame ();
35- frame .setVisible (true );
36- frame .setSize (500 ,300 );
37- text = new JLabel ();
38- }
39-
40- public void me () {
41- frame .setTitle ("About Me - " + SimpleJavaTextEditor .NAME );
42-
43- contentText =
44- "<html><body><p>" +
45- "Author: Pierre-Henry Soria<br />" +
46- "Contact me at: " +
47- "<a href='mailto:" + SimpleJavaTextEditor .AUTHOR_EMAIL + "?subject=About the NotePad PH Software'>" + SimpleJavaTextEditor .AUTHOR_EMAIL + "</a>" +
30+
31+ public About () {
32+ panel = new JPanel (new FlowLayout ());
33+ panel .setBorder (BorderFactory .createEmptyBorder (8 , 8 , 8 , 8 ));
34+ frame = new JFrame ();
35+ frame .setVisible (true );
36+ frame .setSize (500 ,300 );
37+ text = new JLabel ();
38+ }
39+
40+ public void me () {
41+ frame .setTitle ("About Me - " + SimpleJavaTextEditor .NAME );
42+
43+ contentText =
44+ "<html><body><p>" +
45+ "Author: Pierre-Henry Soria<br />" +
46+ "Contact me at: " +
47+ "<a href='mailto:" + SimpleJavaTextEditor .AUTHOR_EMAIL + "?subject=About the NotePad PH Software'>" + SimpleJavaTextEditor .AUTHOR_EMAIL + "</a>" +
4848 "<br /><br />" +
4949 "Modified By: Achintha Gunasekara<br />" +
5050 "Contact me at: <a href='mailto:" + SimpleJavaTextEditor .EDITOR_EMAIL + "?subject=About the NotePad PH Software'>" + SimpleJavaTextEditor .EDITOR_EMAIL + "</a>" +
51- "</p></body></html>" ;
52-
53- text .setText (contentText );
54- panel .add (text );
55- frame .add (panel );
56- }
57-
58- public void software () {
59- frame .setTitle ("About Me - " + SimpleJavaTextEditor .NAME );
60-
61- contentText =
62- "<html><body><p>" +
63- "Name: " + SimpleJavaTextEditor .NAME + "<br />" +
64- "Version: " + SimpleJavaTextEditor .VERSION +
65- "</p></body></html>" ;
66-
67- text .setText (contentText );
68- panel .add (text );
69- frame .add (panel );
70- }
71-
51+ "</p></body></html>" ;
52+
53+ text .setText (contentText );
54+ panel .add (text );
55+ frame .add (panel );
56+ }
57+
58+ public void software () {
59+ frame .setTitle ("About Me - " + SimpleJavaTextEditor .NAME );
60+
61+ contentText =
62+ "<html><body><p>" +
63+ "Name: " + SimpleJavaTextEditor .NAME + "<br />" +
64+ "Version: " + SimpleJavaTextEditor .VERSION +
65+ "</p></body></html>" ;
66+
67+ text .setText (contentText );
68+ panel .add (text );
69+ frame .add (panel );
70+ }
71+
7272}
0 commit comments