-
can anyone find an answer to the following please:
I have created a container with water in it and labelled the container at different heights. (from 0 - 100ml)
5 pixels = 1ml
i now want to type in the command line: java water 50
so that the container is blue up to the number 50.
i am uncertain of how to calculate this so this works,
i am using the following:
g.setColor(Color.blue);
g.fillRect(140,60,25,600);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks