These following questions contain code to the first and second parts of my code. This final questions asks how to combine the 2 separate programs together
1 This stage is essentially a repeat of the first prototype, except that the data file needs to specify instances of Drawable objects. The GUI should also be modified appropriately to hold a list of Drawables in place of Shapes with corresponding changes to the paintComponent() method.
2 The list of Drawables in the GUI Component of part 1 could be a Picture!
Rename the ShapeListComponent as DrawableComponent. Replace the ArrayList attribute with a Drawable attribute, and the setList() method with a setDrawable(). In a separate class create a Picture object and pass this to the Component to display. Test your program with several picture data files.
The following links contain code i posted before to do the first and second parts of my program.
//program which uses the drawable interface.
//program which reads in file data and creates shapes on screen.
//interface thar tags drawable objects.
Other posts have been made by me based on this program. Please check my question history to rebeal them all.
Hopefully the final question for me on this program.