public static void showMessage(
      Component parent, DeviceScanner scanner, BrowsableEditableData bd) {

    Window window = getWindow(parent);

    JDlgUploadProducts myMsg;
    if (window instanceof Frame) {
      myMsg = new JDlgUploadProducts((Frame) window, true);
    } else {
      myMsg = new JDlgUploadProducts((Dialog) window, true);
    }

    myMsg.init(scanner, bd);
  }
 private void btnExtrasDevicePLUsActionPerformed(java.awt.event.ActionEvent evt) {
   JDlgUploadProducts.showMessage(this, this.app, bd, m_dlSales);
 }
 private void btnScanPalActionPerformed(java.awt.event.ActionEvent evt) {
   JDlgUploadProducts.showMessage(this, app.getDeviceScanner(), bd);
 }