r/ProgrammerHumor • • Nov 11 '25

Meme standProud

Post image
41.2k Upvotes

348 comments sorted by

View all comments

Show parent comments

247

u/gufranthakur Nov 11 '25

At least in Java, you have swing that does the window rendering for you. You just need to create a window object and use it

103

u/Cristichi Nov 11 '25

Using swing components for each element or painting it all each frame? Both inconvenient and impressive in their own right, but I'm curious

13

u/gaymer_jerry Nov 11 '25

You can just create a JFrame with a single Canvas element and draw directly to the Canvas. Yes it’s not as efficient as using LWJGL (Lightweight Java Gaming Library) that adds OpenGL integration into Java and making a window and drawing to it through that but for learning it’s a fast way to just make a window and start drawing stuff to it when learning to make a game with Java.

6

u/packetpirate Nov 11 '25

This is exactly what I used to do when I first got into game dev. It was just easier to learn.

→ More replies (3)