Icons on Buttons via FXGraph [message #1096300] |
Wed, 28 August 2013 07:57 |
Daniel Zimmermann Messages: 81 Registered: July 2009 |
Member |
|
|
Hi!
This is another one, I can't fully understand and I don't think the problem is not one of e(fx)clipse:
Originally I wanted to add in icon to the Graphics node here, but I couldn't figure it out. I tried the following
Button id buttonDownload {
^id : "buttonDownload",
graphic : ImageView {
image : Image {
url : location "../img/fugue/download-cloud.png"
}
},
tooltip : Tooltip {
text : rstring "nav.devices.button.download.tooltip"
}
}
The preview renders the images in a correct way, but when I try to start the app there is an exception, about the Base Location was not set... I guess I'm missing something JavaFX specific. Should I set something on the initialize of the controler? Or on the FXMLLoader used for the UI?
Currently I have a woraround setting the ImaveView on the Graphic node during the initialization of the Controller, like I do it with the buttons tooltip translation.
Is there a better way for that?
Thanks for your help,
Daniel
|
|
|
Powered by
FUDForum. Page generated in 0.03937 seconds