File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes jtable does not show image Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "jtable does not show image " Watch "jtable does not show image " New topic
Author

jtable does not show image

thusitha niroshan
Greenhorn

Joined: Nov 04, 2012
Posts: 2
hello all ,
i'm new to this site and I'm new to java.Problem I have is how to load image to table .I know there are so many post but I can figure out .I have written some codes by looking at these forms .but it does not give correct result.does not even change the table name.
here are the codes.




I call this method setTableImage() on button click .but it does not work.
thank you all.
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
> I call this method setTableImage() on button click .but it does not work.

possibly due to the database code being run on Swing's event thread.

write a simple program - just a frame with scrollpane and table
add code to add an image from the same folder as the table.

if it doesn't appear, post that code (all of it - shouldn't be many lines)
thusitha niroshan
Greenhorn

Joined: Nov 04, 2012
Posts: 2
Michael Dunn wrote:> I call this method setTableImage() on button click .but it does not work.

possibly due to the database code being run on Swing's event thread.

write a simple program - just a frame with scrollpane and table
add code to add an image from the same folder as the table.

if it doesn't appear, post that code (all of it - shouldn't be many lines)



thank you sir.I got the answer.again I really grateful for you reply.thank you very much
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jtable does not show image