Construct the main program super(title); setLayout(new FlowLayout()); add(new PopupContainer( "Hello, and welcome to the world of Java")); pack(); setVisible(true);
super(title); setLayout(new FlowLayout()); add(new PopupContainer( "Hello, and welcome to the world of Java")); pack(); setVisible(true);
"main" method - for testing. new PopupDemo("Hello").setVisible(true);
new PopupDemo("Hello").setVisible(true);