Re: inner class

2001-11-06 Thread Rob Saul
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{ >

inner class

2001-11-06 Thread flora yuan
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

Re: More problems extending an inner class

1998-06-17 Thread Robert Fitzsimons
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.

Re: More problems extending an inner class

1998-06-17 Thread Robert Fitzsimons
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.

More problems extending an inner class

1998-06-17 Thread Daniele Lugli
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

R: Problem extending an inner class

1998-06-17 Thread Daniele Lugli
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

Re: Problem extending an inner class

1998-06-16 Thread Marcus Johnson
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

Re: Problem extending an inner class

1998-06-15 Thread Marcus Johnson
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

Re: Problem extending an inner class

1998-06-13 Thread Marcus Johnson
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

Problem extending an inner class

1998-06-13 Thread Daniele Lugli
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