Are there any alternatives to JFrame that can be used as a parent Frame?
Welcome to the Java Programming Forums
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.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Are there any alternatives to JFrame that can be used as a parent Frame?
What do you want to show in the window?
What is the problem with JFrame?
If you don't understand my answer, don't ignore it, ask a question.
There is no problem just wondering if there is an alternative, I want it to act as the parent for the FileDialog.
What options does the API doc have for that?
If you don't understand my answer, don't ignore it, ask a question.
It says Frame parent as the first parameter, JFrame is one type of Frame that would satisfy this condition I was wondering if there would be anything else.
The only choices are what are listed in the API doc. Which have you tried?
What problem(s) are you having using them?
Often another choice is null.
If you don't understand my answer, don't ignore it, ask a question.
Thanks anyway, I'll continue to use JFrame.
You can use a JDialog to do anything you can do with a JFrame and more. As Norm asked, it would be helpful to know WHY you've asked, but if you just have a random curiosity that's keeping you up nights, that's okay too.
keepStriving (March 2nd, 2014)