How to make a console Quake ?

sorry for my english, I’m french

well, I’m not new to program games in Java but now I want to furnish more features for my games. The problem is that I want to realize a console as same as quake to modify values of the game.

I try to do it with MS DOS console and X Term console, it runs, i do a bufferedReader, I read it with readLine and I cut it with StringTokenizer, it’s simple

now the problem is, i have a JFrame in fullscreen mode and a implementation of a KeyListener
I want to pressed a command( a string if you want) and draw it in the same time with paint method of my JFrame component
ex:
g.drawString(inputString, 50, 50);

and a problem is also to draw it on the JFrame even if the command line is not finished !

please help me I’m very lost !!!
thx a lot !

How about using a JTextArea which is added to the content pane of the JFrame (or to any other component displayed in the JFrame). Make the text area non-opaque by calling JTextArea.setOpaque(false), then the text will be overlaid on top of whatever component is below, and the component(s) below will be visible through the entered text.

This works best when using a null LayoutManager and positioning the JTextArea manually (with setBounds()) wherever it is supposed to go.

You will probably need to do some extra work to make this user-friendly. For example, without a JScrollPane text can move beyond the visible part of the text area. When using a JScrollPane, make sure that it is set to non-opaque, as well as the JScrollPane’s viewport.

Please do NOT CROSSPOST!!!

And for a answer. See your other post.