Skip to content

Commit

Permalink
tooltip change
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffrey_wang committed Feb 2, 2017
1 parent 86e4d2f commit 4345cee
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
3 changes: 3 additions & 0 deletions src/main/java/WHS_planner/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@

public class
Main extends Application {

public static final String VERSION_NUMBER = "1.1.1";

//ON first run move jfoenix to a place it can be referenced on a remote system
private static String readKey = null;
private static MainPane mainPane;
Expand Down
14 changes: 8 additions & 6 deletions src/main/java/WHS_planner/UI/Home.java
Original file line number Diff line number Diff line change
Expand Up @@ -374,14 +374,16 @@ private void checkForSpecialDayTooltip(Tooltip temp){
e.printStackTrace();
}

try {
if(bellTimesFile.size()>5) {
if (now.get(Calendar.MONTH) == Integer.parseInt(bellTimesFile.get(0)) - 1 && now.get(Calendar.DAY_OF_MONTH) == Integer.parseInt(bellTimesFile.get(1)) && now.get(Calendar.YEAR) == Integer.parseInt(bellTimesFile.get(2))) {
temp.setText("Today is a special schedule, check 'Bell Schedule' for the updated info!");
while(bellTimesFile.size()>4) {
if (now.get(Calendar.MONTH) == Integer.parseInt(bellTimesFile.get(0)) - 1 && now.get(Calendar.DAY_OF_MONTH) == Integer.parseInt(bellTimesFile.get(1)) && now.get(Calendar.YEAR) == Integer.parseInt(bellTimesFile.get(2))) {
temp.setText("Today is a special schedule, check 'Bell Schedule' for the updated info!");
break;
}else{
int numberOfRows = Integer.parseInt(bellTimesFile.get(3));
for (int i = 0; i < numberOfRows*2+4; i++) {
bellTimesFile.remove(0);
}
}
}catch (Exception e){
e.printStackTrace();
}
}
}
3 changes: 2 additions & 1 deletion src/main/java/WHS_planner/UI/MainPane.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package WHS_planner.UI;

import WHS_planner.Calendar.CalendarYear;
import WHS_planner.Main;
import WHS_planner.News.ui.NewsUI;
import WHS_planner.Schedule.Schedule;
import com.jfoenix.controls.*;
Expand Down Expand Up @@ -160,7 +161,7 @@ private void initiateDropDown(Button bigButton) {
info.getChildren().add(new Label("Created in HACS under the guidance of Mr. Hopps!\n "));

info.getChildren().add(versionLabel);
info.getChildren().add(new Label("1.1.0\n "));
info.getChildren().add(new Label(Main.VERSION_NUMBER+" \n "));
info.getChildren().add(peopleLabel);
String[] names = new String[]{
"Tzur Almog - Calendar",
Expand Down

0 comments on commit 4345cee

Please sign in to comment.