S
SeanM
I have done several searches but the problem is I don't even know what
to call what it is I want to do. Forgive me if this is super simple,
I have only been doing Java for about a month.
I have written a client/server application where the client sends
something to the server and the server sends an acknowledgment. I
only show the last thing sent and received. I want to have a history
button though that will open up a JTextArea and show the history. So
far so good but here is where my problem is. I only want the
JTextArea to show a limited size. Once the limit has been reached I
still want to be able to add to it but when I do I wan the stuff at
the beginning to get removed.
So my questions are:
What is something like this called, I know it has a name but for the
life of me I can not remember what it is...for lack of a better name I
have been calling it a revolving text area.
What is the best way to implement such a thing? Does Java have
something built in for this?
Again sorry if this is simple stuff.
Thanks for your time.
SM
to call what it is I want to do. Forgive me if this is super simple,
I have only been doing Java for about a month.
I have written a client/server application where the client sends
something to the server and the server sends an acknowledgment. I
only show the last thing sent and received. I want to have a history
button though that will open up a JTextArea and show the history. So
far so good but here is where my problem is. I only want the
JTextArea to show a limited size. Once the limit has been reached I
still want to be able to add to it but when I do I wan the stuff at
the beginning to get removed.
So my questions are:
What is something like this called, I know it has a name but for the
life of me I can not remember what it is...for lack of a better name I
have been calling it a revolving text area.
What is the best way to implement such a thing? Does Java have
something built in for this?
Again sorry if this is simple stuff.
Thanks for your time.
SM