• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 212
  • Last Modified:

Image File Renaming

I am writing a Java program to help me rename image files.  This program will include the following features...

- Allow selection of folder (holding image files)
- Display image file names in a selectable window.
- Display selected image.
- Display image name in editable text box.

I am looking for code samples to get me started.  You might not be able to point me toward the perfect example that does exactly what I want to do.  But, even if you have a good code sample for (say) the selection of folders, or displaying images, please give me the information/sample.

Also, I am interested in some good Java code sample sites.  What are the best?

[Assigning this question 500 points.  I will split up the points between everyone giving me useful information.]
0
LarryAndro
Asked:
LarryAndro
  • 6
  • 2
5 Solutions
 
zzynxSoftware engineerCommented:
>> Also, I am interested in some good Java code sample sites.  What are the best?
Lots of inspiring small examples can be found at:
- http://javaalmanac.com/egs/index.html
- http://www.rgagnon.com/bigindex.html
- http://home-1.worldonline.nl/~bmc88/java/sbook/index.html
0
 
CEHJCommented:
Good general examples:

http://javaalmanac.com/egs/index.html
0
 
zzynxSoftware engineerCommented:
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
zzynxSoftware engineerCommented:
>> Display image file names in a selectable window
>> Display selected image.

Fill up a JList with the (names of the) files.
How to use lists: http://java.sun.com/docs/books/tutorial/uiswing/components/list.html

You can even display the image in the list (besides the file name) by applying the right custom cell renderer
(see "Writing a Custom Cell Renderer")
0
 
zzynxSoftware engineerCommented:
Also interesting:
How to use File Choosers (http://www.iam.unibe.ch/~scg/Resources/Java/Mirror/JavaTutorial11052000/uiswing/components/filechooser.html)
See especially FileChooserDemo2.
In this case you see the selected image already in the file chooser
0
 
LarryAndroAuthor Commented:
Great!  I'll check out the links and come back to award points.  
0
 
zzynxSoftware engineerCommented:
Take your time
0
 
zzynxSoftware engineerCommented:
Thanks
0
 
CEHJCommented:
:-)
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 6
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now