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

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -