Dear friends.
Please give me the logic or code to display image based on number(in database) entered in the text box by the user.
thanks in advance
prabhu.
kssprabhu
0
Newbie Poster
Recommended Answers
Jump to PostJTextField imageField = new JTextField(4);
Image[] images = new Image[42]; //array of imagesint index = Integer.parseInt(imageField.getText());
Image image = images(index);
All 3 Replies
Phaelax
52
Practically a Posting Shark
kssprabhu
0
Newbie Poster
freesoft_2000
9
Practically a Master 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.