Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Waria Ahmed
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 50277
80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic