Sorry about the grammar. I am not a native english speaker ( i'm brazillian )
I made a program that print the screen, open it in a frame and allows me to select an area of the image.
I added a (Save) button that when it is pressed the program write the selected area of image in a new file and save it.
1 - What i want it to do:
I want to use a list of rectangles to store all the selected images and when i pressed the (OK) button the program will concatenate it all in an single horizontal line (at the same file).
But i want more than this:
i want to: Create a new button that when it is pressed it starts to save the nexts rectangles (images) in another list and when i pressed [ (OK) button or this button again ] the program will concatenate this file under the first horizontal line (all at the same file).
2 - How to to this :
I think i'll have to compare the heigth of all images of the horizontal line above. For example the first image of the horizontal line below: drawImage(img, 0, biggest_height, null);
3 - What i did:
I tried to declare the list on tradicional way but it didnt work because it has limited length. then i tried to use this code:
ArrayList<Rectangle> al = new ArrayList<Rectangle>();