try
A.this.putData();
On Tuesday 06 November 2001 02:47, flora yuan wrote:
> Hi,
> class B is inner class of A. I want to invoke method putdate() which is
> defined in class A from inner class B. what's the syntax?
>
> public class A{
>
Hi,
class B is inner class of A. I want to invoke method putdate() which is
defined in class A from inner class B. what's the syntax?
public class A{
public void putData(){
..
}
protected class B{
public void doSomething{
putData();//need to invoke m
Daniele
Here is some code I put together showing the three forms of inner
classes, this may help you understand what is going wrong. I also
think your code didn't work because the was a logical error, with
the events somewhere.
Robert Fitzsimons
[EMAIL PROTECTED]
// Test.java
import java.awt.
Daniele
Here is some code I put together showing the three forms of inner
classes, this may help you understand what is going wrong. I also
think your code didn't work because the was a logical error, with
the events somewhere.
Robert Fitzsimons
[EMAIL PROTECTED]
// Test.java
import java.awt.
Marcus,
I've tried to modify my code a little bit, hoping to keep the possibility
to extend the inner class. The idea is: avoid having Dialog1 implementing
ActionListener; give him instead a member function which does everything
actionPerformed should do, but which has a different name
OTECTED]
> Oggetto: Re: Problem extending an inner class
> Data: martedì 16 giugno 1998 16.22
>
> Daniele,
>
> I got a chance to try this suggestion. The suggester says it worked for
> him, but it didn't work for me on my Win95 machine running Sun's JDK
1.1.5
> . Have
Daniele,
I got a chance to try this suggestion. The suggester says it worked for
him, but it didn't work for me on my Win95 machine running Sun's JDK 1.1.5
. Have you come up with anything further?
Marcus
On Mon, 15 Jun 1998, Marcus Johnson wrote:
> Daniele,
>
> I shared this problem on an
Daniele,
I shared this problem on another Java forum and here's the first answer I
got. I haven't had a chance to try out the suggestion, but here it is:
Posted by Surya Duggirala <[EMAIL PROTECTED]> on June 15, 1998 at 16:19:12:
In Reply to: Problem extending inner classes
In the actionPerf
Okay, I haven't had a chance to thoroughly analyze this, but I can see
that there is something wrong with the super.actionPerformed (aevt);
line. My guess is that somehow the action event you're passing to the is
not properly instantiated, or something along the lines of needing to
supply a no a
Could somebody try the following application? It raises a null pointer
exception when class Dialog2, extending class Dialog1, tries to access a
data member of the outer class.
Please consider that I am really a java newbie (about 10 days of
programming) so I'm not saying I've found a bug, the prob
10 matches
Mail list logo