Uppdated classpath with javafx plugin, and added error label on the NetLog GUI

This commit is contained in:
Ziver Koc 2013-05-07 08:57:27 +00:00
parent 27b12e1b9b
commit 0dfd6cc049
3 changed files with 9 additions and 0 deletions

View file

@ -11,5 +11,6 @@
<classpathentry kind="lib" path="libs/mysql-connector-java-5.1.14-bin.jar"/> <classpathentry kind="lib" path="libs/mysql-connector-java-5.1.14-bin.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/> <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v7.0"/> <classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v7.0"/>
<classpathentry kind="con" path="at.bestsolution.efxclipse.tooling.jdt.core.JAVAFX_CONTAINER"/>
<classpathentry kind="output" path="bin"/> <classpathentry kind="output" path="bin"/>
</classpath> </classpath>

View file

@ -60,6 +60,7 @@ public class NetLogGuiClientInstance implements Initializable, NetLogListener {
@FXML private ToggleButton pauseButton; @FXML private ToggleButton pauseButton;
@FXML private Label logCountLabel; @FXML private Label logCountLabel;
@FXML private ProgressBar progressBar; @FXML private ProgressBar progressBar;
@FXML private Label errorLabel;
@FXML private TableView<NetLogMessage> logTable; @FXML private TableView<NetLogMessage> logTable;
@FXML private TableColumn<NetLogMessage, Long> logTimestampColumn; @FXML private TableColumn<NetLogMessage, Long> logTimestampColumn;
@ -82,6 +83,7 @@ public class NetLogGuiClientInstance implements Initializable, NetLogListener {
}catch(Exception e){ }catch(Exception e){
logger.log(Level.SEVERE, null, e); logger.log(Level.SEVERE, null, e);
status = Status.DISCONNECTED; status = Status.DISCONNECTED;
errorLabel.setText(e.getMessage());
} }
updateStatus(); updateStatus();

View file

@ -8,12 +8,18 @@
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<?import javafx.scene.paint.*?> <?import javafx.scene.paint.*?>
<?import javafx.scene.text.*?>
<BorderPane xmlns:fx="http://javafx.com/fxml" fx:controller="zutil.log.net.NetLogGuiClientInstance"> <BorderPane xmlns:fx="http://javafx.com/fxml" fx:controller="zutil.log.net.NetLogGuiClientInstance">
<bottom> <bottom>
<ToolBar maxHeight="22.0" minHeight="19.0" prefHeight="22.0" prefWidth="839.0"> <ToolBar maxHeight="22.0" minHeight="19.0" prefHeight="22.0" prefWidth="839.0">
<items> <items>
<ProgressBar fx:id="progressBar" prefWidth="200.0" progress="0.0" style="" /> <ProgressBar fx:id="progressBar" prefWidth="200.0" progress="0.0" style="" />
<Label fx:id="errorLabel" text="" textFill="RED">
<font>
<Font size="11.0" />
</font>
</Label>
<Region HBox.Hgrow="ALWAYS" /> <Region HBox.Hgrow="ALWAYS" />
<Separator orientation="VERTICAL" prefHeight="200.0" valignment="CENTER" /> <Separator orientation="VERTICAL" prefHeight="200.0" valignment="CENTER" />
<Label fx:id="logCountLable" text="80"> <Label fx:id="logCountLable" text="80">