Because of a long time, want to get the picture from the above path, and then the following is a random display, in the path there for a long time, so until now published.
Get path and random display picture part code
File F = new file (strpath);
string[] names = f.list (new FilenameFilter () {public
Boolean accept (File F, String name) {return
Name.endswith (" . jpg ");
}
);
Random r = new Random ();
String strtmp = strpath+ "/" +names[r.nextint (108)];
String strTmp1 =strpath+ "/" +names[r.nextint (108)];
String STRTMP2 = strpath+ "/" + names [R.nextint (108)];
Lblimg1.seticon (New ImageIcon (strtmp));
Lblimg2.seticon (New ImageIcon (STRTMP1));
Lblimg3.seticon (New ImageIcon (STRTMP2));
In doing programming, in some aspects of the knowledge is not good, will have a great impact on the future, this time to realize that they have to learn from the foundation, and then in this road to go farther and better.