I tried it but at the compile time it throwed IllegalArgumentException.
my code is....
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
public class cards extends JFrame
{...