Passing Info Between Forms

Thread Solved

Join Date: Sep 2007
Posts: 3
Reputation: tro is an unknown quantity at this point 
Solved Threads: 0
tro tro is offline Offline
Newbie Poster

Passing Info Between Forms

 
0
  #1
Apr 14th, 2008
I am passing information between two forms. Up to now, I have passed information from one form to another. Is there another way to do this?

[DisplayDie dpDie = new DisplayDie(dp); // Getting constructor error in this line
DisplayPanel dp = new DisplayPanel(dpDie,dpDie);]

When I swap the lines, error moves to top line.

[DisplayPanel dp = new DisplayPanel(dpDie,dpDie); // Getting constructor error in this line lineDisplayDie dpDie = new DisplayDie(dp); ]
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,439
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 510
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: Passing Info Between Forms

 
0
  #2
Apr 14th, 2008
That depends entirely on the constructors you have written for DisplayDie and DisplayPanel.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 3
Reputation: tro is an unknown quantity at this point 
Solved Threads: 0
tro tro is offline Offline
Newbie Poster

Re: Passing Info Between Forms

 
0
  #3
Apr 14th, 2008
Signatures of each are:

[public DisplayPanel(final DisplayDieInterface l, final DisplayDieInterface r){...]

[public DisplayDie( final DieDisplayInterface s){ ..]
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,439
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 510
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: Passing Info Between Forms

 
0
  #4
Apr 14th, 2008
You have both DieDisplayInterface and DisplayDieInterface shown there - which is it?

The fact that the confusion arose at all is a clear sign that you should consider a better name for the interface. Is there more than one class that implements the interface? If not, will there be? If both answers are no then you don't even need a separate interface definition.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 3
Reputation: tro is an unknown quantity at this point 
Solved Threads: 0
tro tro is offline Offline
Newbie Poster

Re: Passing Info Between Forms

 
0
  #5
Apr 14th, 2008
I have corrected, thank you for your assistance
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC