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?

example

i think best way go create action listener button. when 1 selected change text monthlabel.settext("monthly salary");


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -