Original Post
hi all! ok... lets say I have a JFrame, with a JScrollPanel in it. In the JScrollPanel, I put a few JRadiobuttons. Theres a button called "save" too. I grouped the radiobuttons and all. how do I check to see which one of the radiobuttons is selected when the user presses the "save" button? I made an event handler on the button, through which I want to check the state on everyone of the radiobuttons. it seems pretty simple, but the question is... how do I get to the state of thge radiobuttons? cuz I made a method to create the gui for me: private static void createAndShowGUI(boolean isWeld) {//code here } and all the component declarations are inside that method. so how do I get to it? I mean... is there some way to refer to a component inside a component properly, maybe something of the kind: myFrame.myScrollPanel.radioButton1.isSeleted(); that i can use from OUTSIDE of the method createAndShowGUI ?? god i think its confusing... hehe