List of usage examples for javafx.scene.layout AnchorPane setTopAnchor
public static void setTopAnchor(Node child, Double value)
From source file:pl.baczkowicz.mqttspy.ui.controllers.NewPublicationController.java
private void updateVisibility() { if (detailedView) { AnchorPane.setRightAnchor(publicationTopicText, 327.0); AnchorPane.setRightAnchor(publicationData, 326.0); AnchorPane.setTopAnchor(dataLabel, 31.0); } else {//from w w w .j av a 2 s. c o m AnchorPane.setRightAnchor(publicationTopicText, 128.0); AnchorPane.setRightAnchor(publicationData, 127.0); AnchorPane.setTopAnchor(dataLabel, 37.0); } formatMenu.setVisible(detailedView); publicationQosChoice.setVisible(detailedView); publicationQosLabel.setVisible(detailedView); retainedBox.setVisible(detailedView); retainedLabel.setVisible(detailedView); lengthLabel.setVisible(detailedView); // TODO: basic perspective }