Thanks a lot Kevin :) it worked finally
Type: Posts; User: vivek rajput
Thanks a lot Kevin :) it worked finally
thanks. but its now showing one error :
non-static variable this cannot be referenced from a static context
jb.addActionListener(this);
import javax.swing.*;
import java.awt.event.*;
import javax.swing.event.*;
class GUI2 extends JFrame implements ActionListener
{
public static void main(String s[])
{
JFrame jf=new...