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

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -