By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,243 Members | 1,141 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,243 IT Pros & Developers. It's quick & easy.

calling gui component from super class

P: 63
how can i call a gui component (contentPane) from a super class to a different class ? Code would be appreciated. Thanks in advance
Feb 18 '09 #1
Share this Question
Share on Google+
3 Replies


Expert 10K+
P: 11,448
@MiziaQ
'Call something from a super class to a different class'? Please elaborate.

kind regards,

Jos
Feb 18 '09 #2

P: 63
I have a JFrame which uses a splitpane, so i'm using two panes. I want to create a new class - one in which i can use the contentPane declared in the main class.
Feb 18 '09 #3

Expert 10K+
P: 11,448
@MiziaQ
Pass it as a parameter to a constructor of your class.

kind regards,

Jos
Feb 18 '09 #4

Post your reply

Sign in to post your reply or Sign up for a free account.