javafx-2

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=

JavaFX2.2 not all table columns showing data with PropertyValueFactory?

巧了我就是萌 提交于 2019-12-25 05:32:03
问题 Goodevening everyone, I stumbled on a rather strange problem today and I have no clue what I'm doing wrong. It's about binding table columns with a PropertyValueFactory. I created the table view and table columns in FXML and set the appropriate fx:id's with Scene Builder. Now the problem is that some columns are showing the expected data and other columns are just empty. I add the items to the table view with following code when a user presses a button: ObservableList<User> olUsers = DA_User

JavaFX2.2 not all table columns showing data with PropertyValueFactory?

强颜欢笑 提交于 2019-12-25 05:31:59
问题 Goodevening everyone, I stumbled on a rather strange problem today and I have no clue what I'm doing wrong. It's about binding table columns with a PropertyValueFactory. I created the table view and table columns in FXML and set the appropriate fx:id's with Scene Builder. Now the problem is that some columns are showing the expected data and other columns are just empty. I add the items to the table view with following code when a user presses a button: ObservableList<User> olUsers = DA_User

How to send events from one Node to another Node

℡╲_俬逩灬. 提交于 2019-12-25 05:28:07
问题 I have a Pane which listens for the wheel mouse scroll; as well I have a scroll bar which automatically listens for the wheel mouse scroll. I would like to know how to send to scroll event captured by the Pane to the Scrollbar. I can’t use a scroll pane because I need a custom implementation of the pane, I already tried to use a scroll pane and it did not cover my needs. I tried to fire the event and other method but I just can get the event to be passed/propagated/sent to the scrollbar.

How to populate TableView from list of String[] in javaFX?

只谈情不闲聊 提交于 2019-12-25 04:12:19
问题 I'm trying to dynamically populate a TableView with arrays of strings taht I have inside of a list (I guess there are better ways to handle information, but its is what I was given to do...), so I create a tableView, create all the columns and stuff, but I'm lost at the moment of populating the tableview. The list has all the string arrays inside and everything seems to work, there is no missplaced data on any array or anything like that, and when I run the project, the column names appear as

Filter users values on TextField input after a BindDirectional strategy betwen a Slider and min/max TextField

和自甴很熟 提交于 2019-12-25 02:57:59
问题 Using two TextField : texMin and texMax , i want to limit min and max values of my doubleSlider control (cf the custom ui control DoubleSlider here : http://code.google.com/p/javafx-widgets/source/browse/#svn%2Ftrunk%2FDoubleSlider%2Fsrc%2Fdouble_slider ) The DoubleBinded with StringConverter (double to string) works perfectly, but now i don't know how can i filter to get only correct values entered by user in the two TextField after it ENTER keypress.. I don't know if a setOnKeyReleasedEvent

Torus 3d in javaFX 2.x

一世执手 提交于 2019-12-25 02:16:05
问题 I've Stage which is divided by Split Panel, and I wants on the right pane create a 3D torus. First: I don't know what can I create torus. Second: I don't know on what kind of obiect can I create this Torus. Pane enough? Please for help. 回答1: You won't be able to create an embedded 3D scene with a Torus using JavaFX 2.x without a lot of custom coding on your part. However this becomes easy if you use JavaFX 8 and the third party 3D library F(X)yz: http://birdasaur.github.io/FXyz/ F(X)yz has a

Getting series color from LineChart

断了今生、忘了曾经 提交于 2019-12-25 02:08:53
问题 LineChart has series which have different color by default. How can I get it to set obtained color to other text connected with the specified series? 回答1: In a line chart since all elements of a single series have one color. The series are assigned with styleclass series0 , series1 , series2 etc. Each of these series are assigned with corresponding colors styleclass i.e. default-color0 , default-color1 , default-color2 etc. You can directly use the styleclass for your text/labels. 来源: https:/

Autosize text area into tabpane in javaFX

假如想象 提交于 2019-12-25 01:56:08
问题 I hava 3 tabs in a TabPane that each one has a text area with different texts and different length. I want to autosize text area according to it's length in each tab. I don't understand what should I do ? using scene builder ? css ?javaFX methods ? Thank's in Advance ... 回答1: I think you are asking that the text areas grow or shrink according to the text that is displayed in them? If so, see if this code helps: import java.util.concurrent.Callable; import javafx.application.Application;