How to call super.super.class object? [duplicate]
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 ?
java oop
marked as duplicate by user140547, rgettman
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.
add a comment |
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 ?
java oop
marked as duplicate by user140547, rgettman
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.
add a comment |
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 ?
java oop
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
java oop
asked Nov 14 '18 at 23:07
Ish ChhabraIsh Chhabra
186
186
marked as duplicate by user140547, rgettman
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
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.
add a comment |
add a comment |
0
active
oldest
votes
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes