wrote:
> Hi,
> I try to develop my first graphical interface with java.
> Since I need to use an application with different input windows, I need
> to open these windows deciding with a menu when I need them. I would
> like to know if my approach is corret.
> I open for every windows a new jframe, however, I believe the it is not
> the right way since all the frame are not connected and the do not
> depend from the main frame.
> Any suggestion?
>
You want to have one JFrame and then you can open JDialogs from the
JFrame making them model. When you display a JDialog the first parameter
is the reference to the Calling JFrame.
Look at the JDialog api. You may even be able to use JOptionPane.
Article on JDialogs:
http://java.sun.com/docs/books/tutor...ts/dialog.html
Dialog API:
http://ozark.hendrix.edu/linux/docs/...wt/Dialog.html
JOptionPane API:
http://ozark.hendrix.edu/linux/docs/...ptionPane.html
--
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.phpnet.us
__________________________________________________ ________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)