Compare commits
No commits in common. "f23a596f47e6d6c920d219b56dcffe174866f2f0" and "59be5048d80498bd1907181da1a65ad063f204cd" have entirely different histories.
f23a596f47
...
59be5048d8
@ -28,15 +28,15 @@ public class CreateEventController {
|
||||
@FXML
|
||||
protected JFXComboBox<String> comboBoxPriority;
|
||||
@FXML
|
||||
protected JFXToggleButton toggleBtnIsFullDay;
|
||||
private JFXToggleButton toggleBtnIsFullDay;
|
||||
@FXML
|
||||
protected JFXToggleButton toggleBtnIsPrivate;
|
||||
private JFXToggleButton toggleBtnIsPrivate;
|
||||
@FXML
|
||||
private Label labelError;
|
||||
@FXML
|
||||
protected JFXTimePicker timeStart;
|
||||
private JFXTimePicker timeStart;
|
||||
@FXML
|
||||
protected JFXTimePicker timeEnd;
|
||||
private JFXTimePicker timeEnd;
|
||||
|
||||
|
||||
public CreateEventController() {
|
||||
|
@ -4,8 +4,6 @@ import helper.HttpRequestException;
|
||||
import container.DataController;
|
||||
import container.Event;
|
||||
|
||||
import java.time.LocalTime;
|
||||
|
||||
public class EditEventController extends CreateEventController{
|
||||
|
||||
private Event currentEvent;
|
||||
@ -21,17 +19,7 @@ public class EditEventController extends CreateEventController{
|
||||
datePickerDate.setValue(currentEvent.getDate().toLocalDate());
|
||||
comboBoxPriority.getSelectionModel().select(currentEvent.getPriority());
|
||||
|
||||
try{
|
||||
timeStart.setValue(LocalTime.parse(currentEvent.getStart()));
|
||||
}catch (Exception e){}
|
||||
|
||||
|
||||
try{
|
||||
timeEnd.setValue(LocalTime.parse(currentEvent.getEnd()));
|
||||
}catch (Exception e){}
|
||||
|
||||
toggleBtnIsFullDay.setSelected(currentEvent.isFullDay());
|
||||
toggleBtnIsPrivate.setSelected(currentEvent.isPrivate());
|
||||
//timeEnd.setValue(currentEvent.getEnd());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -57,7 +57,7 @@ public class MainApplication extends Application {
|
||||
scene.getStylesheets().add(Objects.requireNonNull(
|
||||
MainApplication.class.getResource("main-view.css")).toExternalForm()
|
||||
);
|
||||
stage.setTitle("SharePlanner");
|
||||
stage.setTitle("SharePlaner");
|
||||
stage.setScene(scene);
|
||||
stage.show();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user