Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Icons on Buttons via FXGraph
Icons on Buttons via FXGraph [message #1096300] Wed, 28 August 2013 07:57
Daniel Zimmermann is currently offline Daniel ZimmermannFriend
Messages: 81
Registered: July 2009

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 ""

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,
Previous Topic:Re: application doesn't start anymore
Next Topic:Build e(fx)clipse from Sources
Goto Forum:

Current Time: Fri Oct 21 09:44:16 GMT 2016

Powered by FUDForum. Page generated in 0.60133 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software