answersLogoWhite

0


Best Answer

It depends on how complicated you'd like it to be. I would suggest you begin with a simple java text adventure without GUI components, and then convert it into a GUI when you've got a good feel for the program.

This is a very broad question, and you can really create a text adventure GUI via any means you can possibly imagine. A very basic GUI could consist of several JButtons (four for moving around, one for looking around the room for objects, one for looking in inventory, etc.) and possibly a JTextField and JTextArea to analyze player-written commands and to display a log of the program output. A basic Grid or Flow Layout is probably the easiest layout to start with, and you can arrange the components in any way you like. Once you have your layout, you can add actionListeners to each component to perform each command that the player initially had to type out in your original program.

It should be pretty straightforward from there. Good luck!

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you make a Java Text Adventure GUI?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is java GUI?

GUI means Graphical User Interface; it refers to any visible elements that are commonly used to show content to the user: the windows, buttons, text-boxes (areas to write text), etc. Ex: Java AWT, Java Swings, JSP etc


How do you make a GUI on roblox?

To make a gui use insert a gui thing into the starter gui service area. You then insert a frame or text box to that. If you want to make a text button (like reset) you insert a text button and insert a free model or make your own script.


What is the meaning of the word GUI in java?

Graphical User Interface http://en.wikipedia.org/wiki/Graphical_user_interface (there is no special meaning in Java, "GUI" is universally used)


What is awt in java explain its features?

awt contains all the graphical features of java, including many different elements to create an acceptable and usable GUI for applications easily. such as buttons, sliders and text areas.


What three objects are necessary to create a GUI in Java?

A computer, keyboard and Java compiler.


What is the latest GUI for java?

LiL JOE JOE


Is GUI better in Java or C plus plus?

Neither Java nor C++ have a GUI as such -- the GUI is not part of the language specification. But comparing the GUIs for an IDE intended for Java with that of an IDE intended for C++ is hardly going to tell you which is better, since they are intended for completely different purposes. You might as well compare the GUI provided with Adobe PaintShop Pro against the GUI for Microsoft Word for all the good it does.


What is meant bu GUI in Java?

GUI stands for Graphical User Interface. The web browser in which you are viewing this website too can be considered a GUI to know more abt java i found out this amazing channel on youtube. its called as SLIDENEARD. Its a channel dedicated to java programming issues. i hope this helps your purpose.


What is java joptionpane?

Java's jOptionPane from the javax.swing library is a GUI element for, essentially, an option dialogue box.


What is java gui and examples?

A Graphical User Interface (GUI) in Java can be created with libraries like java.awt javax.swing or javafx. I've ordered them from oldest to newest. Start by learning about swing and go to javafx.


How do you learn java GUI programming please recommend any good book or tutorials for absolute beginner?

A very understandable book for beginners, which also explaines about Java GUI programming is: Sams Teach Yourself Java in 24 hours by Rogers Cadenhead.


Is there a program that can graphically design a GUI for Java so you don't have to use an IDE?

Typically you can use a "GUI builder" as part of an IDE.