|
-
May 9th, 2001, 05:02 AM
#1
Thread Starter
Addicted Member
Can I print things from Applet
Dear Java Forum Friends,
Nice to meet you. I wish to ask a difficult question this time. I wish to know is it possible for a user to print a document (in fact a list of names) from an applet downloaded from my server?
I am doing an assignment on RMI course encrollment simulation program that should allow the students to print their course lists.
But applet ensure security. So I wonder is it possible for me to call the client printer to print things.
Another similar question is when viewing in browser, I have a problem of "\images\xxx.gif access denied" if my Japplet contains an image icon to display. I use following code:
ImageIcon icon = new ImageIcon("images/hku.gif","The University of Hong Kong");
JLabel jlblTitle = new JLabel("Course Enrollment System", icon, JLabel.LEFT);
in my JApplet. Viewing in appletviewer has no problem. But in browser will fail. Is it again the applet secure feature so that I can't access another sub-directory in the directory containing the Japplet? How can I solve this please?
Any suggestion and coding is much appreciated.
Thank you very much.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|