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

How to run C# code using mono without Xamarin in Android? -

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -