如何设置myapp.herokuapp.com mx记录指向mx.sendgrid.net?(How to set myapp.herokuapp.com mx record to point to mx.sendgrid.net?)
我试图让我的邮件交换器记录指向sendgrid,但我似乎无法在heroku上找到该选项。 有谁知道这个设置的位置?
I am trying to get my mail exchanger record to point to sendgrid, but I cannot seem to find the option on heroku. Does anyone know where this setting is located?
原文:https://stackoverflow.com/questions/20871914
满意答案
您希望
e.getSource()
是输入的数字,但您得到的是导致事件发生的TextField
。 您无法使用<
或TextField
将TextField
与数字进行比较。由于您直接在
TextField
上注册ActionListener
,因此您无需检查事件的来源。 你知道它将是TextField
。你想要做的是:
在事件的情况下(
actionPerformed()
仅在TextField中发生操作时被调用),如果按下的键是Enter
,则从TextField
获取数字并检查其值。You expect
e.getSource()
to be the number entered, but what you get is theTextField
which caused the event to happen. You can't compare aTextField
to a number using<
or such.Since you register the
ActionListener
directly on theTextField
, you don't have to check the source of the event. You know it will be theTextField
.What you want to do is :
In the case of an event (the
actionPerformed()
only gets called when an action happened in the TextField), if the key pressed wasEnter
, get the number from theTextField
and check its value.
相关问答
更多对text.flash类型的值进行隐式强制:TextField为不相关的Int(Implicit Coercion of a value of a type of text.flash:TextField to an unrelated Int)
限制textField中的字符和字符长度(_:shouldChangeCharactersInRange:replacementString :)(Limiting characters and character length in textField(_:shouldChangeCharactersInRange:replacementString:))
如何将JTextField输入转换为int以进行验证?(How can I convert JTextField input into int for validation?)
TextField输入无效(TextField input not working)
来自textfield的Java int(Java int from textfield)
将小数输入转换为int时出错(Error when converting fractional input to int)
将Textfield输入转换为int然后限制该值(Taking a Textfield input converting to an int and then limiting the value)
arc4random使用textField的输入(arc4random using input from textField)
从char转换为int(Converting from char to int)
当输入不是连续的时,将字符串转换为int(Converting strings to ints when the input is not sequential)
相关文章
更多魅族MX2去除smartbar教程
: study:GraphicsExample 类型值的隐式强制指令的目标是非相关类型 mx.core:IVisualElement。
How to set up Solr on Ubuntu 10.04 (or whatever)
java中list、set和map 的区别(转)
Flex 4 的问题
OSGi 中为什么还有Eclipse Extension point的方式?
13年7月memory point
Extjs 怎样将grid的record转换成Json串,然后post到下个画面?
最新问答
更多您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
在计算机拍照在哪里进入
使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
单页应用程序:页面重新加载(Single Page Application: page reload)
在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
Copyright ©2023 peixunduo.com All Rights Reserved.粤ICP备14003112号
本站部分内容来源于互联网,仅供学习和参考使用,请莫用于商业用途。如有侵犯你的版权,请联系我们(neng862121861#163.com),本站将尽快处理。谢谢合作!