本文整理汇总了Java中com.openbravo.beans.JNumberDialog类的典型用法代码示例。如果您正苦于以下问题:Java JNumberDialog类的具体用法?Java JNumberDialog怎么用?Java JNumberDialog使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JNumberDialog类属于com.openbravo.beans包,在下文中一共展示了JNumberDialog类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: readWeight
import com.openbravo.beans.JNumberDialog; //导入依赖的package包/类
/**
*
* @return
* @throws ScaleException
*/
@Override
public Double readWeight() throws ScaleException {
// Set title for grams Kilos, ounzes, pounds, ...
return JNumberDialog.showEditNumber(parent, AppLocal.getIntString("label.scale"), AppLocal.getIntString("label.scaleinput"), new ImageIcon(ScaleDialog.class.getResource("/com/openbravo/images/ark2.png")));
}
示例2: m_jKeypadDiscountMoneyActionPerformed
import com.openbravo.beans.JNumberDialog; //导入依赖的package包/类
private void m_jKeypadDiscountMoneyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_m_jKeypadDiscountMoneyActionPerformed
Double dPercent = JNumberDialog.showEditNumber(this, AppLocal.getIntString("message.setdiscountmoney"));
if (dPercent != null && dPercent != 0.0) {
performDiscountMoney(dPercent);
} else {
java.awt.Toolkit.getDefaultToolkit().beep();
}
}
示例3: readWeight
import com.openbravo.beans.JNumberDialog; //导入依赖的package包/类
public Double readWeight() throws ScaleException {
// Set title for grams Kilos, ounzes, pounds, ...
return JNumberDialog.showEditNumber(parent, AppLocal.getIntString("label.scale"), AppLocal.getIntString("label.scaleinput"), new ImageIcon(ScaleDialog.class.getResource("/com/openbravo/images/ark2.png")));
}