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.
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
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?
Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
Ok, I will change it.