how do I make this compile?
<p>This is my code snippet:</p>

<pre><code>import java.awt.*;
import java.net.*;
import javax.swing.*;
import java.awt.event.*;

class chatboxServer {
  JFrame fr;
  JPanel p;
  JTextArea ta;
  JButton send;

  chatboxServer() {
    fr=new JFrame("ChatBox_SERVER");
    p=new JPanel();
    ta=new JTextArea();
    ta.setRows(20);
    ta.setColumns(20);
    send=new JButton("send");
    fr.add(p);
    p.add(ta);
    p.add(send);
    fr.setVisible(true);
    fr.setSize(500,500);
    fr.setResizable(false);
    try {                                    // Making server listen to port number 3000
      ServerSocket s=new ServerSocket(3000);
    } catch(Exception exc) {
      JOptionPane.showMessageDialog(new JFrame(),"Cannot Listen :3000");
    }
    try {
      Socket s=null;
      s=ServerSocket.accept();
    } catch(Exception exc)
      JOptionPane.showMessageDialog(new JFrame(),"Accept Failed :3000");
    } 
  }
  public static void main(String args[]) {
    new chatboxServer();
  }
}
</code></pre>

<p>The error that I get is:</p>

<blockquote>
  <p>Non static method cannot referenced from static context.</p>
</blockquote>

<p>Please explain how can I can make this compile?</p>
