Java Course Intern Journal (Tuesday) __java

Source: Internet
Author: User

In today's effort has been completed in the existing code based on the completion of the order to display three pictures of the function. This is also the 16th week of Friday database connection and random number of the use of the project in the experiment class one model, closer to the goal, their hearts see greater hope, hope to do better. If you can make the project a better one, then the random display and results from the "guess" image are saved to the text file and the 17th week of the Java Programming Course design: "Guessing" game Ava programming 17th week course Design: "Guess See" game these two goals is not far, feel a long way to go.

Plus today's implementation order displays the core code of the picture:

String strtmp = filearray[index].tostring ();
					index++;

					if (index==num_img)
						index = 0;
	                                Lblimg1.seticon (New ImageIcon (strtmp));
					Lblimg2.seticon (New ImageIcon (strtmp));
					Lblimg3.seticon (New ImageIcon (strtmp));
				}

Here is the result of the run:


After clicking the "Guess Again" button:


Today has not been able to show the part of the name to make, and continue to refuel tomorrow. ******



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.