In my program I would like to call a jframe called "frame1" from a main class in that jframe I have 2 jtextfield, I want to enter values in those jtextfield and then use these values in the main class but it tells me that jtextfield are in private and I can not access them what can I do ???