mirror of
https://github.com/robertvokac/time-calc.git
synced 2025-03-25 07:27:49 +01:00
Components were reorganized II
This commit is contained in:
parent
59278eff62
commit
b5a17d8e8f
@ -224,7 +224,7 @@ public class MainWindow extends TWindow {
|
|||||||
throw new PropertyVetoException("Overtime must not be empty.", new PropertyChangeEvent(e.getSource(), e.getPropertyName(), e.getOldValue(), e.getNewValue()));
|
throw new PropertyVetoException("Overtime must not be empty.", new PropertyChangeEvent(e.getSource(), e.getPropertyName(), e.getOldValue(), e.getNewValue()));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.configButton = new TButton("Config");
|
this.configButton = new TButton("Config", 60);
|
||||||
configButton.addActionListener(e -> {
|
configButton.addActionListener(e -> {
|
||||||
if (configWindow == null) {
|
if (configWindow == null) {
|
||||||
this.configWindow = new ConfigWindow(timeCalcConfiguration);
|
this.configWindow = new ConfigWindow(timeCalcConfiguration);
|
||||||
@ -259,14 +259,14 @@ public class MainWindow extends TWindow {
|
|||||||
//
|
//
|
||||||
timeCalcConfiguration.saveToTimeCalcProperties();
|
timeCalcConfiguration.saveToTimeCalcProperties();
|
||||||
}
|
}
|
||||||
this.workDaysButton = new TButton(allowOnlyBasicFeaturesProperty.getValue() ? " " : "Arrivals");
|
this.workDaysButton = new TButton(allowOnlyBasicFeaturesProperty.getValue() ? " " : "Working Days", 100);
|
||||||
this.activitiesButton = new TButton(allowOnlyBasicFeaturesProperty.getValue() ? " " : "Activities");
|
this.activitiesButton = new TButton(allowOnlyBasicFeaturesProperty.getValue() ? " " : "Activities");
|
||||||
this.restartButton = new TButton(allowOnlyBasicFeaturesProperty.getValue() ? " " : "Restart");
|
this.restartButton = new TButton(allowOnlyBasicFeaturesProperty.getValue() ? " " : "Restart");
|
||||||
this.exitButton = new TButton("Exit", 50);
|
this.exitButton = new TButton("Exit", 50);
|
||||||
this.focusButton = new TButton(allowOnlyBasicFeaturesProperty.getValue() ? " " : "Focus", 70);
|
this.focusButton = new TButton(allowOnlyBasicFeaturesProperty.getValue() ? " " : "Focus", 70);
|
||||||
this.helpButton = new TButton("Help", 60);
|
this.helpButton = new TButton("Help", 60);
|
||||||
this.weatherButton = new TButton("Weather");
|
this.weatherButton = new TButton("Weather");
|
||||||
this.commandButton = new TButton("Run", 60);
|
this.commandButton = new TButton("Run", 40);
|
||||||
this.jokeButton = new TButton("Joke", 60);
|
this.jokeButton = new TButton("Joke", 60);
|
||||||
this.aboutButton = new AboutButton();
|
this.aboutButton = new AboutButton();
|
||||||
|
|
||||||
@ -741,13 +741,14 @@ public class MainWindow extends TWindow {
|
|||||||
}
|
}
|
||||||
////////
|
////////
|
||||||
//
|
//
|
||||||
configButton.setBoundsFromTop(dayLabel);
|
|
||||||
workDaysButton.setBoundsFromLeft(configButton);
|
workDaysButton.setBoundsFromTop(dayLabel);
|
||||||
activitiesButton.setBoundsFromLeft(workDaysButton);
|
activitiesButton.setBoundsFromLeft(workDaysButton);
|
||||||
|
configButton.setBoundsFromLeft(activitiesButton);
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
helpButton.setBoundsFromLeft(activitiesButton);
|
helpButton.setBoundsFromLeft(configButton);
|
||||||
focusButton.setBoundsFromLeft(helpButton);
|
focusButton.setBoundsFromLeft(helpButton);
|
||||||
commandButton.setBoundsFromLeft(focusButton);
|
commandButton.setBoundsFromLeft(focusButton);
|
||||||
jokeButton.setBoundsFromLeft(commandButton);
|
jokeButton.setBoundsFromLeft(commandButton);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user