내 스윙 애플리케이션에 5 개의 JRadio 버튼이 있습니다. 내 Jradio 버튼을 클릭하면 클릭 대화 상자를 만들어 대화 상자에 표시했습니다. 그러나 선택을 취소하면 선택한 것으로 표시됩니다. 문제가 무엇입니까? 내 Jradio 버튼 코딩 중 하나입니다. JRadio 버튼이 선택되고 선택 해제 된 것을 보여주는 방법은 무엇입니까?
private void jRadioButton1ActionPerformed(java.awt.event.ActionEvent evt)
{
JOptionPane.showMessageDialog(null,"one is selected");
}
그래서 나는 마지막으로 당신이 button.isSelected을 (호출 할 수 있도록 당신은 JRadioButton의 개체에 대한 참조를 필요
그 코드를 사용하면 진행 상황을 알 수 없습니다. –
Neil이 도움이 되었다면, 그의 대답을 upvote하고 수락하십시오. 문제를 파헤 치기 위해 –