The Artima Developer Community
Sponsored Link

Programming in Scala Forum
Spreadsheet example: changes already propagated

1 reply on 1 page. Most recent reply: Oct 20, 2008 4:04 AM by Rob Dickens

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Rob Dickens

Posts: 15
Nickname: robcd
Registered: Feb, 2008

Spreadsheet example: changes already propagated Posted: Oct 19, 2008 1:00 PM
Reply to this message Reply
Advertisement
ยง33.7 (v4) describes how to get dependent cells to update when a change is made. However, I'm finding that this already happens!

Anyone else find this? Am using 2.7.2-rc3.

Rob


Rob Dickens

Posts: 15
Nickname: robcd
Registered: Feb, 2008

Re: Spreadsheet example: changes already propagated Posted: Oct 20, 2008 4:04 AM
Reply to this message Reply
Looks like the Table's rendererComponent method, which is overridden (on page 680), gets called for every visible cell, every time I so much as move the focus to or from the app.

Since the example does not count on this method being called quite so often, perhaps scala.swing has regressed since the example was first written.

Rob

Flat View: This topic has 1 reply on 1 page
Topic: Noob: Using -> Operator with Map factory method Previous Topic   Next Topic Topic: Invalid PDF - Just purchased book

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use