I have a program that figures out what the total cost for gas is on trip. I now have another piece made where you enter the trip data to save it to a file. How do I make the main program call this new window so the user can enter and save the trip data?
arcticman452
0
Newbie Poster
Recommended Answers
Jump to PostDoes your class which is going to be imported belong to a package? If so, you need to use import in order to use the class. If it does not, you simply place the class's .java or .class file in the same folder of the caller class file.
Jump to PostYou are talking about GUI then. Instead of popping up a new window each request, how about repaint your current window interface (frame) with a new panel? So your application would have a frame as the main display (window), any component inside of the frame can be removed/added for any …
All 6 Replies
Taywin
312
Posting Virtuoso
arcticman452
0
Newbie Poster
Taywin
312
Posting Virtuoso
arcticman452
0
Newbie Poster
Taywin
312
Posting Virtuoso
arcticman452
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.