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 Zimmermann
Messages: 70
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
Previous Topic:FXGraph and Preview no longer in sync
Next Topic:Build e(fx)clipse from Sources
Goto Forum:
  


Current Time: Sun Oct 26 04:42:17 GMT 2014

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

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