Search

java Simple Swing programe

import java.awt.*; 
import javax.swing.*; 
public class myswing1 extends Jframe { 
    public static void main(String arg[]) { 
        Jframe jf1=new Jframe("NIBM"); 
        Jbutton jb1=new Jbutton("OK"); 
        jf1.add(jb1); 
        jf1.setsize(200,300); 
        jf1.setvisible(true); 
    } 
}

No comments:

Post a Comment

Java Interfaces vs. Abstract class

Summary of the similarities and differences between the Interfaces and Abstract class Abstract class Interface Has a constructor Yes No An i...