-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Eugene
committed
Feb 9, 2020
1 parent
fbee071
commit 60d90e2
Showing
11 changed files
with
75 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package org.eugene.ui; | ||
|
||
import javafx.geometry.Insets; | ||
import javafx.scene.control.ButtonType; | ||
import javafx.scene.control.Dialog; | ||
import javafx.scene.control.Hyperlink; | ||
import javafx.scene.control.Label; | ||
import javafx.scene.layout.VBox; | ||
|
||
import java.awt.*; | ||
import java.net.URI; | ||
|
||
public class AboutDialog { | ||
Dialog dialog = new Dialog(); | ||
|
||
public void init(){ | ||
Label intro = new Label(); | ||
intro.setText(" Currently supported format: "); | ||
Label parquet = new Label(" - Parquet"); | ||
Label orc = new Label(" - ORC"); | ||
orc.setPadding(new Insets(0,0,5, 0)); | ||
Label author = new Label(); | ||
author.setText(" Author: " ); | ||
Hyperlink github = new Hyperlink(); | ||
github.setText(" github: Eugene"); | ||
github.setOnAction(event -> { | ||
try { | ||
Desktop.getDesktop().browse(new URI("https://github.com/Eugene-Mark/")); | ||
} catch (Exception e) { | ||
e.printStackTrace(); | ||
} | ||
}); | ||
Hyperlink so = new Hyperlink(); | ||
so.setText(" stack overflow: Eugene"); | ||
so.setOnAction(event -> { | ||
try { | ||
Desktop.getDesktop().browse(new URI("https://stackoverflow.com/users/3378204/eugene")); | ||
} catch (Exception e) { | ||
e.printStackTrace(); | ||
} | ||
}); | ||
dialog.getDialogPane().setContent(new VBox(intro, parquet, orc, author, github, so)); | ||
dialog.getDialogPane().getButtonTypes().addAll(ButtonType.CLOSE); | ||
} | ||
|
||
public Dialog getDialog(){ | ||
return dialog; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
|
||
public class Constants { | ||
public static int MAX_ROW_NUM = 1000; | ||
public static String NULL = "NULL"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.