r/javahelp • u/dg_713 • Sep 12 '19
What is the difference between "[ClassName].this.variable" and simply, "this.variable"
So I came across this class called:
AutoCompleteComboBoxListener()
with a node called comboBox.
And inside its methods, such as
selectClosestResultBasedOnTextFieldValue(),
they refer to the comboBox of AutoCompleteComboBoxListener() as
AutoCompleteComboBoxListener.this.comboBox.getItems();
Is it different from:
this.comboBox.getItems();
Thanks a lot everyone.
17
Upvotes
1
u/dg_713 Sep 16 '19
Thanks for the additional info. Can you explain further what you mean exactly when you said this?