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.
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.
Pass it as a parameter to a constructor of your class.
Comment