Reputation: 88
I am trying to use JRadioButtons and ButtonGroup in my project.I am using Eclipse IDE and when I am adding JRadioButtons to the ButtonGroup it is showing error.
on moving arrow on these these red crosses it is showing multiple markers at this line
Upvotes: 0
Views: 384
Reputation: 1695
It would be better to put a little more code, but as I guess from the picture, you are trying to set attributes to the initialized fields outside of any method or constructor, which gives a compiler error. Move the setting of attributes inside the constructor or any method and your errors will be resolved.
Upvotes: 1