After Sub fixes

This commit is contained in:
HeshamTB 2020-12-18 21:38:23 +03:00
parent f137b07c1e
commit f4bc812f23
3 changed files with 8 additions and 7 deletions

View File

@ -2,9 +2,6 @@
<artifact type="jar" build-on-make="true" name="Hajj-simulation:jar"> <artifact type="jar" build-on-make="true" name="Hajj-simulation:jar">
<output-path>$PROJECT_DIR$/out/artifacts/Hajj_simulation_jar</output-path> <output-path>$PROJECT_DIR$/out/artifacts/Hajj_simulation_jar</output-path>
<root id="archive" name="Hajj-simulation.jar"> <root id="archive" name="Hajj-simulation.jar">
<element id="directory" name="META-INF">
<element id="file-copy" path="$PROJECT_DIR$/out/META-INF/MANIFEST.MF" />
</element>
<element id="module-output" name="Hajj-simulation" /> <element id="module-output" name="Hajj-simulation" />
</root> </root>
</artifact> </artifact>

View File

@ -154,7 +154,9 @@ public class GUI_ViewBuses {
lblDestination.setFont(new Font("Rockwell", Font.PLAIN, 16)); lblDestination.setFont(new Font("Rockwell", Font.PLAIN, 16));
lblDestination.setBounds(235, 317, 184, 18); lblDestination.setBounds(235, 317, 184, 18);
frame.getContentPane().add(lblDestination); frame.getContentPane().add(lblDestination);
if (currenttimeManager.getMonth() == 9) Calendar cal = new GregorianCalendar();
cal.setTime(currenttimeManager);
if (cal.get(Calendar.DAY_OF_MONTH) == 9)
lblDestination.setText("Heading to Arafat"); lblDestination.setText("Heading to Arafat");
else lblDestination.setText("Heading to Hotels"); else lblDestination.setText("Heading to Hotels");

View File

@ -1,7 +1,9 @@
import java.awt.Color; import java.awt.Color;
import java.awt.Font; import java.awt.Font;
import java.util.Calendar;
import java.util.Date; import java.util.Date;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.GregorianCalendar;
import javax.swing.JFrame; import javax.swing.JFrame;
import javax.swing.JScrollPane; import javax.swing.JScrollPane;
import javax.swing.JTable; import javax.swing.JTable;
@ -47,8 +49,6 @@ public class GUI_ViewStreet {
frame.getContentPane().setLayout(null); frame.getContentPane().setLayout(null);
frame.setLocationRelativeTo(null); frame.setLocationRelativeTo(null);
vehicleData = new Object[vehicles.size()][6]; vehicleData = new Object[vehicles.size()][6];
for (int i = 0; i < vehicles.size(); i++) { for (int i = 0; i < vehicles.size(); i++) {
vehicleData[i][0] = vehicles.get(i).getUID(); vehicleData[i][0] = vehicles.get(i).getUID();
@ -157,7 +157,9 @@ public class GUI_ViewStreet {
lblDestination.setForeground(Color.WHITE); lblDestination.setForeground(Color.WHITE);
lblDestination.setFont(new Font("Rockwell", Font.PLAIN, 16)); lblDestination.setFont(new Font("Rockwell", Font.PLAIN, 16));
lblDestination.setBounds(568, 11, 184, 20); lblDestination.setBounds(568, 11, 184, 20);
if (currenttimeManager.getMonth() == 9) Calendar cal = new GregorianCalendar();
cal.setTime(currenttimeManager);
if (cal.get(Calendar.DAY_OF_MONTH) == 9)
lblDestination.setText("Heading to Arafat"); lblDestination.setText("Heading to Arafat");
else lblDestination.setText("Heading to Hotels"); else lblDestination.setText("Heading to Hotels");
frame.getContentPane().add(lblDestination); frame.getContentPane().add(lblDestination);