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

python - Overwriting the save method of a Django model -

java - how to browse all messages from 2 different MQQueue in the same function? -

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