I am doing the panel but I have created two different panel for the background image and the button. How can I add them together ??
You could try adding them to the same group to display them simultaneously.
That's how my group added text and everything. We put the road in the group first and then added everything after that. The code is .getChildren().add(variable)