Survey
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project
import javax.swing.*;
First, we import the
public class SimpleFrame extends JFrame
Swing libraries (notice
{
itâs javax.swing) to
public SimpleFrame()
support our work.
{
setBounds(50,100,400,150);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setVisible(true);
setTitle("This is a test frame!");
}
public static void main(String[] args)
{
new SimpleFrame();
}
}
//from http://cs.guc.edu.eg/courses/onlinetutorial/gui.html