What is a non-GUI class doing invoking a dialogue? You should adhere to the MVC principle. Maybe if you explain what the idea behind the dialogue and the middle-man class is, we can give you some advice.
The mind is a strange and wonderful thing. I'm not sure that it will ever be able to figure itself out, everything else, maybe. From the atom to the universe, everything, except itself.
Joined: Mar 30, 2012
I appreciate the response Stephan.
I am currently in school earning a CS degree, and I have yet to even hear of MVC. I had an intro to OO course last year that used Java, and I've got one more OO course that uses C++ in the Spring. Perhaps MVC is covered in that course.
I am trying to learn Java so I'll have a skill when I leave school so that I can actually DO something.
Anyway, I'll read up on MVC and that may make this question I posted moot.
I suggest you go through the documentation for JOptionPane and its methods. I think you will find that in most cases the first parameter sets the location on screen where the option pane dialogue appears. You will probably also find a Java Tutorials link, which I recommend you follow. It will help you a lot