Why are some of the text fields in the LottoMadness application shaded in gray while others are white?


The setEditable() method has been used on the gray fields to make them impossible to edit. The default behavior of a text field is to enable users to change the value of the text field by clicking within its borders and typing any desired changes. However, some fields are intended to display information rather than take input from the user. The setEditable() method prevents users from changing a field they should not modify.


Why do some cities have time that varies by a half-hour from time zones, such as Rangoon, Kabul, and Tehran?


Half- and quarter-hour differences are usually because of local authorities that didn't fully support the change to Greenwich Mean Time (GMT) in the 1880s.

India, which lies between two time lines, adopted the 30-minute mark to keep sunrise and sunset from occurring too early or too late on the edges of the country.

The time in Greenwich, England, was used beginning in the 15th century to aid ocean navigation. The International Meridian Conference in 1884 extended this, creating an International Date Line and 24 time zones for each hour.

Before this, cities kept their own clocks—the U.S. had more than 300 different local times before GMT took effect on Nov. 18, 1883. Telegraph lines were used to synchronize the country.

     Python   SQL   Java   php   Perl 
     game development   web development   internet   *nix   graphics   hardware 
     telecommunications   C++ 
     Flash   Active Directory   Windows