Results 1 to 8 of 8
Thread: Gui
- 02-05-2009, 05:11 PM #1
Member
- Join Date
- Dec 2008
- Posts
- 39
- Rep Power
- 0
- 02-05-2009, 11:33 PM #2
You can't just "convert it" like that into a GUI, you have to rewrite alot of stuff like if you currently have ASCII menus in a command prompt application you have to design your gui, but you can use code you already have to put in functions, its hard to tell because you didn't give any information. I would completely rewrite it if I were you using your old one as a reference to improve code etc. and to get the GUI.
Tell me if you want a cool Java logo avatar like mine and I'll make you one.
- 02-05-2009, 11:55 PM #3
Member
- Join Date
- Dec 2008
- Posts
- 39
- Rep Power
- 0
more detail
I am taking a interface class that i wrote for a program that asks a user for a row and column size, as well as if they want to modify or exit the program. The program displays a grid with a character in the spot where the user enters a row and column.
I have to take the interfase class that is already written and change it to a GUI. Im not sure how to ask the user through the GUI for the row and column, etc.
Im not sure how to write my existing code as a GUI, so far I have a textbased Box with a "enter" button and the bottom for the user to select after they enter their input but i know how to display the questions for the user on the screen.
I dont know if I am making any sense to anyone but hopefully some can help. Thanks a lot.
-
Unfortunately there are no shortcuts here, so that no one will be able to give you a simple recipe for you to follow. What you should do if you haven't done so already is to go through the Sun Swing tutorials and learn how to create GUI programs. There's a lot to learn here, but it is all ultimately worthwhile. Best of luck.
Pete
- 02-07-2009, 02:08 AM #5
If you don't want to learn GUI swing code, get netbeans IDE 6.5. You can just drag and drop elements, pretty easy.
Tell me if you want a cool Java logo avatar like mine and I'll make you one.
-
- 02-07-2009, 05:09 AM #7
Well if you look at the generated code and don't understand what is going on or can't manually code a few things in (I was assuming enough knowledge to code the Event Methods), then you need to learn more..
Tell me if you want a cool Java logo avatar like mine and I'll make you one.
- 02-07-2009, 07:04 AM #8
Senior Member
- Join Date
- Jan 2009
- Posts
- 671
- Rep Power
- 5


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks