<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    kooyee ‘s blog

    開源軟件, 眾人努力的結晶, 全人類的共同財富
    posts - 103, comments - 55, trackbacks - 0, articles - 66
       :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理
    1.
    mouse clicked與 mouse pressed 的區別

    前者是在同一個位置press和release才觸發事件,執行操作. 如果在用戶一個位置按下鼠標后改變了主意,則移動到另一個位置(按鈕外面)放開就會取消操作(不執行操作).


    而后者只是觸發press事件, 也就是說按下鼠標就執行操作




    2.

    The text field fires three events: a key-pressed event, a key-typed event, and a key-released event.
    Note :
    the key-typed event doesn't have key code information.
    key-pressed and key-released events don't have key character information.

    用來檢驗text changed可以用key-released events. 因為它能夠通過getText()得到textfield中改變后的text.  而 key-pressed event, key-typed event 得到的是改變前的文字

  • Press and release the Shift key.
    The text field fires two events: a key-pressed and a key-released. The text field doesn't fire a key-typed event because Shift, by itself, doesn't correspond to any character.

     

  • Type an uppercase 'A' by pressing the Shift and A keys.
    You'll see the following events, although perhaps not in this order: key-pressed (Shift), key-pressed (A), key typed ('A'), key-released (A), key-released (Shift). Note that Shift is listed as the modifier key for the key-typed and key-pressed events.

     

  • Type an uppercase 'A' by pressing and releasing the Caps Lock key, and then pressing the A key.
    You should see the following events: key-pressed (Caps Lock), key-pressed (A), key typed ('A'), key-released (A). Note that Caps Lock is not listed as a modifier key.

     

  • Press the Tab key. No Tab key-pressed or key-released events are received by the key event listener. This is because the focus subsystem consumes focus traversal keys, such as Tab and Shift Tab. Press Tab twice more to return the focus to the text area.

     

  • Press a function key, such as F3. You'll see that the function key is an action key.

     

  • Press the left Shift key, followed by the right Shift key. The key-pressed and key-released events indicate which Shift key was typed.

     

  • Press the Num Lock key if your keyboard has a number pad. As for Caps Lock, there is a key-pressed event, but no key-released event.

     

  • Press the '2' key on the number pad. You see the key-pressed, key-typed, and key-released events for the number '2'.

     

  • Press the '2' key on the standard keyboard. Again, you see the three event messages. The key-typed events for both number 2 keys are identical same as press in number pad. But the key-pressed and key-released events indicate different key codes and different key locations.

     

  • Press the Num Lock key again. A key-released event is fired.
  • 主站蜘蛛池模板: g0g0人体全免费高清大胆视频| 亚洲人成电影网站色www| 九九久久精品国产免费看小说| 国产精品无码免费视频二三区| 亚洲中文字幕无码中文| 免费无码AV片在线观看软件| 亚洲国产中文在线视频| 91网站免费观看| 亚洲性色AV日韩在线观看| 大陆一级毛片免费视频观看i| 亚洲欧美国产日韩av野草社区| 午夜影视在线免费观看| 亚洲乱码国产乱码精华| 日韩精品成人亚洲专区| 人妻免费久久久久久久了| 亚洲精品乱码久久久久久按摩 | 好吊妞在线新免费视频| 亚洲乱理伦片在线观看中字| 免费在线观看毛片| 狠狠躁狠狠爱免费视频无码| 亚洲AV无码专区亚洲AV伊甸园| 最近免费2019中文字幕大全| 亚洲av产在线精品亚洲第一站| 国产裸模视频免费区无码| 一级A毛片免费观看久久精品| 亚洲AV永久纯肉无码精品动漫| 四虎永久在线精品免费观看视频 | 亚洲成a人在线看天堂无码| 国产精品1024在线永久免费| 久久青青成人亚洲精品| 四虎国产精品免费久久| 国产精品久久久久久亚洲小说 | 亚洲AV无码一区二区三区网址| 亚洲A∨精品一区二区三区| 十九岁在线观看免费完整版电影| 亚洲中文字幕乱码AV波多JI| 亚洲精品视频久久久| 亚洲视频在线观看免费视频| 国产成人亚洲精品91专区高清 | 亚洲伊人久久大香线蕉啊| 又爽又高潮的BB视频免费看|