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( );

}}

[1624 byte] By [vanpersiea] at [2007-11-26 21:13:20]
# 1
> This my code can you correct me?No, because you never acknowledged the help you received the last time you posted a question.Not only that you still haven't learned how to use the "Code" formatting tags even though you where given the information in your last posting.
camickra at 2007-7-10 2:51:00 > top of Java-index,Desktop,Core GUI APIs...