Skip to main content

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:FXGraph and Preview no longer in sync
Next Topic:[Best Practices] UI Strucure & Events
Goto Forum:

Current Time: Thu May 24 15:49:17 GMT 2018

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

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

Back to the top