javafx-8

JAVAFX CHARTS: Setting origin point on category axis

橙三吉。 提交于 2019-12-25 07:18:28
问题 I am in need to add a zero point for category axis in javafx line chart. In the image I want some "T0" to represent the zero mark of origin on the x axis, so that I can mark point on y axis as on the chart. sample line chart ( looks like bar chart !) 回答1: I'm not completely clear what you're asking, but if you want the pixel coordinates of the left end of the x-axis, you can do Category xAxis = ... ; // ... double leftEnd = xAxis.getDisplayPosition(value0) - xAxis.getCategorySpacing(); where

JAVAFX CHARTS: Setting origin point on category axis

*爱你&永不变心* 提交于 2019-12-25 07:17:21
问题 I am in need to add a zero point for category axis in javafx line chart. In the image I want some "T0" to represent the zero mark of origin on the x axis, so that I can mark point on y axis as on the chart. sample line chart ( looks like bar chart !) 回答1: I'm not completely clear what you're asking, but if you want the pixel coordinates of the left end of the x-axis, you can do Category xAxis = ... ; // ... double leftEnd = xAxis.getDisplayPosition(value0) - xAxis.getCategorySpacing(); where

ImageView won't display the Image when it comes from project space

梦想与她 提交于 2019-12-25 06:58:18
问题 So, I am new to JavaFX and as part of a project I am attempting to use ImageView to display some images. Before adding to my actual project, I set up the following to be sure I understood how to use ImageViews. My Controller: import javafx.fxml.FXML; import javafx.scene.image.Image; import javafx.scene.image.ImageView; import javafx.stage.Stage; public class TestController { @FXML ImageView imageView; Image image; public void start(Stage stage){ /* * THIS WORKS! * * image = new Image("file:/C

Why JavaFX WebView failed to load [Status : FAILED]

那年仲夏 提交于 2019-12-25 06:33:14
问题 Im really confused why WebView failed to load the following URL: http://docs.oracle.com/javafx/2/webview/jfxpub-webview.htm http://www.java2s.com/Code/Java/JavaFX/WebEngineLoadListener.htm After running my code WebEngine's State returns FAILED . But when I tried to run this URL : https://www.google.com.ph/, WebEngine's State returns SUCCEEDED , and it loaded SUCCESSFULLY! WHY ???? Is there some kind of CONFIGURATION that I needed to set in order for those sites to load successfully? Here's

ControlsFX Notification Graphic corrupted

谁说胖子不能爱 提交于 2019-12-25 06:11:58
问题 I am using ControlsFX Notification to display a group of messages. Text is not perfect way for me, so I present data in TableView. import org.controlsfx.control.Notifications; ...... TableView<NotificationModel> notificationTable = new TableView(); ...... Notifications notification = Notifications.create() .title("Transaction Notifications") .text(null) .graphic(notificationTable) .position(Pos.BOTTOM_RIGHT) .hideAfter(Duration.minutes(1)); notification.show(); In normal case, notification

ControlsFX Notification Graphic corrupted

大兔子大兔子 提交于 2019-12-25 06:11:24
问题 I am using ControlsFX Notification to display a group of messages. Text is not perfect way for me, so I present data in TableView. import org.controlsfx.control.Notifications; ...... TableView<NotificationModel> notificationTable = new TableView(); ...... Notifications notification = Notifications.create() .title("Transaction Notifications") .text(null) .graphic(notificationTable) .position(Pos.BOTTOM_RIGHT) .hideAfter(Duration.minutes(1)); notification.show(); In normal case, notification

JavaFX Adding Rows to TableView on Different Page

僤鯓⒐⒋嵵緔 提交于 2019-12-25 06:09:36
问题 Okay, I've been working through some issues with this program and I think I've finally gotten it to a point where I understand what is wrong. I'm trying to follow this tutorial a bit: http://docs.oracle.com/javafx/2/fxml_get_started/fxml_tutorial_intermediate.htm But my program has the add a row on a different FXML page than the Table View is on. I think the program is having trouble connecting the two. I've looked in to trying to find ways to make them talk to each other (put everything in

JavaFX Adding Rows to TableView on Different Page

半腔热情 提交于 2019-12-25 06:08:06
问题 Okay, I've been working through some issues with this program and I think I've finally gotten it to a point where I understand what is wrong. I'm trying to follow this tutorial a bit: http://docs.oracle.com/javafx/2/fxml_get_started/fxml_tutorial_intermediate.htm But my program has the add a row on a different FXML page than the Table View is on. I think the program is having trouble connecting the two. I've looked in to trying to find ways to make them talk to each other (put everything in

JavaFX dynamic TableView is not showing data from the database

ε祈祈猫儿з 提交于 2019-12-25 06:07:25
问题 I've created a TableView using Scene Builder as follows- Here is the FXML code- <?xml version="1.0" encoding="UTF-8"?> <?import javafx.scene.control.*?> <?import java.lang.*?> <?import javafx.scene.layout.*?> <Pane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="508.0" prefWidth="483.0" xmlns="http://javafx.com/javafx/8.0.40" xmlns:fx="http://javafx.com/fxml/1" fx:controller="imran.jfx.application.Controller"> <children> <TableView fx:id=

JavaFX: Adding a new tab from a tab controller

筅森魡賤 提交于 2019-12-25 05:05:36
问题 I am trying to make it such that I can create a new tab for my TabPane from within another tab but I am having some difficulty. Currently I have the TabPane set up in the "main-window.fxml" with the corresponding MainWindowController. I have a tab within this TabPane which, via fx:include, displays "mainTab.fxml" to the scene graph, controlled by MainTabController. Now from within the "mainTab" I want a button to be able to add an additional tab to the TabPane, but since this is requires a