Here is my question, I have some experience with writing regular programs in the command prompt, I know very little about swing, and understand how GUI´s work, but how will the code I have made, work in a GUI or something like that.
Printable View
Here is my question, I have some experience with writing regular programs in the command prompt, I know very little about swing, and understand how GUI´s work, but how will the code I have made, work in a GUI or something like that.
See the following for tutorials on how to use java Swing.
Trail: Creating a GUI With JFC/Swing (The Java™ Tutorials)
This should just be an extension of writing code for command line, much of the logic and data models will remain the same, just how it is presented to the user.
I know a little about swing, I have some books on it even, but will I be able to use the code I do now in GUI's?
If the code is highly intertwined with the command line I/O, then it will take some work. If the code was written making use of classes, interfaces, and object oriented concepts (in other words written to be reusable), then it will be easier. Why not try and write a small command line application, then port it to a Swing GUI - this will give you an idea of what is involved, will be a learning experience, and open up the flow of ideas as to how you could design this small app regardless of the user interface.
A small command line application? Like a simple guessing game?
Ok, I will change it.