Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Other Java > Java GUI
Java GUI Discussions specific to programming Java GUI.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java GUI section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 22nd, 2009, 09:59 AM
Authorized User
Join Date: Feb 2009
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default Passing JPanel to Another Class Gui

Hello All,
First thanks for taking time to read my thread. My problem is I have created a Gui Class that contains multiple JPanels inside another JPanel or ContentPane.

I have just now created another Gui2 Class in the same java project and I would like this new Gui2 Class to read and display the main JPanel or ContentPane from the original Gui Class.

I keep on getting:
Exception in thread "AWT-EventQue-0" java.lang.NullPointerException Errors

Any suggestions?
Old June 25th, 2009, 05:58 AM
Friend of Wrox
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post

exception trace could help find the cause!
- Rakesh

Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing JPanel to Another Class d-mart Java Basics 1 May 29th, 2009 05:50 AM
Java Gui (Reload Class) Axar Java GUI 0 June 10th, 2006 05:35 PM
Passing Class object to WS r_ganesh76 .NET Web Services 4 October 4th, 2004 11:12 PM
Passing a class by reference James Diamond VB How-To 13 February 16th, 2004 06:07 AM
change TextArea in GUI from another class jermsv1 Java GUI 0 October 28th, 2003 02:50 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.