Java 2D - multiple images


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Java 2D - multiple images

  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

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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center