year on anonymous class:
import javax.swing .*;
import java.awt.event .*;
import java.awt .*;
public class ClasseAnonima
{JFrame f = new JFrame ("Example anonymous class");
JButton b1 = new JButton (" Laws ");
JTextArea t1 = new JTextArea ();
public ClasseAnonima () {
        f.setVisible(true);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setSize(300,300);
        f.add(BorderLayout.CENTER,t1);         f.add(BorderLayout.SOUTH,b1);
        b1.addActionListener(new ActionListener(){
            public void actionPerformed(ActionEvent e){                String t2;                 t1.getText t2 = (); & # 160; System.out.println ("The text is typed:" + t2); ;} ;}); } public static void main (String [] args) {
ClasseAnonima ClasseAnonima c = new ();}
year on Sqlite
0 comments:
Post a Comment