Added new NetLogger UI, currently no logic and server side
This commit is contained in:
parent
7bbec55626
commit
ea6ef5e265
4 changed files with 292 additions and 0 deletions
52
src/zutil/log/netlog/NetLoggerClient.java
Normal file
52
src/zutil/log/netlog/NetLoggerClient.java
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
package zutil.log.netlog;
|
||||
|
||||
import javafx.application.Application;
|
||||
import javafx.event.ActionEvent;
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.fxml.FXMLLoader;
|
||||
import javafx.stage.Stage;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.Parent;
|
||||
import javafx.scene.control.TabPane;
|
||||
|
||||
public class NetLoggerClient extends Application{
|
||||
public static final String VERSION = "0.1";
|
||||
|
||||
// UI elements
|
||||
@FXML
|
||||
private TabPane tabPane;
|
||||
|
||||
|
||||
public static void main(String[] args) {
|
||||
Application.launch(NetLoggerClient.class, args);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void start(Stage stage) throws Exception {
|
||||
Parent root = FXMLLoader.load(getClass().getResource("NetLoggerClient.fxml"));
|
||||
|
||||
stage.setTitle("NetLoggerClient ("+VERSION+")");
|
||||
stage.setScene(new Scene(root));
|
||||
stage.show();
|
||||
}
|
||||
|
||||
// Menu Actioins
|
||||
@FXML
|
||||
protected void handleConnectAction(ActionEvent event) {
|
||||
try{
|
||||
tabPane.getTabs().add(new NetLoggerClientInstance("koc.se", 8080));
|
||||
}catch(Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@FXML
|
||||
protected void handleExitAction(ActionEvent event) {
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
@FXML
|
||||
protected void handleAboutAction(ActionEvent event) {
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue