components/visual-panels/core/src/java/vpanels/panel/com/oracle/solaris/vp/panel/swing/timezone/TimeZonePanel.java
branchs11-update
changeset 2805 4888f6212f94
parent 827 0944d8c0158b
equal deleted inserted replaced
2804:7546c836fd87 2805:4888f6212f94
    18  *
    18  *
    19  * CDDL HEADER END
    19  * CDDL HEADER END
    20  */
    20  */
    21 
    21 
    22 /*
    22 /*
    23  * Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
    23  * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
    24  */
    24  */
    25 
    25 
    26 package com.oracle.solaris.vp.panel.swing.timezone;
    26 package com.oracle.solaris.vp.panel.swing.timezone;
    27 
    27 
    28 import java.awt.*;
    28 import java.awt.*;
   278 
   278 
   279     //
   279     //
   280     // Constructors
   280     // Constructors
   281     //
   281     //
   282 
   282 
   283     public TimeZonePanel(TimeMXBean bean, final SimpleTimeModel model) {
   283     public TimeZonePanel(Time bean, final SimpleTimeModel model) {
   284 
   284 
   285 	getHelpField().setText(Finder.getString("timezone.desc"));
   285 	getHelpField().setText(Finder.getString("timezone.desc"));
   286 
   286 
   287 	// Remove the spacing between the help and content panes
   287 	// Remove the spacing between the help and content panes
   288 	ColumnLayoutConstraint constraint =
   288 	ColumnLayoutConstraint constraint =
   289 	    getLayout().getConstraint(getContentPane());
   289 	    getLayout().getConstraint(getContentPane());
   290 	constraint.setGap(0);
   290 	constraint.setGap(0);
   291 
   291 
   292 	/*
   292 	/*
   293 	 * Read metadata from MBean.  Ideally would be read from the model.
   293 	 * Read metadata from Time bean.  Ideally would be read from the model.
   294 	 */
   294 	 */
   295 	List<TimeZoneInfo> infoSet = bean.gettimeZones();
   295 	List<TimeZoneInfo> infoSet = bean.gettimeZones();
   296 	List<Continent> continents = bean.getcontinents();
   296 	List<Continent> continents = bean.getcontinents();
   297 	List<Country> countries = bean.getcountries();
   297 	List<Country> countries = bean.getcountries();
   298 
   298