Re: Combinig 2 GUI's to compile and run at the same time.




"Willliwill" <u33694@uwe> wrote in message news:713e985c577fe@xxxxxx
Yes this is homework, having cleared that up what I want to do is compile,
and run these 2 programs simultaneously. Any help would be appreciated.

*/
import java.awt.*; /* Import statements */
import javax.swing.*;
import java.awt.event.*;
class Assignmentweek2

{
public static void main(String args[])

{
Interest i=new Interest();
i.init();
i.setVisible(true);
}
}
class Interest extends JFrame implements ActionListener
{
<snip>
}

public static void main(String[] args)
{
new Week3();
}

public Week3()
{
<snip>
}

New class Both.java:
public static void main(String[] args)
{
Week3 w3 = new Week3();
Interest i=new Interest();
i.init();
i.setVisible(true);
}


--
Fred L. Kleinschmidt


.



Relevant Pages