Commit 0393c8c3 authored by Lulu Luong's avatar Lulu Luong

#55

parent ba0e9be2
Pipeline #30582 passed with stages
in 56 seconds
......@@ -55,6 +55,11 @@ public class VariableAssignmentWindow extends TabPane {
TableColumn decl_typeCol = new TableColumn("Type");
TableColumn decl_valCol = new TableColumn("Value");
//Set Colums width proportional to windows with
decl_varCol.prefWidthProperty().bind(declarative_tableView.widthProperty().divide(3));
decl_typeCol.prefWidthProperty().bind(declarative_tableView.widthProperty().divide(3));
decl_valCol.prefWidthProperty().bind(declarative_tableView.widthProperty().divide(3));
decl_varCol.setCellValueFactory(
new PropertyValueFactory<VariableModel,String>("varname")
);
......@@ -73,6 +78,10 @@ public class VariableAssignmentWindow extends TabPane {
TableColumn spec_typeCol = new TableColumn("Type");
TableColumn spec_valCol = new TableColumn("Value");
//Set Colums width proportional to windows with
spec_varCol.prefWidthProperty().bind(special_tableView.widthProperty().divide(3));
spec_typeCol.prefWidthProperty().bind(special_tableView.widthProperty().divide(3));
spec_valCol.prefWidthProperty().bind(special_tableView.widthProperty().divide(3));
spec_varCol.setCellValueFactory(
new PropertyValueFactory<VariableModel,String>("varname")
......@@ -84,7 +93,6 @@ public class VariableAssignmentWindow extends TabPane {
new PropertyValueFactory<VariableModel,String>("varval")
);
special_tableView.setItems(specialModel);
special_tableView.getColumns().addAll(spec_varCol, spec_typeCol, spec_valCol);
......
......@@ -9,7 +9,7 @@
prefHeight="400.0" prefWidth="600.0">
<tabs>
<Tab text="Variables">
<TableView fx:id="declarative_tableView"></TableView>
<TableView fx:id="declarative_tableView" ></TableView>
</Tab>
<Tab text="Special Variables">
<TableView fx:id="special_tableView"></TableView>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment