Package nu.lazy8.util.help

Examples of nu.lazy8.util.help.DateField


                (String) aValue);
          }
        }//}}}
      };

    sorter = new TableSorter(dataModel);
    // Create the table
    JTable table = new JTable(sorter);
    // Use a scrollbar, in case there are many columns.
    table.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
View Full Code Here


          -1, true);
      jTextArea.append(sbRow.toString());
      jTextArea.append(newline);
      double fDebitTotal = 0;
      double fCreditTotal = 0;
      IntHolder iType = new IntHolder();
      do {
        initializeRow(fieldAccSize, 8);

        addField(db.getObject("Amount.Account", iType),
            fieldAccSize, 2, iType.iValue, false);
View Full Code Here

        }//}}}
      };
    fileDialog.setFileFilter(filter);
    if (fileDialog.showOpenDialog(view) == JFileChooser.APPROVE_OPTION) {
      if (fileDialog.getSelectedFile().exists()) {
        WorkingDialog workDialog = new WorkingDialog(view);
        workDialog.setVisible(true);
        workDialog.SetProgress(0);
        try {
          ReadInFile(fileDialog.getSelectedFile());
          workDialog.dispose();
          //final adjustments
          JOptionPane.showMessageDialog(null,
              Translator.getTranslation("Successful"),
              "",
              JOptionPane.PLAIN_MESSAGE);
        } catch (Exception e) {
          e.printStackTrace();
          workDialog.dispose();
          JOptionPane.showMessageDialog(null,
              Translator.getTranslation("Failed to import") + " : " + e,
              "",
              JOptionPane.PLAIN_MESSAGE);
        }
View Full Code Here

    getContentPane().add(ps, BorderLayout.CENTER);
    m_monitor.setText("");
    m_monitor.replaceSelection(Translator.getTranslation("Enter the accounting period you want to work with.  This is usually from the beginning of the year to the end of the year.") + "\n" +
        Translator.getTranslation("Press NEXT to continue."));

    dateField1 = new DateField("From", "periodform", frameParent);
    dateField2 = new DateField("To", "periodform", frameParent);

    rightButton = new JButton(Translator.getTranslation("Next"));

    rightButton.addActionListener(
      new java.awt.event.ActionListener() {
View Full Code Here

   * @param  jp        Description of the Parameter
   * @param  helpFile  Description of the Parameter
   */
  public void AddDateComponents(JPanel jp, String helpFile) {
    jp.add(new HelpedLabel(Translator.getTranslation("Start date"), "StartDate", helpfile, view));
    jTextField1 = new DateField("StartDate", helpfile, view);
    jTextField2 = new DateField("StopDate", helpfile, view);
    jp.add(jTextField1);
    jp.add(new HelpedLabel(Translator.getTranslation("Stop date"), "StopDate", helpfile, view));
    jp.add(jTextField2);
  }//}}}
View Full Code Here

    label1 = new HelpedLabel(Translator.getTranslation("RegDate"), "RegDate", "transaction", view);
    labelTodaysDate = new HelpedLabel("", "RegDate", "transaction", view);
    label2 = new HelpedLabel(Translator.getTranslation("InvDate"), "InvDate", "transaction", view);
    invoiceDateField =
      new DateField("InvDate", "transaction", view) {
        //{{{ +gotEnter() : void
        public void gotEnter() {
          try {
            //invoice date
            invoiceDateField.getDate();
View Full Code Here

    //    JLabel emptySpace=new JLabel();
    //    jPanel1.add(emptySpace);

    label1 = new HelpedLabel(Translator.getTranslation("Start period"),
        "From", "periodform", view);
    textField1 = new DateField("From", "periodform", view);
    label2 = new HelpedLabel(Translator.getTranslation("End Period"),
        "To", "periodform", view);
    textField2 = new DateField("To", "periodform", view);

    jPanel1.add(label1);
    jPanel1.add(textField1);

    jPanel1.add(label2);
View Full Code Here

            "startdates", "graphics", view);
      } else {
        periodStartLabels[i] = new HelpedLabel(Translator.getTranslation("Comparison start date") + " " + i,
            "startdates", "graphics", view);
      }
      periodStartDates[i] = new DateField("startdates", "graphics", view);
      periodStartPanel.add(periodStartLabels[i]);
      periodStartPanel.add(periodStartDates[i]);
      periodStartDates[i].setText("");
    }
    return periodStartPanel;
View Full Code Here

      }
        );
    add(delimitPanel);

    JPanel dateLabelAndFieldPanel = new JPanel();
    fromDateTextField = new DateField("StartDate", "exportoptions", view);
    toDateTextField = new DateField("StopDate", "exportoptions", view);
    fromDateTextField.setText("");
    toDateTextField.setText("");
    if (showDates) {
      dateLabelAndFieldPanel.setLayout(new GridLayout(2, 2));
      //fromDateTextField.setText("");
View Full Code Here

    jPanel1.add(textField4);

    jPanel1.add(new JLabel());

    button1 = new HelpedButton(Translator.getTranslation("Cancel"),
        "Cancel", "dataconn", view);

    button1.addActionListener(
      new java.awt.event.ActionListener() {
        //{{{ +actionPerformed(java.awt.event.ActionEvent) : void
        public void actionPerformed(java.awt.event.ActionEvent evt) {
          isAbort = true;
          DataConnectDialog.this.setVisible(false);
        }//}}}
      }
        );

    jPanel1.add(button1);

    JButton button4 = new HelpedButton(Translator.getTranslation("OK"),
        "ok", "dataconn", view);

    button4.addActionListener(
      new java.awt.event.ActionListener() {
        //{{{ +actionPerformed(java.awt.event.ActionEvent) : void
        public void actionPerformed(java.awt.event.ActionEvent evt) {
          buttonOK();
        }//}}}
      }
        );
    jPanel1.add(button4);

    JButton button5 = new HelpedButton(Translator.getTranslation("Help"),
        "help", "dataconn", view);

    button5.addActionListener(
      new java.awt.event.ActionListener() {
        //{{{ +actionPerformed(java.awt.event.ActionEvent) : void
        public void actionPerformed(java.awt.event.ActionEvent evt) {
          buttonHelp();
        }//}}}
View Full Code Here

TOP

Related Classes of nu.lazy8.util.help.DateField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.