Skip to content

Commit

Permalink
update pdfViewer
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenquan123vn committed May 8, 2019
1 parent 5d9361b commit 326d739
Show file tree
Hide file tree
Showing 17 changed files with 681 additions and 174 deletions.
9 changes: 9 additions & 0 deletions .idea/libraries/jpedal_trial.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

356 changes: 196 additions & 160 deletions .idea/workspace.xml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions UETConnect.iml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
<orderEntry type="library" name="mysql-connector-java-8.0.111" level="project" />
<orderEntry type="library" name="jfoenix-8.0.8" level="project" />
<orderEntry type="library" name="com.calendarfx:view:8.4.2" level="project" />
<orderEntry type="library" name="jpedal-trial" level="project" />
</component>
</module>
Binary file added lib/jpedal-trial.jar
Binary file not shown.
Binary file modified out/production/UETConnect/home/Main.class
Binary file not shown.
Binary file modified out/production/UETConnect/home/controllers/DashBoard.class
Binary file not shown.
Binary file modified out/production/UETConnect/home/controllers/Mycourse.class
Binary file not shown.
5 changes: 5 additions & 0 deletions out/production/UETConnect/home/fxml/mycourse.fxml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import com.jfoenix.controls.JFXListView?>
<?import javafx.scene.chart.PieChart?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.Pane?>
Expand All @@ -11,6 +13,9 @@
<children>
<JFXListView fx:id="list" layoutX="25.0" layoutY="60.0" onMouseClicked="#handleMouseClicked" prefHeight="356.0" prefWidth="425.0" />
<Label layoutX="25.0" layoutY="24.0" prefHeight="21.0" prefWidth="94.0" text="Your Course" />
<PieChart fx:id="pie" layoutX="492.0" layoutY="83.0" prefHeight="310.0" prefWidth="323.0" />
<Button fx:id="leaveCourse" layoutX="708.0" layoutY="22.0" mnemonicParsing="false" onMouseClicked="#handleMouseClicked" text="Leave Course" />
<Button fx:id="viewCourse" layoutX="591.0" layoutY="22.0" mnemonicParsing="false" onMouseClicked="#handleMouseClicked" text="View Course" />
</children>
</Pane>
</children>
Expand Down
Binary file modified out/production/UETConnect/home/util/ConnectionUtil.class
Binary file not shown.
21 changes: 21 additions & 0 deletions src/home/Main.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package home;

import javafx.application.Application;
import javafx.application.Platform;
import javafx.event.EventHandler;
import javafx.fxml.FXMLLoader;
import javafx.geometry.Rectangle2D;
import javafx.scene.Parent;
Expand All @@ -9,6 +11,7 @@
import javafx.scene.shape.Rectangle;
import javafx.stage.Screen;
import javafx.stage.Stage;
import javafx.stage.WindowEvent;

public class Main extends Application {

Expand All @@ -26,9 +29,27 @@ public void start(Stage primaryStage) throws Exception{
primaryStage.setScene(new Scene(root, 632.0, 570.0));
primaryStage.setResizable(false);
primaryStage.setTitle("UETConnect");
primaryStage.setOnCloseRequest( e -> {
try {
stop();
} catch (Exception ex) {
ex.printStackTrace();
}
});
primaryStage.show();
}

@Override
public void stop() throws Exception {
try {
super.stop(); //To change body of generated methods, choose Tools | Templates.
System.exit(0);
Platform.exit();
} catch (Exception e){
e.printStackTrace();
}
}

public static void main(String[] args) {
launch(args);
}
Expand Down
4 changes: 4 additions & 0 deletions src/home/controllers/Mycourse.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ public void initialize(URL location, ResourceBundle resources) {
} catch (SQLException e) {
e.printStackTrace();
}
PieChart.Data slice = new PieChart.Data("Attendance", 13);
PieChart.Data slice1 = new PieChart.Data("Absent", 0);
pie.getData().add(slice);
pie.getData().add(slice1);
list.setItems(items);


Expand Down
Loading

0 comments on commit 326d739

Please sign in to comment.