Adding an image to JTable Cell [duplicate]
问题 This question already has answers here : Dynamically add images to JTable cells (2 answers) Closed 6 years ago . I am wanting to dynamically add data to a JTable including an image. Here is my code: Main class String image = matchedSlots.get(i).getImagePath(); String title = matchedSlots.get(i).getTitle(); String director = matchedSlots.get(i).getDirector(); int rating = matchedSlots.get(i).getRating(); int runTime = matchedSlots.get(i).getRunningTime(); searchResults.getColumnModel()