How to use JFrame in Java
//Using JFrame in Java
import javax.swing.JFrame;
public class myWindow extends JFrame
{
public static void main(String args[]
{
new myWindow();
}
public myWindow()
{
display();
}
void display()
{
setBounds(x1,y1,x2,y2);
setVisible(true);
}
}
No comments:
Post a Comment