java - Filler not updating properly -


so when open document, see:

enter image description here

here first , first part of second page (the rest of empty) of document. except content in green rectangle (which managed box layout), 100% equal.

after visible elements (magenta stuff, first jtextarea (bigger others) doesn't matter regarding problem), both have box.filler added them, push content top of page.

so when open document item 38. should high others, reason isn't.

i did't call repaint , validate on both jscrollpane , it's viewport conatins both pages right after opening of document.

also, when add or remove element anywhere in document, number 38 comes it's senses , resizes it's proper height. did call sam repaints , validates when happens have @ opening of document.

chageshape() method called on filler same sizes had trick, seems dirty solution...

but why doesn't right away?

edit: after more testing, have discovered filler has been bad bad boy here. it's hard me understand why 1 on first page updates (even fewer elements on page), 1 on second page refuses to, though there no differences in how 2 pages coded (two instances of same object) , repaint , validate called container superior both.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -