decodes.dbeditor.TimeZoneSelector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opendcs Show documentation
Show all versions of opendcs Show documentation
A collection of software for aggregatting and processing environmental data such as from NOAA GOES satellites.
The newest version!
package decodes.dbeditor;
import javax.swing.JComboBox;
import java.util.TimeZone;
import java.util.Arrays;
import ilex.util.TextUtil;
/**
Combo Box for selecting from the (many) Java Time Zones.
*/
@SuppressWarnings("serial")
public class TimeZoneSelector extends JComboBox
{
/** List of known java time zone IDs. */
static String ids[] = TimeZone.getAvailableIDs();
/** Constructor. */
public TimeZoneSelector()
{
try
{
jbInit();
addItem(""); // no selection is valid.
Arrays.sort(ids);
for(int i=0; i