java - JRadioButton and component changes -
i created jdialog box has 2 radio button change jlabel whenever clicked other button(for example: monthly salary when click full time button , hourly pay when click part time button)
so questions how do that? create actionlistener radiobutton , create jpanel inside the actionperformed class?
i think best way go create action listener button. when 1 selected change text monthlabel.settext("monthly salary");
Comments
Post a Comment