Results 1 to 5 of 5
Thread: Program help
- 02-21-2012, 11:16 PM #1
Member
- Join Date
- Feb 2012
- Posts
- 2
- Rep Power
- 0
Program help
Hello,
I need to make a program which displays one picture from a selection of images within a directory which is fair enough.
However, I also need to add a Text box where users may comment on this individual picture. They may then move on to the next or previous
or whatever image they want. But the comment about that individual picture should be saved (even when the program is exited and re-run).
I was wondering if any of you have any ideas as to what the best way to tackle this objective would be?
as I know there are a few ways in which it could be done. Any help is appreciated greatly.gif)
Thanks.
- 02-22-2012, 02:21 AM #2
Re: Program help
Design a GUI with the required fields.
Design a class to hold a reference to the image and the comment.
Where do you plan to save the data? Will you save a copy of the image file or just the path to the image file?
- 02-22-2012, 02:29 AM #3
Member
- Join Date
- Feb 2012
- Posts
- 2
- Rep Power
- 0
Re: Program help
I was thinking of some kind of Xml file or something which stores the path/name of the image(which are all uniquely identified by numbers already) and the comment. Something like that. So that when the image is loaded a check can be done of the xml file to see if there are any comments. This is the only way I could think of it anyway. Other than that I didnt know whether you could change the comment properties of the image in some way.
Thanks.
- 02-22-2012, 02:36 AM #4
Re: Program help
There are many ways and formats for writing data to a disk file. As XML is one.
You'd probably read the whole file into memory when the program started so checking for the comments would be an easy lookup in some collection.
- 02-22-2012, 10:08 AM #5
Similar Threads
-
How to code a program to send messages to a chat program?
By josh2992 in forum New To JavaReplies: 2Last Post: 04-02-2011, 12:57 PM -
How would I open a program from a single button of another program. Help...
By decgaid06 in forum New To JavaReplies: 13Last Post: 03-22-2011, 06:49 AM -
changing my program to array working program
By Chewart in forum New To JavaReplies: 39Last Post: 11-18-2009, 06:53 PM -
How to execute an External Program through Java program
By Java Tip in forum java.ioReplies: 0Last Post: 04-04-2008, 02:40 PM -
How to execute an External Program through Java program
By JavaBean in forum Java TipReplies: 0Last Post: 10-04-2007, 09:33 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks