I have a MyCanvas class that extends JComponent. On this canvas I have drawn a couple of things and has its own main method.
public static void main(String args[]) {
JFrame mainFrame = new JFrame("Graphics demo");
mainFrame.getContentPane().add(new Canvas0_1());
mainFrame.pack();
mainFrame.setVisible(true); }
How do I call to load the canvas from my program's other main method. Is this possible?