How to draw in Java Tutorial

preview_player
Показать описание
In this video we will learn different techniques to draw with graphics in Java. We will look at the freehand drawing and different objects like a circle or a gradient. Have fun.

You can download the code here:

Java Gui Programming:

#Java #Drawing #JFrame
Рекомендации по теме
Комментарии
Автор

Thank you very much, it's exactly what I needed. :)

Daniel-voiu
Автор

Thank you for the video. I have code written in Javascript for rendering images on a set of overlayed DOM <canvas> elements. The code is several thousand lines long and is well organised into some 25 classs. Is this kind of thing possible with Java and, if so, is there something that would help me translate the code from Javascript into Java? Whereas I have extensive experience of Javascript/Canvas, I would be a total novice in Java.

Hertog_von_Berkshire
Автор

I wrote the code exactly as you did and the first problem I get is the JButtons don't show up unless you mouseover them. Once you click them, they disappear and when you mouse over them they reappear

wildmonkiesJR
Автор

It would be nice if you can explain some new things such as Board, the parameter in some method (especially the polyline and stroke). Being too overambitious in making tutorial is not good, give a little bit of your time to explain new things that some people might don't know from just reading/watching java tutorial so they don't just merely copy-paste your code and can probably solve their own mistakes.

That_One_Guy...
Автор

Hello in the class MList extends MouseMotionAdapter, i can use the method e.getX();, or e.getY(); Has the method been renamed or how can i fix this it dosent draw when i click green or blue og red!

william