Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7704641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:43:35+00:00 2026-05-31T23:43:35+00:00

I am trying to create a text-based game in Java similar to Zork and

  • 0

I am trying to create a text-based game in Java similar to Zork and put it on a web server after I’m done and so I have decided to make the program an applet. My question is this: How do I display and input strings that are normally displayed through System.out.println and System.in? I know that I can create a JPanel and display text through a JTextArea but I want the console to be emulating a terminal like the one I am currently using shown here:

http://farm8.staticflickr.com/7082/6879721298_323e72cc92_z.jpg

Is there any way to add a frame that will display the emulator inside of it or incorporate a console to display the strings outputted by the System.out.println?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T23:43:37+00:00Added an answer on May 31, 2026 at 11:43 pm

    Is there any way to add a frame that will display the emulator inside of it or incorporate a console to display the strings outputted by the System.out.println?

    It is technically possible to redirect the system in, err & out streams, but note that it requires a trusted app. (digitally signed by the developer, user clicks ‘OK’ when prompted at the scary dialog) to do it. OTOH it would be better to design1 a different version of the software for a GUI that puts the output directly into a text area or similar (for output) & accepts it from a text field (for input).

    Another alternative for a sand-boxed app. (very kludgy, but possible), is to log the output to the anonymous logger. Add a log handler to retrieve that output and display it. Using logging does solve app. output, but not user input.

    1. Or rather, the best design would be to have the logic independent of input/output device, and use that logic in both command line & GUI versions.

    I now note the screen-shot says ‘Dragon Console’. How does that differ in functionality from the Windows ‘Command Prompt’?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a text based Clojure game (inspired by Land of Lisp).
I'm trying to create a text-based game on the Windows phone. My thought is
I'm trying to create a layout similar to this: alt text http://img20.imageshack.us/img20/3533/stackn.png Here's the
I'm trying to create a pyramid of circles to my game, looking similar to
I am trying to create a text based menu in Python. Here is the
I am trying to create a spinning wheel with text on it. I have
I am trying to create a very simple (text based for now) email app
I have a problem when trying to create a membership for users based on
I'm trying to create a web-based WYSIWYG editor that consists of a canvas and
I'm trying to create a AJAX based SQL query with Java EE and Servlets.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.