This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes passing value from one class to another class(which extends JFrame) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "passing value from one class to another class(which extends JFrame)" Watch "passing value from one class to another class(which extends JFrame)" New topic
Author

passing value from one class to another class(which extends JFrame)

abracadabration abracadabration
Greenhorn

Joined: May 12, 2006
Posts: 2
While passing a value from a method of class A to a method in class B, I must instantiate class B in A. But when dealing with swing programs, and when I create a reference for class B (which extends JFrame) in A, it again invocates the already invocated JFrame.

How can I solve this problem?

Is there a efficient way to pass value from one class to another class without invocating destine class constructor(apart from declaring the destine method "static")?
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

You've already been told about the naming policy once; now I have to tell you about it again. You're required to use a first and last name, a real-sounding name, not gibberish. We want to feel like we're interacting with an adult person, not a robot or an eight-year-old. Real names, please. Until then, you'll find most people don't want to help you. Head back here, please, and try again.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: passing value from one class to another class(which extends JFrame)
 
Similar Threads
Call superclass from subclass
good coding style?
adding a table to a frame
Question about Mock Exam 2
Variable value passing