Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » how to use Url load a image for jface's toolbar?
how to use Url load a image for jface's toolbar? [message #442905] Wed, 15 September 2004 01:35
Eclipse UserFriend
Originally posted by: hitdemo2002.yahoo.com.cn

action is :
class SaveActionT extends Action {
ApplicationWindow window;

public SaveActionT(ApplicationWindow w) {
window = w;
setToolTipText("save");
setImageDescriptor(ImageDescriptor
.createFromURL(Util.newURL(
"file:save.gif")));
}

public void run() {

}

}
load image for toolbar ,but save.gif must at x:\tomcat\webapps\mywebapp,now
i want to put this image at x:\tomcat\webapps\mywebapp\WEB-INF\src,but i
don't know how to change

"setImageDescriptor(ImageDescriptor
.createFromURL(Util.newURL(
"file:save.gif")));"
make save.gif display?
file:save.gif-->change to what??
Previous Topic:TreeViewer setSelection doesn't work on Linux ?
Next Topic:TableTree inside an Eclipse Forms section
Goto Forum:
  


Current Time: Fri Apr 26 13:20:42 GMT 2024

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

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

Back to the top