answersLogoWhite

0


Best Answer

public class olimp extends JFrame {

public void paint (Graphics g){

g.setColor(Color.BLUE);

g.drawOval(220, 200, 70, 70);

g.setColor(Color.BLACK);

g.drawOval(290, 200, 70, 70);

g.setColor(Color.RED);

g.drawOval(360, 200, 70, 70);

g.setColor(Color.YELLOW);

g.drawOval(240, 230, 70, 70);

g.setColor(Color.GREEN);

g.drawOval(320, 230, 70, 70);

}

}

public static void main(String[] args) {

// TODO code application logic here

olimp t=new olimp();

t.setSize(600,400);

t.setVisible(true);

}

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program by using java to draw the colored International Olympic logo in the middle of the window?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

IF we r terminated at the middle of the program execution in UNIX what will happen to the program it will continue running or terminate or the op will be send to your mail?

It depends on whether the program responds to a hangup signal or not. If you start the program with a 'nohup' command then it will continue to execute.


Write c program to find median?

If you are using an array : sort using qsort() then take middle element.


What middle school classes do you half to take to get into higher computer classes?

That would depend entirely on your particular middle school. Personally, the middle school I went to had no computer program (and none of the classes I took there had any impact on whether or not I could take any of the computer classes in high school).


How do you get the middle number for the turbo c using array?

it depends how you have coded your program as: if you initialized your array (a) by loop from 0 then int lb=0,ub=n-1; //n is number of elements in array int mid=(lb+ub)/2; printf("middle number is :%d",a[mid]); if you initialized your array (a) by loop from 1 then int lb=1,ub=n; //n is number of elements in array int mid=(lb+ub)/2; printf("middle number is :%d",a[mid]);


Is there allowed to be spaces in HTML coding?

There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.

Related questions

Why isn't there a soccer program for middle schools?

there is in international school of london qatar its a school


What do people were in middle school?

Usually uniform, In my school we have to ware a plane colored shirt, with plain colored pants, and shoes. get this NO JEANS. Middle school is a horror film


When was Denny International Middle School created?

Denny International Middle School was created in 1952.


Are there junior high international baccalaureate schools?

There is no IB in junior high, but there is the Middle Years Program, which prepares students for the IB program in high school. This is not offered at every high school. IB is still somewhat new in the western part of the US.


When was John Glenn Middle School of International Studies created?

John Glenn Middle School of International Studies was created in 2001.


Who is the olympic champion for middle distance race?

Mo Farah who won both the 5000m and the 10,000m at the London 2012 Olympic games.


What is the African middle finger?

They just have differently colored skin, they're not a different species. Their middle finger is the same as yours.


What are two unifying characteristics of most people in the middle east?

The majority of Middle Easterners are Muslims and they have olive-colored skin.


What colored dust was from which state in the dust bowl?

straight through the middle of the u.s.a


Ancient Rome middle class women colored their hair what color?

blonde


What is Denny International Middle School's motto?

Denny International Middle School's motto is 'Academic Excellence, for every student, in our Global Village'.


What is the Colored part of your eye?

The colored part of the eye is called the iris. The black dot in the middle is the pupil which is covered by the lens.