The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

in the main window I have a method println something, but I cant access thru parent.print();
isn't that parent the main itself or is it like an instance of the JFrame of the main instead? don't know if I explained myself

Re: sending a parameter to a new JDialog

ok I found out my mistake, I was leaving uncommented the main part that calls the constructor inside the new JDialog class, but as I was opening the JDialog from another window, I didn't need the main, so I commented and just passed the value to the constructor and everything fine, Thanks everyone!