0

How to uplaod & display picture on panel java swing

so I have jtable where when I click on load button the information (Id,name etc) of different employees on file are displayed on the table what I want is when I click on certain row a picture of the employee should appear the picture name is the same as the employee ID which is written in file so I could know which pic to upload ??please help

12th Oct 2017, 3:12 PM
Avi M
Avi M - avatar
1 Respuesta
0
I would solve this by creating a derivative Panel class which overrides the drawComponent(Graphics) function to draw an image that you specify. Images can be loaded with ImageIO.read(File).
14th Oct 2017, 3:33 AM
LauchInt