import java.awt.Graphics; import javax.swing.JFrame; public class HelloWorld extends JFrame { public void paint(Graphics g) { //this is where we paint g.drawString("Hello World",10,100); } public static void main(String[] args) { //this is called when it is an application JFrame frame = new HelloWorld();//"rtsp://128.122.151.241/sve204/test1.mov"); frame.addWindowListener(new java.awt.event.WindowAdapter() { //for public void windowClosing(java.awt.event.WindowEvent e) { System.exit(0); } }); frame.setTitle("Hello"); frame.setSize(320, 240); frame.setVisible(true); frame.repaint(); } }