import java.awt.Dimension; import javax.swing.JPanel; /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author Client */ public class Panel extends JPanel { private Deck deck1; public Panel() { setSize(600, 600); Dimension d = new Dimension(600, 600); setPreferredSize(d); deck1 = new Deck(); deck1.setBounds(10, 10, 75, 100); add(deck1); deck1.repaint(); } }