import java.awt.Color; import javax.swing.JFrame; /** * DriverFortune creates PanelFortune which generates random fortunes * * @author yourname * @version (2017) */ public class DriverFortune { public static void main(String[] args) { JFrame frame = new JFrame("Fortune Teller"); frame.setSize(400, 400); frame.setLocation(200, 100); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setContentPane(new PanelFortune()); frame.setVisible(true); } }