Hii All I am a biggner with java programming Now I assigned with a arogram
to "display multiple images and its name on particular location on a frame. (Hint Use Image class and ToolKit classes of java.awt.* package) "
plese help me to do this
rthcupid
0
Newbie Poster
Recommended Answers
Jump to PostPost your code and specific questions.
Jump to PostJust create array of images...
private Image[] image; private String[] imgNames = {"img01.gif", "img02.gif", "img03.gif"}; image = new Image[imgNames.length]; for(int i = 0; i < imgNames.length; i++) { image[i] = toolkit.getImage(imgNames[i]); }
Jump to PostHi Thank you for sending this help .. I did'nt yet solved my real problem My problem is to create a frame and load some pictures from the local disk. I don't Know How to create our own picture array( jpeg,gif, etc) Can you help me to solve this problem? …
All 9 Replies
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
rthcupid
0
Newbie Poster
peter_budo
2,532
Code tags enforcer
Team Colleague
Featured Poster
rthcupid
0
Newbie Poster
stultuske
1,116
Posting Maven
Featured Poster
rthcupid
0
Newbie Poster
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
rthcupid
0
Newbie Poster
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.