in the panel top i have three buttons, save, authorize and search, and I want to add functionality to my buttons
but my problem is that for example the button “save” is in my panel top
but my textfields are in my panel bot
how get the values???
i have the panel top and panel bot in separate classes and the two panels contain one VerticalLayout and each Vertical contain the buttons and the respectively how explain
You could for example make your bottom panel implement ClickListener, and pass that to your top panel and its buttons. That way your top panel only sees the ClickListener interface and can’t accidentally modify anything it shouldn’t in the bottom panel. Listeners are usually a better way to go than direct component references in these kinds of situations.