can you correct me?
Hi guys
when my program go under compilation Iget an error say:
non-static variable this cannot be referenced from a static context
This mycode can you correct me?
import java.awt .*;
import javax.swing.*;
import java.awt.event.ActionListener. *;
abstract public class sanna extends JFrame implements java.awt.event.ActionListener {
abstract class anna extends sanna{
public anna () {
setSize(500,500);
Container contentPane= getContentPane();
JButton ok=new JButton( "return");
JButton enter=new JButton( "search");
ok.setBackground(Color.pink);
ok.setForeground(Color.white);
JTextArea frame=new JTextArea(""+"\t" );
enter.setMaximumSize(new Dimension(100,
900));
enter.setForeground(Color.blue);
contentPane.setBackground( Color.blue);
for(int i=0;i<10;i++){
JButton rami=new JButton( "" +i+"\t" );
contentPane.add(rami);
rami.setBackground(Color.blue);}
contentPane.add(ok);
contentPane.add(frame,null);
JPanel panel=new JPanel(new GridLayout(1 ,100));
contentPane.setLayout(new FlowLayout( ));
contentPane.add(panel);
JTextArea write=new JTextArea();
panel.add(write,null);
panel.setBackground( Color.white );
panel.add(enter, BorderLayout.PAGE_START);
panel.add(ok, BorderLayout .PAGE_START);
panel.add(frame, BorderLayout .PAGE_START);
Color red=new Color(50,50,50);
setVisible(true);}}
public static void main(String [] args){
anna dim=new anna( );
}}

