Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

AWT List + ScrollPane ???  RSS feed

 
Yaroslav Chinskiy
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to write an AWT Table.
The table will be placed in a scrolling pane and updated dynamically.

I can not figure out how to send updates to the scrolling pane. The only solution I got so far is to validate the pane after each update.

I am sure there must be better way.

I tried to use List and update it on a ticker every 100 millsec. The scrolling pane was updating automatically.

Do you know the mechanics of AWT events?
How can I make the SP listen for the updates and resize itself accordingly?

Thanks a lot.
 
Nigel Browne
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should be looking at updating your Table rather than your ScrollPane. How do you communicate with the table's model ? Maybe if you post some code we can help you more.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!