It is basically a windows, that contains other visual objects.
Same as that of the applet we need to run this frame...........
java is from sun and .net is from microsoft, java is a language + runtime and .net is run frame that supports multiple language.
first compile java program using "javac" then run frame using "appletviewer". e.x. = appletviewer filename.java
A set of classes that helps you with some particular task.
A top-level window (i.e., a window that is not contained inside another window) is called a frame in Java. The AWT library has a class, called Frame, for this top level. The Swing version of this class is called JFrame and extends the Frame class. The JFrame is one of the few Swing components that is not painted on a canvas. Thus, the decorations (buttons, title bar, icons, and so on) are drawn by the user's windowing system, not by Swing
There are classes in java.awt Menu and MenuItem which are used for the creation of menus and they can be put inside Frame.
If the "add" is part of the Java Collections API then calling c.add(o) adds an object o to the given collection (list or set). Likewise, the AWT API has add methods to add components to a Frame or Panel.
Swing Components are elements like a Frame, Button, Panel etc that can be used as part of Java Swings to create User Interfaces.
The best way, in my opinion, is to use the class JFrame in the swing package. Simply import java.swing.JFrame and create a new JFrame with the Frame's title as the sole parameter. You will also need to setVisible to true.
It's a royal pain to create frame based applications. JAR files can also be more difficult to setup than say a C# package.
//in button clickJFrame2 j1=new Jframe2();JFrame2.setvisible(true);
java