473,320 Members | 2,094 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Need help urgent.

I badly need help in makinga program to the following solution and I have no idea how to do it.Can someone please help me. The link is to the content which was given for practise before exams, It is Lab 6 Simple Graphics in Java.

http://cs.uwindsor.ca/F2006/60-212/Labs_2004.pdf

Can someone pls help me with this.
Oct 30 '06 #1
3 1321
r035198x
13,262 8TB
I badly need help in makinga program to the following solution and I have no idea how to do it.Can someone please help me. The link is to the content which was given for practise before exams, It is Lab 6 Simple Graphics in Java.

http://cs.uwindsor.ca/F2006/60-212/Labs_2004.pdf

Can someone pls help me with this.
Please save everyone their bandwidth and time by posting you problem here not linking to it. Some of us have work to attend too. And what if the person who can best help you does not have a pdf viewer?
Oct 30 '06 #2
Sorry about that...

This is what the problem is specifically.

Work to be Done

a) Display a blue circle in th ecenter of a frame.

b) You may then press th eleft mouse down when the cursor is either on the perimeter of the circle or when it is inside the circle.

c) If the cursor is on the perimeter when you press the left mouse button , the color of the circle should become red.You can now move the mouse with the left mouse button pressed down (i.e., drag the mouse). The perimeter of th ecircle should always move with the cursor, so that the size of the circle becomes smaller.As you move the cursor towards the center of the circle or larger as you move the cursor away from the center of the circle.When you release th eleft mouse button , the color of the circle should become blue again but the size of the circle should remain the same as the circle you had when you released the left mouse button.

d) If the cursor is inside the circle when you pressed th eleft mouse button,the color of the circle should become green. You can now drag the mouse. The green circle should always move with the cursor,The size of the circle should not change,When you release the left mouse button, the color of the cirlce should become blue again.
Oct 30 '06 #3
r035198x
13,262 8TB
Sorry about that...

This is what the problem is specifically.

Work to be Done

a) Display a blue circle in th ecenter of a frame.

b) You may then press th eleft mouse down when the cursor is either on the perimeter of the circle or when it is inside the circle.

c) If the cursor is on the perimeter when you press the left mouse button , the color of the circle should become red.You can now move the mouse with the left mouse button pressed down (i.e., drag the mouse). The perimeter of th ecircle should always move with the cursor, so that the size of the circle becomes smaller.As you move the cursor towards the center of the circle or larger as you move the cursor away from the center of the circle.When you release th eleft mouse button , the color of the circle should become blue again but the size of the circle should remain the same as the circle you had when you released the left mouse button.

d) If the cursor is inside the circle when you pressed th eleft mouse button,the color of the circle should become green. You can now drag the mouse. The green circle should always move with the cursor,The size of the circle should not change,When you release the left mouse button, the color of the cirlce should become blue again.
Well then let's get started. You write the code for displaying the blue circle. Use a Canvas inside a JFrame. If you feel you are not yet that good at mouse events, we might as well end at just drawing the blue dot and continue tommorrow when you've had a look at mouse events and mouse motion events (If you have the time).
Oct 30 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Rahul S. | last post by:
Hey all: I need urgent information how to set the environment in Visual.NET wiritng in C. I am working with a licensed version of the Analyze 6.0 software from mayo clinic. I need to write...
3
by: Rahul S. | last post by:
Hey all: I need urgent information how to set the environment in Visual.NET wiritng in C. I am working with a licensed version of the Analyze 6.0 software from mayo clinic. I need to write...
28
by: Tamir Khason | last post by:
Follwing the struct: public struct TpSomeMsgRep { public uint SomeId;
16
by: | last post by:
Hi all, I have a website running on beta 2.0 on server 2003 web sp1 and I keep getting the following error:- Error In:...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
2
by: Max Power | last post by:
Hi All I am coding a small app in that swaps specific files between a client and server. All files and locations are set at both sides. I want my app to show a file list, based on the file...
3
by: N. Spiker | last post by:
I am attempting to receive a single TCP packet with some text ending with carriage return and line feed characters. When the text is send and the packet has the urgent flag set, the text read from...
3
by: Noremac | last post by:
My google skills must be dwindling. I am trying to determine how in ASP.NET 2.0 I can get the ReturnUrl querystring variable in Forms Authentication to contain the absolute url. Just like others...
9
needhelp123
by: needhelp123 | last post by:
Can any one send me a quick sort simple logic pogram... its very urgent urgent
1
by: psantosh12 | last post by:
Hello Frnds Please need help to resolve error.......... it is very very urgent........ The error is Runtime Error Description: An application error occurred on the server. The current custom...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.