File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jtable does not show image

 
thusitha niroshan
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> 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
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic