import javax.swing.JApplet; import javax.swing.JFrame; public class RBTreeAnimation extends JApplet { public RBTreeAnimation() { RBTree tree = new RBTree(); add(new RBTreeView(tree)); } public static void main(String[] args) { JFrame frame = new JFrame("RBTreeAnimation"); JApplet applet = new RBTreeAnimation(); frame.add(applet); frame.setSize(500, 300); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setLocationRelativeTo(null); frame.setVisible(true); } }