public void actionPerformed (ActionEvent e)
{
MenuItem choice = (MenuItem)e.get Source();
if (choice == Display)
display();
Please can someone help we've tried tons of solutions but none seem to work.
We've constructed a primitive GUI with input text such as name,address etc and are now trying to display the results of our file save to the screen. We've tried setText() & getText() but to no avail-just get about two pages of null exception in red on the blueJ terminal!!!!!! What code could you put in to display the results on screen upon pressing the menu item "Display" from the JMenu?
Thanks NIX
{
MenuItem choice = (MenuItem)e.get Source();
if (choice == Display)
display();
Please can someone help we've tried tons of solutions but none seem to work.
We've constructed a primitive GUI with input text such as name,address etc and are now trying to display the results of our file save to the screen. We've tried setText() & getText() but to no avail-just get about two pages of null exception in red on the blueJ terminal!!!!!! What code could you put in to display the results on screen upon pressing the menu item "Display" from the JMenu?
Thanks NIX
Comment