Ask coding questions

← Back to all posts
show a picture
Annkar (7)

I am trying to show a picture but it dosent work. what is wrong?how to do?If it is things I need to do it that replit dosent have, can I get around it in any way?

RobertoBean (41) doesn't have a display environment (basically something that your code can read and write pixels to) set up that the client can use. Unfortunately, the terminal is the only thing that replit sends the output from over to the client. Not quite sure of a work around for Java.

JordanDixon1 (178)

Try looking into JFrame.

When I tried it a long time ago(like a few months and I stopped trying to learn Java lol) It worked and I was able to display images. Perhaps that might help.

BradenAnimation (0)

does not work at all