Call remote getter/setter
I'm trying to implement this Java code where I want to call remote Java class and pass boolean flag:
final CheckMenuItem toolbarSubMenuNavigation = new CheckMenuItem("Navigation");
public void handle(ActionEvent e)
DataTabs.renderTab = toolbarSubMenuNavigation.isSelected();
// call here the getter setter and send boolean flag
System.out.println("subsystem1 #1 Enabled!");
Java class which I want to call:
But when I tested the code it's not working. Can you help me to fit it?
public class DataTabs
public static boolean renderTab;
public boolean isRenderTab()
public void setRenderTab(boolean renderTab)
this.renderTab = renderTab;
Re: Call remote getter/setter
What does not working mean? You also need to provide more information as to what you are trying to do. Provide a step by step description. For example: where do you create an instance of your DataTabs class? And why do you declare renderTab static?