posted 21 years ago
I am using awt to display my files. I need to format the lines i need to display, so I am using ScrollPane to display the lines and not the text area.
The code is below. I am setting the dimension of the scrollpane using setDimension, in the PaneWriter class.
As I said before, I could display the files only for the dimension I have set. I need to set the scoll pane dimension according to the file size.