1 9 10 package org.netbeans.test.editor.formatting; 11 12 import java.awt.Graphics ; 13 import java.awt.event.ActionEvent ; 14 import java.awt.event.ActionListener ; 15 import java.io.Serializable ; 16 import java.util.ArrayList ; 17 import java.util.List ; 18 import javax.swing.JButton ; 19 20 24 public class testReformat2<E> extends ArrayList <E> implements List <E> { 25 26 27 public testReformat2() { 28 } 29 30 76 77 class myButton extends JButton { 78 79 public myButton() { 80 this.addActionListener(new ActionListener () { 81 public void actionPerformed(ActionEvent arg0) { 82 myButtonActionPerformed(arg0); 99 } 100 }); 101 } 102 103 106 public void myButtonActionPerformed(ActionEvent evt) { 107 System.out.println("-==-" + 108 "These smiling eyes are just a mirror for the sun."); 109 } 110 111 @Override 112 @SuppressWarnings ("unchecked") 113 public void paint(Graphics arg0) { 114 super.paint(arg0); 115 } 116 117 118 } 119 120 121 @Deprecated 122 class Doktor implements Serializable { 123 } 124 125 126 } 127 128 class Objects { 129 @SuppressWarnings ({ 130 "unchecked","unused" 131 }) 132 static <T> T cast(final Object target) { 133 return (T) target; 134 } 135 } 136 | Popular Tags |