JDK-8125300 : [Label] Wrap doesn't work.
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 8
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2012-09-26
  • Updated: 2015-06-17
  • Resolved: 2012-09-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Fixed
Related Reports
Relates :  
Relates :  
Description
If a run of text exceeds the width of the Labeled, then the text should wrap onto another line.
Comments
SQE: verified in b60
15-10-2012

Target Build: b59
02-10-2012

Affected tests: graphics/api/text/WrappingwidthTest.java ControlsAutomatedTestSuite/javafx/scene/control/test/labeled/ButtonsTest/setWrapTextTest ControlsAutomatedTestSuite/javafx/scene/control/test/labeled/CheckBoxesTest/setWrapTextTest ControlsAutomatedTestSuite/javafx/scene/control/test/labeled/HyperliksTest/setWrapTextTest ControlsAutomatedTestSuite/javafx/scene/control/test/labeled/LabelsTest/setWrapTextTest ControlsAutomatedTestSuite/javafx/scene/control/test/labeled/MenuButtonsTest/setWrapTextTest ControlsAutomatedTestSuite/javafx/scene/control/test/labeled/RadioButtonsTest/setWrapTextTest ControlsAutomatedTestSuite/javafx/scene/control/test/labeled/SplitMenuButtonsTest/setWrapTextTest ControlsAutomatedTestSuite/javafx/scene/control/test/labeled/ToggleButtonsTest/setWrapTextTest ControlsAutomatedTestSuite/javafx/scene/control/test/labeled/ButtonsTest/setTextOverrunMultiLineWrappedTest ControlsAutomatedTestSuite/javafx/scene/control/test/labeled/CheckBoxesTest/setTextOverrunMultiLineWrappedTest ControlsAutomatedTestSuite/javafx/scene/control/test/labeled/HyperliksTest/setTextOverrunMultiLineWrappedTest ControlsAutomatedTestSuite/javafx/scene/control/test/labeled/LabelsTest/setTextOverrunMultiLineWrappedTest ControlsAutomatedTestSuite/javafx/scene/control/test/labeled/MenuButtonsTest/setTextOverrunMultiLineWrappedTest ControlsAutomatedTestSuite/javafx/scene/control/test/labeled/RadioButtonsTest/setTextOverrunMultiLineWrappedTest ControlsAutomatedTestSuite/javafx/scene/control/test/labeled/SplitMenuButtonsTest/setTextOverrunMultiLineWrappedTest ControlsAutomatedTestSuite/javafx/scene/control/test/labeled/ToggleButtonsTest/setTextOverrunMultiLineWrappedTest
02-10-2012

Fixed, reviewed by Thor http://jfxsrc.us.oracle.com/javafx/8.0/scrum/graphics/rt-closed/rev/f6f89882d1cc
28-09-2012

It's similar, but this one is still reproducible in graphics build #150.
28-09-2012

Isn't it the issue RT-25169, which is not reproducible with scrum#122?
28-09-2012

The attached test case fails with the following AIOOBE starting from graphics build #90, which may mean it was caused by the fix for RT-17411. Exception in thread "main" java.lang.RuntimeException: Exception in Application start method at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:376) at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:47) at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:115) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ArrayIndexOutOfBoundsException: 1 at com.sun.javafx.sg.prism.NGTextHelper.getHitInfo(NGTextHelper.java:701) at javafx.scene.text.Text.impl_hitTestChar(Text.java:1111) at com.sun.javafx.scene.control.skin.Utils.computeClippedWrappedText(Utils.java:329) at com.sun.javafx.scene.control.skin.LabeledSkinBase.updateDisplayedText(LabeledSkinBase.java:506) at com.sun.javafx.scene.control.skin.LabeledSkinBase.layoutLabelInArea(LabeledSkinBase.java:941) at com.sun.javafx.scene.control.skin.LabeledSkinBase.layoutLabelInArea(LabeledSkinBase.java:866) at com.sun.javafx.scene.control.skin.LabeledSkinBase.layoutChildren(LabeledSkinBase.java:850) at javafx.scene.control.Control.layoutChildren(Control.java:481) ...
28-09-2012

Code: (just mode slider) @Override public void start(Stage stage) throws Exception { VBox vb = new VBox(); Button b = new Button("Text text text text text text"); b.setWrapText(true); Slider s = new Slider(0, 100, 100); s.valueProperty().bindBidirectional(b.prefWidthProperty()); Pane pane = new Pane(); pane.setPrefSize(200, 200); pane.getChildren().add(b); vb.getChildren().addAll(pane, s); stage.setScene(new Scene(vb, 300, 300)); stage.show(); } It is clear with code, that if you change width, height raise, but text is still as one line..
27-09-2012

Need a reproducible test case.
27-09-2012