suppose we have jframe contain ( 4 radio button--> first radio button is "sad" and second radio button is "happy" and third radio button is "very happy" and fourth radio button is "very sad"
and also contain two button under radio button ("ok" button and "cancel" button ) )
you select from one of the following radio button
hint: suppose all this is exists
you are the supporting code that will
1)change the icons for "ok" button to the selected radiobutton and
2)change the icon for "cancel" button to one that just got deselected
3)change the jframe icon to "min.gif" icon whenever jframe is minimized
4)change the jframe icon to "normal.gif" icon whenever jframe is restored from minimized state
when user process on mark "x" it should do as if user pressed on the "cancel" button
when user process on "cancel" button ,you should ask whether user really wnats to exit using joptionpane
Comments
Leave a comment