Well i decided to make something like a mud and the practices i may use in other places too, but i have one problem..
i don’t know how to make it to where a user can type in the actual box instead of a Textfield
i’d like to explain better but i can’t really think how
If you’re talking about a MUD client and entering the text in the same window as the output, sounds like you’d run into the same problem as when you play a MUD via bare telnet in a terminal – which is that the text you’re entering scrolls away as you’re typing it so you can’t see to edit, etc. I think having a separate field where you can edit if necessary before entering it is a good thing.
You could just focus on the server instead and let users (admins too) connect via one of the MUD clients out there like zMUD. I may be interpreting your question wrong, though. There’s a ton of stuff involved in making a MUD, so most people don’t get a viable game up and running when starting from scratch – but you can still learn a lot from the effort, regardless. I did that myself but just the server – never did anything with a client program or GUI interface.
Editing to add, after the OP’s comment response:
Take a look at this Sun tutorial to see if it helps:
http://java.sun.com/docs/books/tutorial/uiswing/components/textarea.html
The first example uses a separate field for input, but scroll down to the “TextAreaDemo” example which may show what you need.