471,601 Members | 1,496 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,601 software developers and data experts.

how to display image on our applet using browse button

when i am clicking the browse button image not opened in my applet please help me.

// browse button, generate browse event when it clicks
if (e.getSource()==browse)
//filedialog open for choosing directory and file name.
FileDialog fd=new FileDialog(f,"Browse..",FileDialog.LOAD);
MediaTracker mt = new MediaTracker(this);
Image my_gif = getImage(fd.getDirectory(),fd.getFile());
catch (Exception e) {}

public void paint(Graphics g)
super.paint( g );

Feb 17 '07 #1
0 1828

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Jeff Napier | last post: by
3 posts views Thread by Jordan Gomila | last post: by
3 posts views Thread by Meena Desai | last post: by
6 posts views Thread by Ben | last post: by
9 posts views Thread by shapper | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.