import javax.swing.JFrame; /** * Displays a window that shows 25 copies of the string "Java!" in * random colors, fonts, and positions. The content of the window * is an object of type RandomStringsPanel. */ public class RandomStringsApp { public static void main(String[] args) { JFrame window = new JFrame("Random Strings"); RandomStringsPanel content = new RandomStringsPanel(); window.setContentPane(content); window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); window.setLocation(100,75); window.setSize(300,240); window.setVisible(true); } }