This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Relative URL for icon (jbuilder specific)  RSS feed

 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!