This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes best way to switch from a text based program to a GUI??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "best way to switch from a text based program to a GUI???" Watch "best way to switch from a text based program to a GUI???" New topic
Author

best way to switch from a text based program to a GUI???

Waria Ahmed
Ranch Hand

Joined: Jul 09, 2008
Posts: 56
Hi there,

I currently have a text based program with arrays, and i have designed a GUI seperately with no information in it, or any classes linking.

What would the best way of making the switch from a text based program to a GUI?

Can it be done, or would i have to recreate my program from my GUI program that i have created?

Thanks very much in advance.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 43423
    
  32
You use all the controls in your GUI to invoke methods in the original classes.
Separate model which is the original classes, view which is the displayed GUI, and control which includes listeners on the Buttons.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: best way to switch from a text based program to a GUI???
 
It's not a secret anymore!