i m trying to write a gui java program.
i have a main screen, i declared my object in the main screen class.
in the main screen, i will call 2 jpanel. from different class
how can i make the 2 jpanel use the same object i declared on my main screen?
chern4ever
0
Light Poster
Recommended Answers
Jump to PostAre you asking how you will call these two panels to be displayed in the frame or about passing values down to these panels? Sorry, but your problem explanation is very unclear.
Jump to PostSet a listener from frame listening for keyboard panel activities and provide a public method from screen panel that frame can simply populate.
All 6 Replies
peter_budo
2,532
Code tags enforcer
Team Colleague
Featured Poster
chern4ever
0
Light Poster
peter_budo
2,532
Code tags enforcer
Team Colleague
Featured Poster
chern4ever
0
Light Poster
peter_budo
2,532
Code tags enforcer
Team Colleague
Featured Poster
chern4ever
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.