wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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: 38107
    
  22
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: best way to switch from a text based program to a GUI???
 
Similar Threads
Client/Server Socket
EJB3 and Domain-GUI binding
How to structure a program
Java call to C++
Using a Char as an operator in a sum