Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- monday.setCellFactory(new Callback<TableColumn<DaySchedule, Lesson>, TableCell<DaySchedule, Lesson>>(){
- @Override
- public TableCell<DaySchedule, Lesson> call(TableColumn<DaySchedule, Lesson> param) {
- TableCell<DaySchedule, Lesson> cell = new TableCell<DaySchedule, Lesson>(){
- @Override
- protected void updateItem(Lesson item, boolean empty) {
- if (item != null) {
- Label info = new Label(item.getSubjectName()+item.getSubjectType()+item.getRoomNumber()+item.getLecturer());
- info.setTextAlignment(TextAlignment.CENTER);
- setGraphic(info);
- }
- }
- };
- return cell;
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement