1

I have a very large array (0-64k) of memory values that I need to print to the window but the update time for this is very large.

Is it possible to update(print) the lines as the user scrolls?

I'm trying to avoid using custom buttons to call an update method and would like to use the built in scroll bars.

ps. I haven't used Swing much because my school provided a basic version so I apologize if I missed an easy way to accomplish this. I dont think any code I have at the moment would be helpful but let me know.

RyanS
  • 3,964
  • 3
  • 23
  • 37

1 Answers1

2

@ignis is right about JTable and JList; both views use the flyweight pattern for rendering. You'll also want to profile your code to see where any delays arise.

Community
  • 1
  • 1
trashgod
  • 203,806
  • 29
  • 246
  • 1,045