Re: Call static content

2013-08-24 Thread Tom Schindl
This is more a user group question! A node can be shown only in one place. If you want to reuse the same image load the image into javafx.scene.Image and set it to different ImageView-Nodes. Tom On 24.08.13 21:01, Peter Penzov wrote: > I have this code from JavaFX application: > > private static

Call static content

2013-08-24 Thread Peter Penzov
I have this code from JavaFX application: private static final ImageView ncpic; static { ncpic = new ImageView(TabContent.class.getResource("/images/6.jpg").toExternalForm()); } I noticed that I can use this picture only once. When I use it twice the scene where I call it it's emp