File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes help..on Next n Previous Button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply locked New topic

help..on Next n Previous Button

Norazanita Adnan
Ranch Hand

Joined: May 28, 2008
Posts: 44
hi..can anyone help me...on the "Next" and " previous" button...
whe i click next or previous, i can view the next n previous picture...

my picture name is not is sequence(some of the filename missing)...

now i kept it in a masterList array the that when i can call it..
the file name been keept as

now im the actionPerforme, i need to code where when i click the button next or previous, it able to view...

this is the code that i try but i dont have any idea how to view the image..

this code for the masterList[]

hope someone can help me
Joe Ess

Joined: Oct 29, 2001
Posts: 8702

Since this seems like a Swing question, I'm going to move it to the Swing forum. You should look at the Swing tutorial on How to use Icons. I think the IconDemoApp example does what you are trying to do.

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: help..on Next n Previous Button
Similar Threads
Uploading jpeg images to webserver
Layout Problem, Help Me Plz
reading a private method within a class
sockets and threads
variable problem