|Non-sequential display of images in sqLite handler software [message #1786628]
||Tue, 08 May 2018 18:17
| Patrick Moran
Registered: March 2018
I have been working with Java just to get a tool I need for teaching purposes. Based on an on-line tutorial I now have a Java application that allows user to choose a row number and then it goes to that row and displays several fields, all of them text or integers. So if this were used to display information about tractor parts then selecting "part number 2," it would display the cost, the estimated shipping time, shaft diameter, etc. What I have now would do that well. What I need to do is to add a picture of each part as it is selected. The text entries are handled by directing each column in an individual record to its own JTextField drawn on screen. |
I can make a picture appear on a JLabel, but I don't see how to make that label change images the way the JTextFields change texts.
I've look for sample programs that would do this kind of thing. I once had a simple program that put up a list of personal contacts. Choose one and it would display name, address, phone number, etc. and also a photo of the individual in that record. However, I can't find it again, nor can I find anything like it.
Probably I am asking Google the wrong question. Can anyone point me in the right direction? All I've found so far are very complex codes for applications that allow all sorts of changes to be made to a selected photo.
I will attach the code and a screen shot (neither of which is very pretty).
Powered by FUDForum
. Page generated in 0.02899 seconds