Results 1 to 6 of 6
- 06-14-2010, 02:52 PM #1
Member
- Join Date
- Jun 2010
- Posts
- 7
- Rep Power
- 0
to pass a parameter from a jframe children to its jframe mother
Hello,
I call a jframe children from a jframe mother by this:
authentification a = new authentification();
a.setVisible(true);
a.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE );
my question is:
how to pass a value of a variable from the jframe children to the jframe mother
thank you
- 06-14-2010, 03:40 PM #2
To pass value of a variable: Use a method.
in child:
mother.method(value);
- 06-14-2010, 03:49 PM #3
Member
- Join Date
- Jun 2010
- Posts
- 7
- Rep Power
- 0
thank you
I haven't a variable mother
and what metod you mean
- 06-14-2010, 03:53 PM #4
what....
jframe mother.... is an object variablehow to pass a value of a variable from the jframe children to the jframe mother
mother.method(value);
Not sure on the method question, it is easier for us to deciper if you show us all your code.:rolleyes: ~ Sno ~ :rolleyes:
'-~ B.S. Computer Science ~-'
- 06-14-2010, 04:41 PM #5
In the mother class you would define a method named method:
...
public void method(<args here>) {
.. save the args or ???
} // end
- 06-14-2010, 06:10 PM #6
Member
- Join Date
- Jun 2010
- Posts
- 7
- Rep Power
- 0
Similar Threads
-
how to pass parameter from one jsp to another jsp
By kader_sit in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 06-10-2010, 02:04 PM -
Passing data from one JFrame to another JFrame. - need help.
By Unsub in forum New To JavaReplies: 6Last Post: 04-12-2010, 11:33 AM -
Jframe pass variable to Applet
By wayn in forum AWT / SwingReplies: 0Last Post: 03-10-2010, 09:54 AM -
Passing data from one JFrame to another JFrame
By tarami in forum New To JavaReplies: 3Last Post: 08-06-2009, 05:44 PM -
How to make a Jframe un-focusable when another Jframe is active?
By Robert_85 in forum Advanced JavaReplies: 4Last Post: 04-22-2009, 11:02 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks