Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New Class file for each JFrame?

Status
Not open for further replies.

Nutthick

MIS
Jan 14, 2004
126
GB
I'm still finding my feet in Java and have com across a problem. I have written a class that checks data. Based on the data, one of two windows needs to popup for clarification. Do I need to create two more class files to allow me to show two different windows, or can they be coded into one?

Hope that makes sense

Thanks
 
You could do it either way.
If each JFrame performs a specific operation, it may make more sense to code each one as a class - thus keeping functionality in a more managble stat.

--------------------------------------------------
Free Database Connection Pooling Software
 
Thanks for the help. I've shuffled the code around and am now using JDialog.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top