// twoEighteen// Mark Sanborn// CS131// 9-15-2006// An application that displays a business card of my own design. // with both graphics and text.import javax.swing.*;import java.awt.*;public class twoEighteen{ public static void main (String[] args) { JFrame frame = new JFrame ("Business Card"); frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); JPanel primary = new JPanel(); primary.setBackground (Color.blue); primary.setPreferredSize (new Dimension(500, 200)); JLabel label1 = new JLabel ("Mark Sanborn"); JLabel label2 = new JLabel ("167 Franich Ln"); JLabel label3 = new JLabel ("Whitehall, MT"); JLabel label4 = new JLabel ("59759"); primary.add(label1); primary.add(label2); primary.add(label3); primary.add(label4); frame.getContentPane().add(primary); frame.pack(); frame.setVisible(true); }}