|
important tiny class
Thanks Sukatoa, but I did not understand very much what you wrote about (due to my limited understanding of java), but thanks any way for your fast response.
Hardwired, slamming out the code (probably in no-time), thank you too for your quick response. At first sight I did not understand much, but I’ll study it carefully (because your code is worth studying).
But let me explain some more what I am planning to do. I moved on from the Image displaying applet (with some minor problems still).
Now I am planning to write a parent application for that applet. This application will prepare the picture for display (size, crop, format etc.) and it will additionally set some important parameters, like an info text (several lines, if needed), position, size, color of that text and the individual duration of each picture.
The JList class will be of importance because it will show the list of images to select and edit, and most importantly it will allow me to change the order by dragging a list-member to an other position of the list (for the moment I have no idea how to that, but that will be one of the questions to ask in future). All this data will be stored in a text file and the applet will use that data for display (it already does, but for the moment the text file is edited manually)
The heart of all this forms a small tiny class called Img:
private static class Img { // the image file info record array
String name, textinfo, infotextcolor, infotextsize;
int duration, numberpic, fade, infotextx, infotexty;
}
The array object of that class contains all the data (distributed over its several fields).
So Sukatoa, Img[3].name is actual an array pointing to a specific picture file name.
Hardwired I do need this tiny class and I have to get the img.name array completely into the JList for display and I do not know how to do that. The tiny class works fine (containing all data for display) at the image displaying applet and I would like to use the same idea for the edit application!
The photo edit application consists of several classes. Getting data form on object to another is an other problem. The project is ambitious and I´ll work on it some time…. Anyway how does one eat an elephant? byte by byte (hahaha?)
willemjav
|