on this Java road I am hitting some big bumps, this one, which seems so simple, is just not possible for me to work out on my own.
I have searched the wild west internet and as usual there is just too much information and I have no idea which bit is correct, and none of the options I tried have worked for me.
so to the issue.
in xojo I have a GUI, in that GUI I have a textarea.
in a method in the WINDOW I do this:-
textarea1.Text = “HOLA”//inside the method which is part of the WINDOW
there is a BUTTON that calls this method and prints the text.
I then make a MODULE or CONTAINER, whatever, something not within the WINDOW immediate scope.
so I make another method in this container called ‘Print_Hello()’
I then make the BUTTON call ‘PrintHello()’ and this code runs:-
WINDOW.textarea1.Text = “Hello”
so two issues to solve, one is get the button to call a function in a different ‘class’ (I think its a class) and then that function to reference the textarea and set its TEXT parameter.
my OOP is not up to speed and the terminology in Java is above my current understanding, a nice example would be super fine so I can move on up the java food chain.
and before any messages tell me I should not code like the above, ITS JUST AN EXAMPLE TO SHOW THE POINT.
thank you in advance.