KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > test > editor > formatting > testReformat2


1 /*
2  * testReformat2.java
3  *
4  * Created on January 15, 2007, 2:25 PM
5  *
6  * To change this template, choose Tools | Template Manager
7  * and open the template in the editor.
8  */

9
10 package org.netbeans.test.editor.formatting;
11
12 import java.awt.Graphics JavaDoc;
13 import java.awt.event.ActionEvent JavaDoc;
14 import java.awt.event.ActionListener JavaDoc;
15 import java.io.Serializable JavaDoc;
16 import java.util.ArrayList JavaDoc;
17 import java.util.List JavaDoc;
18 import javax.swing.JButton JavaDoc;
19
20 /**
21      * Inner classes, anonymous classes, annotation formatting
22  * @author ms159439
23    */

24     public class testReformat2<E> extends ArrayList JavaDoc<E> implements List JavaDoc<E> {
25     
26 /** Creates a new instance of testReformat2 */
27 public testReformat2() {
28 }
29     
30     // .:xxxxxxxx:.
31
// .xxxxxxxxxxxxxxxx.
32
// :xxxxxxxxxxxxxxxxxxx:.
33
// .xxxxxxxxxxxxxxxxxxxxxxx:
34
// :xxxxxxxxxxxxxxxxxxxxxxxxx:
35
// xxxxxxxxxxxxxxxxxxxxxxxxxxX:
36
// xxx:::xxxxxxxx::::xxxxxxxxx:
37
// .xx: ::xxxxx: :xxxxxxxx
38
// :xx x. xxxx: xx. xxxxxxxx
39
// :xx xxx xxxx: xxxx :xxxxxxx
40
// 'xx 'xx xxxx:. xx' xxxxxxxx
41
// xx ::::::xx:::::. xxxxxxxx
42
// xx:::::.::::.:::::::xxxxxxxx
43
// :x'::::'::::':::::':xxxxxxxxx.
44
// :xx.::::::::::::' xxxxxxxxxx
45
// :xx: '::::::::' :xxxxxxxxxx.
46
// .xx '::::' 'xxxxxxxxxx.
47
// .xxxx 'xxxxxxxxx.
48
// .xxxx 'xxxxxxxxx.
49
// .xxxxx: xxxxxxxxxx.
50
// .xxxxx:' xxxxxxxxxxx.
51
// .xxxxxx:::. . ..:::_xxxxxxxxxxx:.
52
// .xxxxxxx'' ':::'' ''::xxxxxxxxxxxx.
53
// xxxxxx : '::xxxxxxxxxxxx
54
// :xxxx:' : 'xxxxxxxxxxxx:
55
// .xxxxx : ::xxxxxxxxxxxx
56
// xxxx:' ::xxxxxxxxxxxx
57
// xxxx . ::xxxxxxxxxxxx.
58
// .:xxxxxx : ::xxxxxxxxxxxx::
59
// xxxxxxxx : ::xxxxxxxxxxxxx:
60
// xxxxxxxx : ::xxxxxxxxxxxxx:
61
// ':xxxxxx ' ::xxxxxxxxxxxx:'
62
// .:. xx:. .:xxxxxxxxxxxxx'
63
// ::::::.'xx:. : .:: xxxxxxxxxxx':
64
// .:::::::::::::::.'xxxx. ::::'xxxxxxxx':::.
65
// ::::::::::::::::::.'xxxxx :::::.'.xx.'::::::.
66
// ::::::::::::::::::::.'xxxx:. :::::::.'':::::::::
67
// ':::::::::::::::::::::.'xx:' .'::::::::::::::::::::..
68
// :::::::::::::::::::::.'xx .:: :::::::::::::::::::::::
69
// .:::::::::::::::::::::::. xx .::xxxx :::::::::::::::::::::::
70
// :::::::::::::::::::::::::.'xxx.. .::xxxxxxx ::::::::::::::::::::'
71
// '::::::::::::::::::::::::: xxxxxxxxxxxxxxxxxxxxxxx :::::::::::::::::'
72
// '::::::::::::::::::::::: xxxxxxxxxxxxxxxxxxxxxxx :::::::::::::::'
73
// ':::::::::::::::::::_xxxxxx::'''::xxxxxxxxxx '::::::::::::'
74
// '':.::::::::::' `._'::::::''
75

76     
77 class myButton extends JButton JavaDoc {
78         
79        public myButton() {
80               this.addActionListener(new ActionListener JavaDoc() {
81                 public void actionPerformed(ActionEvent JavaDoc arg0) {
82                     // a8888b.
83
// d888888b.
84
// 8P"YP"Y88
85
// 8|o||o|88
86
// 8' .88
87
// 8`._.' Y8.
88
// d/ `8b.
89
// dP . Y8b.
90
// d8:' " `::88b
91
// d8" 'Y88b
92
// :8P ' :888
93
// 8a. : _a88P
94
// ._/"Yaa_: .| 88P|
95
// jgs \ YP" `| 8P `.
96
// a:f / \.___.d| .'
97
// `--..__)8888P`._.'
98
myButtonActionPerformed(arg0);
99                 }
100             });
101         }
102         
103         /**
104   * A javadoc comment
105          */

106         public void myButtonActionPerformed(ActionEvent JavaDoc evt) {
107             System.out.println("-==-" +
108                "These smiling eyes are just a mirror for the sun.");
109      }
110         
111      @Override JavaDoc
112      @SuppressWarnings JavaDoc("unchecked")
113      public void paint(Graphics JavaDoc arg0) {
114          super.paint(arg0);
115      }
116         
117         
118     }
119     
120     
121 @Deprecated JavaDoc
122 class Doktor implements Serializable JavaDoc {
123 }
124     
125     
126 }
127
128 class Objects {
129 @SuppressWarnings JavaDoc({
130 "unchecked","unused"
131 })
132 static <T> T cast(final Object JavaDoc target) {
133 return (T) target;
134 }
135 }
136
Popular Tags