Stack Exchange
Javafx acces to parent controller from nasted controler
My main controller is frameController and i have 4 more controllers what have ObservableList. I planning take 4 list declaration to frameController from another controllers. 
Ok It's my frame controller
public class frameController extends BorderPane {
    @FXML public BorderPane main;
    @FXML public ProductPSController productPS;
    @FXML public OrderPSController orderPS;
    @FXML public OrderSUController orderSU;
    @FXML public ProductSUController productSU;
    static final Logger logger = LogManager.getLogger(frameController.class.getName());
    Stage p;

i need add this line    
public ObservableList<ProductPS> data = FXCollections.observableArrayList();

And this is my fxml
<fx:root type="javafx.scene.layout.BorderPane" xmlns:fx="http://javafx.com/fxml" prefWidth="1024" fx:id="main" >
    <padding>
            <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
    </padding> 
    <top>
    <MenuBar fx:id="menuBar" >
      <menus>
         <Menu text="Dane">
            <items>
               <MenuItem text="Importuj produkty Subiekta do CSV"  onAction="#handleNew"/>
            </items>
         </Menu>
         <Menu text="Pomoc">
            <items>
               <MenuItem text="O programie"  onAction="#About"/>
            </items>
         </Menu>
         </menus>
         </MenuBar>
         </top>
         <center>
        <TabPane>
        <tabs>
            <Tab text="ProduktyPS">
                <content>
                    <ProductPSController fx:id="productPS" ></ProductPSController>
                </content>
            </Tab>
            <Tab text="ProduktySU">
                <content>
                    <ProductSUController fx:id="productSU" ></ProductSUController>
                </content>
            </Tab>
            <Tab text="ZamówieniaPS">
                <content>
                    <OrderPSController fx:id="orderPS" ></OrderPSController>
                </content>
            </Tab>
            <Tab text="ZamówieniaSU">
                <content>
                    <OrderSUController fx:id="orderSU" ></OrderSUController>
                </content>
                </Tab>


                <!-- 


             <Tab text="ProduktyWF">
                <content>
                    <ProductWFController fx:id="productWF" ></ProductWFController>
                </content>
            </Tab>
            -->

            </tabs>
        </TabPane>
    </center>
</fx:root>

One of my Controller
public class ProductPSController extends BorderPane{
    @FXML public TableColumn<ProductPS, String> produkt;
    @FXML public TableColumn<ProductPS, String> symbol;
    @FXML public TableColumn<ProductPS, String> atrybuty;
    @FXML public TableColumn<ProductPS, Integer> id;
    @FXML public TableColumn<ProductPS, Integer> stock;
    @FXML public TableColumn<ProductPS, Integer> count;
    @FXML public TableColumn<ProductPS, Integer> price;
    @FXML public TableView <ProductPS> tab;
    @FXML public BorderPane produkty;

And now how to acces data list from frameController in ProductPSController
I was try using produkty.getParent() but returning null.
