import java.awt.*; import javax.swing.*; public class ClockTest extends JFrame{ public ClockTest() { setTitle("Prueba de Clock"); Container contentPane= getContentPane(); Clock clock = new Clock(); contentPane.add("Center", clock); } public static void main(String[] args) { JFrame frame = new ClockTest(); frame.setSize(300, 200); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.show(); } }