JXDatePickerDemoPanel.java
上传用户:zhengdagz
上传日期:2014-03-06
资源大小:1956k
文件大小:2k
源码类别:

xml/soap/webservice

开发平台:

Java

  1. /*
  2.  * JXDatePickerDemoPanel.java
  3.  *
  4.  * Created on April 16, 2005, 9:33 AM
  5.  */
  6. package org.jdesktop.demo.swingx_dev;
  7. import org.jdesktop.demo.DemoPanel;
  8. /**
  9.  * Demonstrates the JXDatePicker component.
  10.  *
  11.  * @author  rbair
  12.  */
  13. public class JXDatePickerDemoPanel extends DemoPanel {
  14.     
  15.     /**
  16.      * Creates new form JXDatePickerDemoPanel 
  17.      */
  18.     public JXDatePickerDemoPanel() {
  19.         setName("Date Picker Demo");
  20.         initComponents();
  21.     }
  22.     public String getHtmlDescription() {
  23.         return "<html>Demonstrates the drop-down date selection component. To " +
  24.                 "pick a date from a drop-down calendar, click on the expansion " +
  25.                 "arrow to the right of the drop-down. The &quot;current&quot; " +
  26.                 "date in the calendar is the date currently in the text field. " +
  27.                 "Pick a date!</html>";
  28.     }
  29.     /** This method is called from within the constructor to
  30.      * initialize the form.
  31.      * WARNING: Do NOT modify this code. The content of this method is
  32.      * always regenerated by the Form Editor.
  33.      */
  34.     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
  35.     private void initComponents() {
  36.         jXDatePicker1 = new org.jdesktop.swingx.JXDatePicker();
  37.         setLayout(new java.awt.GridBagLayout());
  38.         add(jXDatePicker1, new java.awt.GridBagConstraints());
  39.     }
  40.     // </editor-fold>//GEN-END:initComponents
  41.     
  42.     
  43.     // Variables declaration - do not modify//GEN-BEGIN:variables
  44.     private org.jdesktop.swingx.JXDatePicker jXDatePicker1;
  45.     // End of variables declaration//GEN-END:variables
  46.     
  47. }