This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes loading images in swings 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
Bookmark "loading images in swings" Watch "loading images in swings" New topic

loading images in swings

kalyan chowdary

Joined: Jun 22, 2006
Posts: 24
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
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
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)
wood burning stoves
subject: loading images in swings
Similar Threads
jtree problem
JTree and JScrollPane
JTree and JFreechart in a single window
Dynamic JTree
Is there a way for updating JTree and JTable with a same model?