Skip to content

Tag: imageview

Image Picked from Gallery ImageView Disappeard

I have a tabLayout with ImageView and when I Pick A image from the gallery and display it to Imageview then when I close the app the selected image is gone then I need to pick an image again. And I know this one looks the same as my question but still not working saving image picked from gallery for

JavaFX Image (class) and ImageView with a URL

I know how to use Image with a url there was a good example here https://stackoverflow.com/a/24934324/7159163 However, when I input a URL into the string it doesn’t work although the Javadocs say if it not a URL it will try to find the file. But it is a URL and its just not displaying. All that has been…

setImageResource() with attrs value

I’m trying to put an image to my ImageView, with a custom attribute defined by me, I’m doing it this way: Attrs: ImageView Attrs: Than in my View: And set the image to the ImageView with: But nothing appears, I’ve tried also with: And: UPDATE: I’ve already tried to parse attribute with…

Calling a method through from another controller JavaFx

RootLayoutControl.java MainApp.java ImageViewController.java Creating an image gallery, where if I call the method, handleOpen() in RootLayoutController It’ll call method, createImageView() in ImageViewController To pass the variable file to it, any suggestions on how do I do it? Answer First, the creat…