javafx - Minimize picture size -


i have picture javafx application loaded +30 times chart. use code load , shrink size.

imageview liveperformicon = new imageview(mainapp.class.getresource("/images/untitledwdwd.png").toexternalform());              liveperformicon.setfitheight(100);             liveperformicon.setfitwidth(100);              label.setgraphic(liveperformicon); 

can tell em how can optimize code performance , memory there way save resources during work.

maybe liveperformicon.setcache(true); can solve this?

load image once , use same image instance imageviews. example in imageview javadocs this.


Comments

Popular posts from this blog

php - Magento - Deleted Base url key -

javascript - Tooltipster plugin not firing jquery function when button or any click even occur -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -