private void costomedicamentosFieldKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_costomedicamentosFieldKeyTyped
        // TODO add your handling code here:
        if (!Character.isDigit(evt.getKeyChar()) && evt.getKeyChar() !='.' && !Character.isISOControl(evt.getKeyChar()))        
        {
            Toolkit.getDefaultToolkit().beep();
            evt.consume();
        }
        if(costomedicamentosField.getText().length() == 5)
        {
            Toolkit.getDefaultToolkit().beep();
            evt.consume();
            JOptionPane.showMessageDialog(this, "Costo de medicamento demadiado grande.", "ADVERTENCIA", WIDTH);
        }
    }//GEN-LAST:event_costomedicamentosFieldKeyTyped