DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2005
    Posts
    3

    Java 2D - multiple images

    Hi
    i have the initial GUI and when i press a specific button.
    Then the program reads some data from a file.
    The data of the file contain information about some shapes.
    This information include the type of shape(rectangle, circle...)
    I want to create an application which creates these shapes
    and add them progressively, in a new frame,
    without removing the old ones from the frame.
    Also i want to place these shapes, each in different location,
    according the location of the previous one
    i would be very grateful for any help
    thanks

  2. #2
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    Make a class for the shapes and store them in an arrayList and loop this list in the
    frame's paint/update method.
    If you want more help then post your current code.
    eschew obfuscation

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links