Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


How does Minecraft and websites/programs display their java code?

First thing, thanks from clicking on this question.

You know how websites like Google display things? Like in the home page, the Google word is an image with colors, it has font, icons, and borders! It might use HTML and CSS, but no way can you do all of that in a compiler. Minecraft, it has graphics, textures that go on a mob, like a pig. falling sand entities. I know there is a way to display this. If you could please leave me an answer, I would really like it. Thanks!

1 Answer

Daniel Turato
.a{fill-rule:evenodd;}techdegree seal-36
Daniel Turato
Java Web Development Techdegree Graduate 30,124 Points

Most websites use HTML, CSS & Javscript on the frontend alongside a backend server language to handle logic & data which could be in Java. They communicate via REST API's most commonly which you can learn about here on treehouse - https://teamtreehouse.com/library/introduction-to-rest-apis. For Minecraft, it is a desktop application meaning it has to display a graphical UI. After a little research, I believe Minecraft uses this https://www.lwjgl.org/ for their graphics (not 100%). However, I wouldn't start learning this framework straight away. I would first make your way through the java courses here and make sure you take the JavaFX course. And finally, yes the google image is just an image.