QUOTE(nick2price @ 22 Aug, 2008 - 02:58 PM)

You said in your first posting on this topic that you didnt want to use a JDialog for your son classes as you wanted to carry out mathematical operations? Why would a JDiaolog stop you from doing this? I have just created a whole JDBC application with only 2 JFrame classes (which is 1 more than i wanted), and 23 JDialog classes. This way you have an easy base on which to create a relationship between your JFrame and dialogs. Its bad practice to have multiple JFrames in one application. Anyway, really, your mathematical operations should be seperated from your gui.
I really appreciate your time you take to help me sort out this issue
JFrame and J-dialog is not a bad idea although the example in Sun.java.com tutorial of how to create a dialog gives you errors when you try to follow that example thats why i didn't bother with dialogs
until i have mastered programing, dialogs is the next thing that i am going to implement in my project
i.e try use this tutorial set by Sun
JOptionPane.showMessageDialog(frame, "Eggs are not supposed to be green.");
you get an error somewhere saying does not recognise "frame,"
when you have set action performed or mouse clicked assigned to a button to display a dialogframe
ill see simpler ways to make this work