0

Possible Duplicate:
create java console inside the panel

So, I have a simple program that only consists of input, computations and output. Instead of displaying the prompts, computations and results in the command line (output) of the IDE, I was hoping to embed it on another program. Maybe on a GUI item, like a text area or anything that pops up.

Are there any GUI elements that are suited for this purpose? Thanks!

Community
  • 1
  • 1
gerky
  • 6,267
  • 11
  • 55
  • 82

1 Answers1

1

you can try using Java Swing which will help you build the UI in simple drag and drop

robobooga
  • 513
  • 6
  • 19
  • thanks, are there any particular containers suitable for this? – gerky Feb 11 '11 at 07:03
  • depends on what you want to output. For example if you only have simple calculations, you can use only jTextfield to accept input, and labels to show output. – robobooga Feb 11 '11 at 07:06
  • and all of that could be put in a jFrame or jPanel? maybe – robobooga Feb 11 '11 at 07:07
  • i was hoping to get the same feel as the console. An exact console, but in a GUI, like a big textarea where all inputs and outputs take place. Not sure if there is actually such a thing. – gerky Feb 11 '11 at 07:20