0

I have this project where I am trying to get a table to completely fill the screen as the user switches to a maximized view. However, despite the table expanding to fit the screen, the columns of the table are not expanding automatically. I have created a sample project to show the issue that I am facing: This is the project in minimized view

This is the project in minimized view

enter image description here This is the project in maximized view.

Is there any way to expand the columns to fit the whole table ? I am providing the FXML file as well:

<?xml version="1.0" encoding="UTF-8"?>

<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>

<AnchorPane id="AnchorPane" prefHeight="400.0" prefWidth="600.0" xmlns:fx="http://javafx.com/fxml/1" fx:controller="tesone.TestFileController">
    
</AnchorPane>


0 Answers0