Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

help..on Next n Previous Button

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
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 filename..so that when i can call it..
the file name been keept as
0001.gif
0002.gif
0010.gif
2004.gif


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
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
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.
 
You know it is dark times when the trees riot. I think this tiny ad is their leader:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
    Bookmark Topic Watch Topic
  • New Topic