Create an applet that has four buttons and a label. On each button attach an icon that is the flag of some country. When the user clicks a button, display the name of the country and its capital city in the label.
What will be an ideal response?
See the code in FlagApplet.java. The associated images are BelgiumFlag.jpg, FranceFlag.jpg, GermanyFlag.jpg, ItalyFlag.jpg.
You might also like to view...
The clone method has ________ parameters.
a. zero b. one c. two d. three
This layout manager arranges components in regions named North, South, East, West, and Center.
A) GridLayout B) BorderLayout C) FlowLayout D) RegionLayout
What 1-pixel x 1-pixel image file is referenced in an tag, and usually works with a cookie to collect informationabout the person visiting the Website?
A. image bug B. zone transfer C. bugnosis detector D. Web bug
Joe, a system administrator, is troubleshooting an issue with remotely accessing a new server on the LAN. He is using an LMHOST file and the file contains the hostname and IP address of the new server. The server that he cannot remote to is located on the same LAN as another server that he can successfully remote to. Which of the following output from the command line would BEST resolve the problem?
A. C:windowssystem32>ipconfig /flushdnsWindows IP configurationSuccessfully flushed DNS resolver cache B. C:windowssystem32>ipconfig /registerdnsWindows IP configurationRegistration of the DNS resource records for all adapters has been initiated. Any errors will be reported in the event viewer in 15 minutes. C. C:windowssystem32>nslookupDefault server: unknownAddress: 1.1.1.1 D. C:windowssystem32>nbtstat -RSuccessful purge and reload of the NBT remote cache table