Skip to content
← Back to Community
show a picture
Profile icon
Annkar

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?

Voters
Profile icon
JosephBraga
Profile icon
RobertoBean
Profile icon
DaDestroyerMK85
Profile icon
AlexanderChang2
Profile icon
Annkar
Comments
hotnewtop
Profile icon
RobertoBean

Repl.it 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.

Profile icon
JordanDixon1

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.

Profile icon
BradenAnimation

does not work at all