Full image view in TreeViewer
Posted: Thu Oct 15, 2009 12:42 pm
Hi, i want to see the image expanded in the central pane when i double click on it, instead of showing it in a separate window. I see that the full image view is implemented in : imviewer/ImViewerUI.java
But i dont want a separate window. Please tell me, how i can get the UI and add it to the TreeViewerWin.
I tried using the ImageData.getName() and form an ImageIcon based on it, add it to a JLabel and call addComponent() of TreeViewerWin.java.
Then the image is shown in the middle pane, but it is added from the local system path. If we delete the image from the path, it is not shown. Can anyone explain how the image is got from the server/database, and shown in a separate window, so that i can get the image and show it in middle pane of treeviewer.
Please advice.
But i dont want a separate window. Please tell me, how i can get the UI and add it to the TreeViewerWin.
I tried using the ImageData.getName() and form an ImageIcon based on it, add it to a JLabel and call addComponent() of TreeViewerWin.java.
Then the image is shown in the middle pane, but it is added from the local system path. If we delete the image from the path, it is not shown. Can anyone explain how the image is got from the server/database, and shown in a separate window, so that i can get the image and show it in middle pane of treeviewer.
Please advice.