How to call super.super.class object? [duplicate]










0
















This question already has an answer here:



  • How do you get a reference to the enclosing class from an anonymous inner class in Java? [duplicate]

    3 answers



  • Getting hold of the outer class object from the inner class object

    9 answers



Sorry if my title isn't correct. I am unable to think of what to write in title.



public class a extends JFrame 
a()

this.addWindowListener(new WindowAdapter()
@Override
public void windowClosing(WindowEvent we)
gameover(this.getScore());

);




In gameover(this.getScore()); I want this to refer to the object of class a, instead of the WindowAdapter object. Can anyone tell me how to do that, please ?










share|improve this question













marked as duplicate by user140547, rgettman java
Users with the  java badge can single-handedly close java questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Nov 14 '18 at 23:16


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






















    0
















    This question already has an answer here:



    • How do you get a reference to the enclosing class from an anonymous inner class in Java? [duplicate]

      3 answers



    • Getting hold of the outer class object from the inner class object

      9 answers



    Sorry if my title isn't correct. I am unable to think of what to write in title.



    public class a extends JFrame 
    a()

    this.addWindowListener(new WindowAdapter()
    @Override
    public void windowClosing(WindowEvent we)
    gameover(this.getScore());

    );




    In gameover(this.getScore()); I want this to refer to the object of class a, instead of the WindowAdapter object. Can anyone tell me how to do that, please ?










    share|improve this question













    marked as duplicate by user140547, rgettman java
    Users with the  java badge can single-handedly close java questions as duplicates and reopen them as needed.

    StackExchange.ready(function()
    if (StackExchange.options.isMobile) return;

    $('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
    var $hover = $(this).addClass('hover-bound'),
    $msg = $hover.siblings('.dupe-hammer-message');

    $hover.hover(
    function()
    $hover.showInfoMessage('',
    messageElement: $msg.clone().show(),
    transient: false,
    position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
    dismissable: false,
    relativeToBody: true
    );
    ,
    function()
    StackExchange.helpers.removeMessages();

    );
    );
    );
    Nov 14 '18 at 23:16


    This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.




















      0












      0








      0









      This question already has an answer here:



      • How do you get a reference to the enclosing class from an anonymous inner class in Java? [duplicate]

        3 answers



      • Getting hold of the outer class object from the inner class object

        9 answers



      Sorry if my title isn't correct. I am unable to think of what to write in title.



      public class a extends JFrame 
      a()

      this.addWindowListener(new WindowAdapter()
      @Override
      public void windowClosing(WindowEvent we)
      gameover(this.getScore());

      );




      In gameover(this.getScore()); I want this to refer to the object of class a, instead of the WindowAdapter object. Can anyone tell me how to do that, please ?










      share|improve this question















      This question already has an answer here:



      • How do you get a reference to the enclosing class from an anonymous inner class in Java? [duplicate]

        3 answers



      • Getting hold of the outer class object from the inner class object

        9 answers



      Sorry if my title isn't correct. I am unable to think of what to write in title.



      public class a extends JFrame 
      a()

      this.addWindowListener(new WindowAdapter()
      @Override
      public void windowClosing(WindowEvent we)
      gameover(this.getScore());

      );




      In gameover(this.getScore()); I want this to refer to the object of class a, instead of the WindowAdapter object. Can anyone tell me how to do that, please ?





      This question already has an answer here:



      • How do you get a reference to the enclosing class from an anonymous inner class in Java? [duplicate]

        3 answers



      • Getting hold of the outer class object from the inner class object

        9 answers







      java oop






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 14 '18 at 23:07









      Ish ChhabraIsh Chhabra

      186




      186




      marked as duplicate by user140547, rgettman java
      Users with the  java badge can single-handedly close java questions as duplicates and reopen them as needed.

      StackExchange.ready(function()
      if (StackExchange.options.isMobile) return;

      $('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
      var $hover = $(this).addClass('hover-bound'),
      $msg = $hover.siblings('.dupe-hammer-message');

      $hover.hover(
      function()
      $hover.showInfoMessage('',
      messageElement: $msg.clone().show(),
      transient: false,
      position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
      dismissable: false,
      relativeToBody: true
      );
      ,
      function()
      StackExchange.helpers.removeMessages();

      );
      );
      );
      Nov 14 '18 at 23:16


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









      marked as duplicate by user140547, rgettman java
      Users with the  java badge can single-handedly close java questions as duplicates and reopen them as needed.

      StackExchange.ready(function()
      if (StackExchange.options.isMobile) return;

      $('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
      var $hover = $(this).addClass('hover-bound'),
      $msg = $hover.siblings('.dupe-hammer-message');

      $hover.hover(
      function()
      $hover.showInfoMessage('',
      messageElement: $msg.clone().show(),
      transient: false,
      position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
      dismissable: false,
      relativeToBody: true
      );
      ,
      function()
      StackExchange.helpers.removeMessages();

      );
      );
      );
      Nov 14 '18 at 23:16


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
























          0






          active

          oldest

          votes

















          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes

          Popular posts from this blog

          Use pre created SQLite database for Android project in kotlin

          Darth Vader #20

          Ondo