• Post Reply Bookmark Topic Watch Topic
  • New Topic

To pass variables to a Jframe.

 
Sandeep DSouza
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a jframe class with a button that calls another frame ..
like this
button_ action performed()
{
Jframe invScreen = new Jframe();
if (packinvScreen)
{
invScreen.repaint();
}
else
{
invScreen.validate();
}
invScreen.setVisible(true);
}
I need to know .. how to pass variables to the Jframe when Im calling it .
for example if AccountID is a global variable in frame one .. how do i pass it to frame 2.
Can someone help me with this one
thanks,
Sandeep
 
Pier Klein
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
invScreen.AccountID doesn't work?
 
Sandeep DSouza
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no .. i got the answer
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!