Skip to main content



      Home
Home » Eclipse Projects » e(fx)clipse » How to set icon in a dialog extension
How to set icon in a dialog extension [message #1219807] Thu, 05 December 2013 15:48 Go to next message
Eclipse UserFriend
I am using the org.eclipse.fx.ui.dialogs package to provide dialog functionality in my application. I needed a dialog that would allow for the display of a list of strings (error messages), so I extended the TitleAreaDialog. It works well, except I wanted to be able to show an error icon in the title area. I'd like to point my class to use the error icon that's included in org.eclipse.fx.ui.dialogs, but I don't know how to do it. I don't know how to form the URL that the constructor wants. Any suggestions?

[Updated on: Thu, 05 December 2013 15:49] by Moderator

Re: How to set icon in dialog [message #1220040 is a reply to message #1219807] Mon, 09 December 2013 04:42 Go to previous message
Eclipse UserFriend
Is the question how to reuse the icons provided by the dialog bundle?

You can of course construct an URL towards them but they are internals
of the bundle and might change anytime! Instead of makeing direct use of
them I'd copy them to my own bundle (they are coming from the KDE
Oxygene L&F).

Tom

On 05.12.13 21:48, Joseph Gagnon wrote:
> I am using the org.eclipse.fx.ui.dialogs package to provide dialog
> functionality in my application. I needed a dialog that would allow for
> the display of a list of strings (error messages), so I extended the
> TitleAreaDialog. It works well, except I wanted to be able to show an
> error icon in the title area. I'd like to point my class to use the
> error icon that's included in org.eclipse.fx.ui.dialogs, but I don't
> know how to do it. I don't know how to form the URL that the constructor
> wants. Any suggestions?
Previous Topic:Using RBAC Pattern with e(fx)clipse
Next Topic:Install problem
Goto Forum:
  


Current Time: Wed Jul 16 00:42:38 EDT 2025

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

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

Back to the top