Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Relative URL for icon (jbuilder specific)

 
Tom Boyce
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to convert files written in Visual Cafe to JBuilder. The files now compile, but I am unable to see the buttons with a realitive URL image. They do show when the appplication is run, but not in design mode.
Here is the code:
OKJButoon.setIcon(new IMageIcon(new java.net.url("path/image.jpg")));
files are in another directory on the c:/drive, but it's important the reference be relative.
I am using JBuilderX 10.0
Please help!
Tom Boyce
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!