Home TechnologyProgrammingJava Subscribe to RSS

Who We Run Java Program When Extends Frame?

Answer Question

1 Answer - Sort by: Date | Rating


    here u go with a simple java app extending the JFrame


    public class FrameDemo extends javax.swing.JFrame {


    FrameDemo() {

    super("JFrame Demo");


    Container cp = getContentPane();

    cp.add(new javax.swing.jlabel is Kool!"));


    setSize(200, 300);

    setVisible(true);


    }


    public static void main (String args[]) {

    new FrameDemo(); 

    }

    }



    $> javac FrameDemo.java

    $> java FrameDemo

     


    if you have any Queries msg me.


    hope it helps

    1 0

    Rinav 

    answered 10 months ago

      More

         
         

        Ask a Question via Twitter

        Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

        Blurtit Store

        Get T-shirts, hoodies, caps and more at the Blurtit store

        Blurtit International