Menu
  • HOME
  • TAGS

How to remove legends in javafx line chart

javafx,javafx-2,javafx-8,javafx-1

Since you are already dealing with Legend, you can work with its items, removing those you don't need, so the legend shows only two items. Using streams, you can mark the first two items as "Valid"/"Invalid" and the rest as "Remove", for instance, and finally you just remove these last...

TableVew - Edit cell when KeyEvent is thrown

java,javafx,focus,tableview,javafx-1

These get really tricky; I think anything "behavior-related" (i.e. standard controls reacting to user input) is hard to change and generally not well supported in JavaFX. Hopefully this is an area of the API that will be improved... There seem to be a couple of different issues. I think that...

How to create an inner popup in JavaFX styled with FXML

javafx,javafx-2,javafx-8,javafx-1

Although that library is quite nice, I wanted something simple that didn't require 3rd party downloads. I came up with this: Popup popup = new Popup(); CustomController controller = new CustomController(); FXMLLoader loader = new FXMLLoader(getClass().getResource(fxmlfile)); loader.setController(controller); popup.getContent().add((Parent)loader.load()); The problem was I didn't realize that a Parent could be considered...

VBox.setVgrow(Priority.ALWAYS) not working

java,javafx,javafx-2,javafx-8,javafx-1

In FXML add maxHeight="+Infinity" to TextField. In code txtfld.setMaxHeight( Double.MAX_VALUE );...

TableView - Attempting to make it behave like Excel

java,javafx,tableview,keyboard-events,javafx-1

Here is sample code below, you can select by dragging by mouse or by pressing control+arrow keys. import com.sun.javafx.scene.control.behavior.TableCellBehavior; import javafx.application.Application; import javafx.beans.property.SimpleStringProperty; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.event.EventHandler; import javafx.geometry.Insets; import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene.control.*; import...