logo
  • 教程列表
  • SO官方文檔
  • 單選按鈕
    • 建立單選按鈕
    • 在單選按鈕上使用組
    • Radio Buttons 的活動
    • 請求關注單選按鈕
  1. StackOverflow 文件
  2. javafx 教程
  3. 單選按鈕
  4. 請求關注單選按鈕

請求關注單選按鈕

Created: November-22, 2018

假設使用 setSelected(Boolean) 預先選擇了三個中的第二個 RadioButton,預設情況下焦點仍然是第一個 RadioButton。要改變這一點,請使用 requestFocus() 方法。

radioButton2.setSelected(true);
radioButton2.requestFocus();
  • Radio Buttons 的活動

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明