473,943 Members | 19,529 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need help urgent.

2 New Member
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 1345
r035198x
13,262 MVP
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
araunity2005
2 New Member
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 MVP
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
1665
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 code in C using AVW functions that are licensed by Mayo clinic. In order to access the AVW library of functions, I need to set the
3
1755
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 code in C using AVW functions that are licensed by Mayo clinic. In order to access the AVW library of functions, I need to set the
28
3091
by: Tamir Khason | last post by:
Follwing the struct: public struct TpSomeMsgRep { public uint SomeId;
16
2993
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: http://www.mywebsite.org/WebResource.axd?d=5WvLfhnJp5Lc8WhQSD4gdA2&t=632614619884218750 -------------------------------------------------------------------------------- System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed. at...
15
4675
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 communicate with a MySQL database table on a web server, from inside of my company's Access-VBA application. I know VBA pretty well but have never before needed to do this HTTP/XML/MySQL type functions.
2
9115
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 names, from the local and remote machine..... Local is not a problem and works OK. but I am trying :: Form1.getFile.FileName = Inet1.Execute("ftp://ftp.server.net", "DIR") and I
3
6494
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 the socket is missing the last character (line feed). When the same text is sent without the urgent flag set, all of the characters are read. I'm reading the data using the blocking read call of the network stream class. The .NET...
3
7640
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 that have posed this question, we are an enterprise environment that has multiple websites across multiple servers and we are trying to setup Web SSO for our public internet site that will be accessible by our clients. ASP.NET seems to have...
9
1703
needhelp123
by: needhelp123 | last post by:
Can any one send me a quick sort simple logic pogram... its very urgent urgent
1
2133
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 error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. Details: To enable the details of...
0
10136
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9970
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10662
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9865
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8220
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7390
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6309
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4510
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3512
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.