-
Matrix of Objects
Hello guys,
I am completely new in Java and I have to create a class draws a filled rectangle on screen
I should create an applet that creates 16 instances of the class that draws the filled rectangle and show them in an applet in a 4x4 grid.
I already have the class and have created two instances of the object (just for testing), the problem I have is that I am getting the first box in the position I want (x=4, y=5, w=50, h=50) but the second instance is shown at the bottom end of the frist box, I mean that the boxes are shown in diagonal and it doesn't displays next the first box, something like this:
twoBoxes.jpg
Does anybody could give me any advice on how I could create this grid?
Thank you all
Similar Threads
-
Replies: 11
Last Post: 06-24-2004, 05:18 PM
-
By Scipione in forum VB Classic
Replies: 1
Last Post: 03-02-2002, 05:14 AM
-
Replies: 0
Last Post: 11-10-2000, 10:58 AM
-
Replies: 0
Last Post: 10-11-2000, 02:18 AM
-
Replies: 0
Last Post: 10-10-2000, 08:30 PM
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