I am building a for me complex program and is far from done. But I ran into a problem.
In the program I want a jtextfield where the user can input a filepath eg. C:/Users/User1/Pictures/Screenshots/Skärmbild (1).png
and then press a button and the image is immediately loaded into a jlabel. Since the picture will be at a unknown size and must fit the label i must also be scaled to fit the label.
How can I do this and what is the best way of doing it? Thank in advance! :)