• Post Reply 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

loading images in swings

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi to all,

I use JSplitpane to to split two panels(left and right),

left panel contains JTree, right panel is loading the required images when i click the corresponding node in the JTree.

All images came from database .

Based on the images length i created required JLables and set it to the images.

Initially i am loading images in the right panel (i.e fine), But i am clicking the node in the JTree, right Panel images are not refreshed with new one.

Please help me,

Thanks in advance
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
if you want a solution, post a 'runnable' sample program to demonstrate what you are doing,
just a frame with splitpane, tree with a couple of nodes, and the code that
changes the image in the right panel

don't put any db stuff in the sample program (use a couple of hard-coded
image files)
reply
    Bookmark Topic Watch Topic
  • New Topic