hi peepz,
i have a main window which has 5 jtables (rows come out of a mysql db)
on it. if i click on insert new record i open up a new window where i
directly insert a new record into the database. now the jtables should
refresh (get data out of db into model and refresh the jtable). but i
don't find an eventhandler which handles this. the focusGained event on
the frame doesn't work...
any ideas?
thanks for your help.
stef
stef - 23 May 2005 19:28 GMT
further info: it's not possible to call a method from the main window
when i close the second window, because it suggests to make everything
static in the main window.
John McGrath - 23 May 2005 23:59 GMT
> if i click on insert new record i open up a new window where i ...
Is there some reason you do not use a modal dialog?

Signature
Regards,
John McGrath
Stefan Buetler - 24 May 2005 21:34 GMT
it's a school project and we're close to the finish line and i already
implemented the seperate jFrame classes and don't want to change all
the things... next time i'll be cleverer... have you another idea?
thanx for your answer anyway?
greets stef
John McGrath - 24 May 2005 22:04 GMT
> it's a school project and we're close to the finish line and i already
> implemented the seperate jFrame classes and don't want to change all
> the things... next time i'll be cleverer... have you another idea?
Yes. Change the frame to a dialog. That should be the easiest solution.

Signature
Regards,
John McGrath