Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2006

Tip: Looking for answers? Try searching our database.

images in java applet not showing

Thread view: 
Navodit - 15 Jun 2006 16:59 GMT
I am working on a collaborative whiteboard application. So I have this piece
of code which is supposed to be using 2 jar files. I have been told that the
jar files (whiteboard.jar and collab.jar) work fine. However when the
whiteboard is displayed then the images of the icons (New, Close, draw line,
draw arrow etc) dont show up even though the whiteboard works perfectly
fine. Even the tooltip text can be seen when the mouse is placed over the
icons and I can perform all the functions required of the whiteboard. My
question is:

What could be the reason for the images of the icons not showing up ?

The images are not included in the jar file but are in a folder called gifs
which is in the same folder as the jar files. I tried including the images
in the jar file but that still did not work !
The code that I use (in a .asp file) to invoke the applet is as follows:

<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="600"
height="400" align="baseline">
<PARAM NAME="code"
VALUE="com.inMeeting.client.whiteboard.WhiteBoardApplet.class">
<PARAM NAME="archive" VALUE="collab.jar, whiteboard.jar">
<PARAM NAME="-Doracle.jdbc.Trace" VALUE="true">
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.2.2">
<PARAM NAME="scriptable" VALUE="true">
<PARAM NAME="MAYSCRIPT" VALUE="true">
<PARAM NAME="username" VALUE="<%=Request.QueryString.Item("username")%>">
<PARAM NAME="meetID" VALUE="<%=Request.QueryString.Item("meetID")%>">
<COMMENT>
 <!--<EMBED type="application/x-java-applet;version=1.3"
  width="10" height="50" align="baseline"%
  pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html">
  code="com.inMeeting.client.whiteboard.WhiteBoardApplet.class"
  archive="collab.jar, whiteboard.jar"
  MAYSCRIPT="true"
  username="<%=Request.QueryString.Item("username")%>"
  meetID="<%=Request.QueryString.Item("meetID")%>"
 <NOEMBED>  -->
</COMMENT>
 No Java 2 SDK, Standard Edition v 1.3 support for APPLET!!
</NOEMBED>
</EMBED>
</OBJECT>

Can anyone suggest why this could be happening ? Or take a educated guess as
to where I should look for the error ? Any help/hints would be appreciated.
Thanks....
Andy Flowers - 15 Jun 2006 20:29 GMT
> I am working on a collaborative whiteboard application. So I have this piece
> of code which is supposed to be using 2 jar files. I have been told that the
[quoted text clipped - 42 lines]
> to where I should look for the error ? Any help/hints would be appreciated.
> Thanks....

How are you attempting to read the images ?

Personally I'd put them into the jar file and read them from there, perhaps
http://java.sun.com/docs/books/tutorial/uiswing/components/applet.html#images or
http://www.rgagnon.com/javadetails/java-0240.html might help ?
Navodit - 15 Jun 2006 23:07 GMT
I am using a pre Java 1.4 plug-in in my code. Does that make any difference
? In particular I am using Java 1.3 plugin... Also if I look at the Java
Console it does not show any error which means that it is able to locate the
image but during display instead of showing the image icon it is only
showing some buttons ... Any idea what cd be going on ?

>> I am working on a collaborative whiteboard application. So I have this
>> piece of code which is supposed to be using 2 jar files. I have been told
[quoted text clipped - 51 lines]
> http://java.sun.com/docs/books/tutorial/uiswing/components/applet.html#images 
> or http://www.rgagnon.com/javadetails/java-0240.html might help ?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.