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;
  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><b>JXDatePicker Demo</b><br/>" +
  24.                 "Demonstrates the drop-down date selection component. To " +
  25.                 "pick a date from a drop-down calendar, click on the expansion " +
  26.                 "arrow to the right of the drop-down. The &quot;current&quot; " +
  27.                 "date in the calendar is the date currently in the text field. " +
  28.                 "Pick a date!</html>";
  29.     }
  30.     
  31.     public String getName() {
  32.         return "Date Selection";
  33.     }
  34.     /** This method is called from within the constructor to
  35.      * initialize the form.
  36.      * WARNING: Do NOT modify this code. The content of this method is
  37.      * always regenerated by the Form Editor.
  38.      */
  39.     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
  40.     private void initComponents() {
  41.         jXDatePicker1 = new org.jdesktop.swingx.JXDatePicker();
  42.         setLayout(new java.awt.GridBagLayout());
  43.         add(jXDatePicker1, new java.awt.GridBagConstraints());
  44.     }
  45.     // </editor-fold>//GEN-END:initComponents
  46.     
  47.     
  48.     // Variables declaration - do not modify//GEN-BEGIN:variables
  49.     private org.jdesktop.swingx.JXDatePicker jXDatePicker1;
  50.     // End of variables declaration//GEN-END:variables
  51.     
  52. }