Your question is a little ambiguous. It isn't clear whether the line that registers the listener is inside or outside of initComponent. If it's inside then you can just reference your variables by...