Skip to content

Instantly share code, notes, and snippets.

@ryanjaeb
Created October 22, 2014 15:44
Show Gist options
  • Save ryanjaeb/44481b0a6b1a8ee58c4e to your computer and use it in GitHub Desktop.
Save ryanjaeb/44481b0a6b1a8ee58c4e to your computer and use it in GitHub Desktop.
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Slider;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TableView;
import javafx.stage.Stage;
public class TableMenuButtonOverlapsColumns extends Application {
@Override
public void start(Stage primaryStage) throws Exception {
TableView<String> table = new TableView<>();
table.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
table.setTableMenuButtonVisible(true);
TableColumn<String, String> column = new TableColumn<>();
column.setGraphic(new Slider());
table.getColumns().add(column);
primaryStage.setScene(new Scene(table));
primaryStage.show();
}
public static void main(String[] args) {
launch();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment