On May 9, 9:20 am, doan anh <[email protected]> wrote:
> I doing write program Flag-Country Library allows display of flags of
> countries on world (>=120) and for the country when users click the mouse on
> the flag respective countries
> I want Design to allow the screen to show all the flags of countries:
> The list of countries to read from file, the image (the flag) is
> stored in the folder accompanying and build list of countries and find
> images
The part where in to get images from a folder: Get an array of image
filenames. Then, create an array of image icons from this array. Use:
String[] filenames=file.list();
ImageIcon[] icons=createImageIcons(filenames);
ImageIcon[] createImageIcons(String[] filenames){
// Iterate over filenames. Create an image icon from each filenames.
Return image icons.
}
Wish I can give more ideas, but my knowledge is very limited. Good
luck.
> - Building the "Move to See" allows users to move mice
> on the flag, when mouse scroll on the flag any country
> equivalent will appear in the TITLE of the window.
> - Building the "Click To Export" allows users to copy
> flag image to somewhere: The user will mouse click (right click)
> flag on the appearance of the window (Dialog) by users who have actually
> wish to Export or not.
> if users select it (or Cancel) do not
> If the user select YES then allows users to choose where (letter entry)
> will copy the image to the flag. Then copy the image corresponding to the
> user has selected
>
> Somebody can help me about ideas ??? thanks.
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---