Thanks a lot, texus!!
I feel a bit embarrassed now since the solution would have been so much easier as you just stated.
Well, when I said that I only pass the window, I had my first logical mistake already.
I am actually passing everything and not just the window.
Therefore I now declared your gui at the same place where I define my window.
Then I pass this object to my constructor and do the rest as I wanted.
Well and sorry, I should have checked your documentation for the gui.setWindow().
However you really helped me a lot in the end!!! Also with such an incredible quick reply, wow.
I am amazed by your passion, keep it up! Have a great day!
I feel a bit embarrassed now since the solution would have been so much easier as you just stated.
Well, when I said that I only pass the window, I had my first logical mistake already.
I am actually passing everything and not just the window.
Therefore I now declared your gui at the same place where I define my window.
Then I pass this object to my constructor and do the rest as I wanted.
Well and sorry, I should have checked your documentation for the gui.setWindow().
However you really helped me a lot in the end!!! Also with such an incredible quick reply, wow.
I am amazed by your passion, keep it up! Have a great day!