|
-
Jul 21st, 2005, 03:26 AM
#1
Thread Starter
Addicted Member
reference to parrent component
How to get referende to parrent component?
-
Jul 21st, 2005, 06:50 AM
#2
Frenzied Member
Re: reference to parrent component
-
Jul 21st, 2005, 08:33 AM
#3
Thread Starter
Addicted Member
Re: reference to parrent component
Thanks
is there any way to find top most component without looping?
-
Jul 21st, 2005, 11:09 AM
#4
Frenzied Member
Re: reference to parrent component
What do you mean by that? The top most level is the Object class. Are you talking about trying to get a reference to a component that is at the very top of the frame?
-
Jul 21st, 2005, 08:18 PM
#5
Re: reference to parrent component
just have a reference of the topmost frame w/in your class. ... If you don't want to loop it.
-
Jul 22nd, 2005, 07:32 AM
#6
Re: reference to parrent component
I think he means component in the swing sense, which you get by calling getParent().
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jul 22nd, 2005, 07:34 AM
#7
Dazed Member
Re: reference to parrent component
Corect you are CornedBee. Nice to see you are back.
-
Jul 22nd, 2005, 07:42 AM
#8
Re: reference to parrent component
Back from where? I've been here all the time - just didn't find many questions that tickled my fancy.
In fact, I'll be gone for three weeks now.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jul 22nd, 2005, 01:37 PM
#9
Dazed Member
Re: reference to parrent component
Posted by CornedBee
Back from where? I've been here all the time - just didn't find many questions that tickled my fancy.
I was just kidding.
In fact, I'll be gone for three weeks now.
I don't remember authorizing any vacation time.
-
Jul 25th, 2005, 12:33 AM
#10
Thread Starter
Addicted Member
Re: reference to parrent component
I mean, to get reference to the JFrame but getParent() gives me contentpane.
I am using my menu in a different class and and I attached it to Jframe in diffrent class now I want to reference the JFrame for the menu.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|