Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / May 2005

Tip: Looking for answers? Try searching our database.

refresh jTable

Thread view: 
stef - 23 May 2005 19:21 GMT
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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.