Link to home
Start Free TrialLog in
Avatar of Deandre Jay Lagudas
Deandre Jay Lagudas

asked on

How to replace default image when user selected image?

I have one default image and I want to replace the image when the user or the program already selected an image. I have only the basic image reader for displaying the default image.

private static void loadImage()throws Exception{
    File image2 = new File("...Example\\blackimage.jpg");
    bi = ImageIO.read(image2);
}
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Not enough info
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.