00:01
In this question, it will practice to creating a simple picture using java's japplet and jframe components.
00:08
The goal is to create a graphical application that draws shapes on the screen.
00:13
So here we explain each step by step process how to make this question and this program.
00:21
Now first step is to create a netbean project.
00:24
In this, we have to create a new project called simplejapplet in a folder named t25.
00:45
This is the first step for making this project.
00:48
Now second step is to plan your picture.
00:56
So in this, we have to create a diagram to plan the picture whatever you want.
01:08
And in this, we have to use our shapes like rectangle, circle, etc.
01:15
With a different color from yellow and also show the coordinates and dimensions for each part.
01:29
Now coming to the third step of this question.
01:34
This is the coding part.
01:36
Now we have to write a source code for this.
01:39
So first of all, we have to open a simplejapplet project in netbeans which we made in our step first, already created.
01:51
Now second step to right click on the source package folder and choose new java class.
02:06
After doing this, the third step is to name the class that is simplejapplet and click finish.
02:25
The fourth step is to replace the default code with the following.
02:32
Now we see the java code for this program particular question.
02:41
Import java, awt color, import java, awt graphics, import javax, swingjapplet, public class simplejapplet, extendjapplet, overwrite, public void int.
03:25
Now after that we have to set a applet size.
03:28
So set size 400, 400.
03:32
Now in overwrite, public void paint, graphics g, super paint g.
03:50
After that we have to set a background color...