permaculture playing cards*
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
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: 36497
    
  16
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???
 
Similar Threads
Client/Server Socket
How to structure a program
Using a Char as an operator in a sum
Java call to C++
EJB3 and Domain-GUI binding