I have a JtextArea(in a scrollPane) in which i have 20 lines of text.
The display capacity of the textArea is 10 lines.
I need to move the 20 lines of text up by one page leaving a blank screen to type if user press enter.So if user scrolls up he will be able to see the 20 lines.
The functionality is similar to clear command in linux which will move all the contents up by one page.
How can i achieve this in JtextArea??
Please help.