This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jtable does not show image
 
Similar Threads
problem clicking jbuttons in jtable
Jtable CellEditor
JTable
Jtable problem
Image in JTable