• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java JCalendarDialog类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.openbravo.beans.JCalendarDialog的典型用法代码示例。如果您正苦于以下问题:Java JCalendarDialog类的具体用法?Java JCalendarDialog怎么用?Java JCalendarDialog使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



JCalendarDialog类属于com.openbravo.beans包,在下文中一共展示了JCalendarDialog类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: btnEndDateActionPerformed

import com.openbravo.beans.JCalendarDialog; //导入依赖的package包/类
private void btnEndDateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEndDateActionPerformed
        Date date;
        try {
            date = (Date) Formats.TIMESTAMP.parseValue(m_jEndDate.getText());
        } catch (BasicException e) {
            date = null;
        }
        date = JCalendarDialog.showCalendarTimeHours(this, date);
        if (date != null) {
            if (IsValidEndDate(date)) {
                m_jEndDate.setText(Formats.TIMESTAMP.formatValue(date));
            } else {
                MessageInf msg = new MessageInf(MessageInf.SGN_WARNING, AppLocal.getIntString("message.invalidenddate"));
                msg.show(this);
            }
        }
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:18,代码来源:LeavesView.java


示例2: btnStartDateActionPerformed

import com.openbravo.beans.JCalendarDialog; //导入依赖的package包/类
private void btnStartDateActionPerformed(java.awt.event.ActionEvent evt) {
        Date date;
        try {
            date = (Date) Formats.TIMESTAMP.parseValue(m_jStartDate.getText());
        } catch (BasicException e) {
            date = null;
        }
        date = JCalendarDialog.showCalendarTimeHours(this, date);
        if (date != null) {
            if (IsValidStartDate(date)) {
                m_jStartDate.setText(Formats.TIMESTAMP.formatValue(date));
            } else {
                MessageInf msg = new MessageInf(MessageInf.SGN_WARNING, AppLocal.getIntString("message.invalidstartdate"));
                msg.show(this);
            }
        }
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:18,代码来源:LeavesView.java


示例3: btnValidFromActionPerformed

import com.openbravo.beans.JCalendarDialog; //导入依赖的package包/类
private void btnValidFromActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnValidFromActionPerformed

    Date date;
    try {
        date = (Date) Formats.TIMESTAMP.parseValue(m_jStartDate.getText());
    } catch (BasicException e) {
        date = null;
    }
    date = JCalendarDialog.showCalendarTimeHours(this, date);
    if (date != null) {


        DateFormat formatter_date;
        formatter_date = new SimpleDateFormat("yyyyMMdd");

        DateFormat formatter_heure;
        formatter_heure = new SimpleDateFormat("HH");

        String _date = formatter_date.format(date);
        String _heure = formatter_heure.format(date);
        m_jStartDate.setText(Formats.STRING.formatValue(_date));
        m_jStartHour.setText(Formats.STRING.formatValue(_heure));
    }

    }
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:26,代码来源:PromoEditor.java


示例4: btnValidToActionPerformed

import com.openbravo.beans.JCalendarDialog; //导入依赖的package包/类
private void btnValidToActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnValidToActionPerformed

    Date date;
    try {
        date = (Date) Formats.TIMESTAMP.parseValue(m_jEndDate.getText());
    } catch (BasicException e) {
        date = null;
    }
    date = JCalendarDialog.showCalendarTimeHours(this, date);
    if (date != null) {


        DateFormat formatter_date;
        formatter_date = new SimpleDateFormat("yyyyMMdd");

        DateFormat formatter_heure;
        formatter_heure = new SimpleDateFormat("HH");

        String _date = formatter_date.format(date);
        String _heure = formatter_heure.format(date);

        m_jEndDate.setText(Formats.STRING.formatValue(_date));
        m_jEndHour.setText(Formats.STRING.formatValue(_heure));
    }
    }
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:26,代码来源:PromoEditor.java


示例5: m_jbtndateActionPerformed

import com.openbravo.beans.JCalendarDialog; //导入依赖的package包/类
private void m_jbtndateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_m_jbtndateActionPerformed

        Date date;
        try {
            date = (Date) Formats.TIMESTAMP.parseValue(m_jdate.getText());
        } catch (BasicException e) {
            date = null;
        }
        date = JCalendarDialog.showCalendarTime(this, date);
        if (date != null) {
            m_jdate.setText(Formats.TIMESTAMP.formatValue(date));
        }
        java.awt.EventQueue.invokeLater(new Runnable() {
            @Override
            public void run() {
                m_jKeyFactory.requestFocus();
            }
        });
    }
 
开发者ID:nordpos,项目名称:nordpos,代码行数:20,代码来源:StockManagement.java


示例6: btnDateStartActionPerformed

import com.openbravo.beans.JCalendarDialog; //导入依赖的package包/类
private void btnDateStartActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDateStartActionPerformed
    Date date;
        try {
            date = (Date) Formats.TIMESTAMP.parseValue(jTxtStartDate.getText());
        } catch (BasicException e) {
            date = null;
        }        
        date = JCalendarDialog.showCalendarTimeHours(this, date);
        if (date != null) {
            jTxtStartDate.setText(Formats.TIMESTAMP.formatValue(date));
        }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:13,代码来源:JTicketsFinder.java


示例7: btnDateEndActionPerformed

import com.openbravo.beans.JCalendarDialog; //导入依赖的package包/类
private void btnDateEndActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDateEndActionPerformed
Date date;
        try {
            date = (Date) Formats.TIMESTAMP.parseValue(jTxtEndDate.getText());
        } catch (BasicException e) {
            date = null;
        }        
        date = JCalendarDialog.showCalendarTimeHours(this, date);
        if (date != null) {
            jTxtEndDate.setText(Formats.TIMESTAMP.formatValue(date));
        }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:13,代码来源:JTicketsFinder.java


示例8: m_jbtndateActionPerformed

import com.openbravo.beans.JCalendarDialog; //导入依赖的package包/类
private void m_jbtndateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_m_jbtndateActionPerformed
    
    Date date;
    try {
        date = (Date) Formats.TIMESTAMP.parseValue(m_jdate.getText());
    } catch (BasicException e) {
        date = null;
    }        
    date = JCalendarDialog.showCalendarTime(this, date);
    if (date != null) {
        m_jdate.setText(Formats.TIMESTAMP.formatValue(date));
    }
    
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:15,代码来源:StockDiaryEditor.java


示例9: btnValidFromActionPerformed

import com.openbravo.beans.JCalendarDialog; //导入依赖的package包/类
private void btnValidFromActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnValidFromActionPerformed

        Date date;
        try {
            date = (Date) Formats.TIMESTAMP.parseValue(txtValidFrom.getText());
        } catch (BasicException e) {
            date = null;
        }
        date = JCalendarDialog.showCalendarTimeHours(this, date);
        if (date != null) {
            txtValidFrom.setText(Formats.TIMESTAMP.formatValue(date));
        }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:14,代码来源:TaxEditor.java


示例10: btnDateStartActionPerformed

import com.openbravo.beans.JCalendarDialog; //导入依赖的package包/类
private void btnDateStartActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDateStartActionPerformed

        Date date;
        try {
            date = (Date) Formats.TIMESTAMP.parseValue(jTxtStartDate.getText());
        } catch (BasicException e) {
            date = null;
        }        
        date = JCalendarDialog.showCalendarTimeHours(this, date);
        if (date != null) {
            jTxtStartDate.setText(Formats.TIMESTAMP.formatValue(date));
        }             
    }
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:14,代码来源:JParamsDatesInterval.java


示例11: btnDateEndActionPerformed

import com.openbravo.beans.JCalendarDialog; //导入依赖的package包/类
private void btnDateEndActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDateEndActionPerformed

        Date date;
        try {
            date = (Date) Formats.TIMESTAMP.parseValue(jTxtEndDate.getText());
        } catch (BasicException e) {
            date = null;
        }        
        date = JCalendarDialog.showCalendarTimeHours(this, date);
        if (date != null) {
            jTxtEndDate.setText(Formats.TIMESTAMP.formatValue(date));
        }          
    }
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:14,代码来源:JParamsDatesInterval.java


示例12: m_jbtndateActionPerformed

import com.openbravo.beans.JCalendarDialog; //导入依赖的package包/类
private void m_jbtndateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_m_jbtndateActionPerformed

        Date date;
        try {
            date = (Date) Formats.TIMESTAMP.parseValue(m_jdate.getText());
        } catch (BasicException e) {
            date = null;
        }
        date = JCalendarDialog.showCalendarTime(this, date);
        if (date != null) {
            m_jdate.setText(Formats.TIMESTAMP.formatValue(date));
        }
    }
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:14,代码来源:StockManagement.java



注:本文中的com.openbravo.beans.JCalendarDialog类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Authenticator类代码示例发布时间:2022-05-22
下一篇:
Java EJBClientContext类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap