Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8122523

[WebView] HTMLEditor broken in Spanish (es) locale.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:
    • Environment:

      Windows7, Ubuntu12.04, not tested on Mac.

    • Subcomponent:
      web

      Description

      JavaFX 8.0 b115, in Spanish (es) locale, make an application with HTMLEditor, the app is not able to start, with following exception. It seems there is error with font size menu.


      Exception in Application start method
      Exception in thread "JavaFX Application Thread" java.lang.NumberFormatException: For input string: "8 ptos."
      at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
      at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
      at java.lang.Double.parseDouble(Double.java:546)
      at java.lang.Double.valueOf(Double.java:510)
      at com.sun.javafx.scene.web.skin.HTMLEditorSkin$15$1.updateItem(HTMLEditorSkin.java:701)
      at com.sun.javafx.scene.web.skin.HTMLEditorSkin$15$1.updateItem(HTMLEditorSkin.java:694)
      at javafx.scene.control.ListCell.updateItem(ListCell.java:460)
      at javafx.scene.control.ListCell.indexChanged(ListCell.java:324)
      at javafx.scene.control.IndexedCell.updateIndex(IndexedCell.java:115)
      at com.sun.javafx.scene.control.skin.VirtualFlow.setCellIndex(VirtualFlow.java:1788)
      at com.sun.javafx.scene.control.skin.VirtualFlow.getCell(VirtualFlow.java:1685)
      at com.sun.javafx.scene.control.skin.VirtualFlow.getCellBreadth(VirtualFlow.java:1719)
      at com.sun.javafx.scene.control.skin.VirtualFlow.getMaxCellWidth(VirtualFlow.java:2285)
      at com.sun.javafx.scene.control.skin.VirtualContainerBase.getMaxCellWidth(VirtualContainerBase.java:97)
      at com.sun.javafx.scene.control.skin.ComboBoxListViewSkin$8.computePrefWidth(ComboBoxListViewSkin.java:564)
      at javafx.scene.Parent.prefWidth(Parent.java:904)
      at javafx.scene.layout.Region.prefWidth(Region.java:1416)
      at com.sun.javafx.scene.control.skin.ComboBoxListViewSkin.computePrefWidth(ComboBoxListViewSkin.java:309)
      at javafx.scene.control.Control.computePrefWidth(Control.java:533)
      at javafx.scene.Parent.prefWidth(Parent.java:904)
      at javafx.scene.layout.Region.prefWidth(Region.java:1416)
      at com.sun.javafx.scene.control.skin.ToolBarSkin.computePrefWidth(ToolBarSkin.java:254)
      at javafx.scene.control.Control.computePrefWidth(Control.java:533)
      at javafx.scene.Parent.prefWidth(Parent.java:904)
      at javafx.scene.layout.Region.prefWidth(Region.java:1416)
      at com.sun.javafx.scene.web.skin.HTMLEditorSkin.layoutChildren(HTMLEditorSkin.java:1202)
      at javafx.scene.control.Control.layoutChildren(Control.java:574)
      at javafx.scene.Parent.layout(Parent.java:1063)
      at javafx.scene.Parent.layout(Parent.java:1069)
      at javafx.scene.Parent.layout(Parent.java:1069)
      at javafx.scene.Scene.doLayoutPass(Scene.java:564)
      at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2343)
      at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:329)
      at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:479)
      at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:460)
      at com.sun.javafx.tk.quantum.QuantumToolkit$13.run(QuantumToolkit.java:327)
      at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$300(WinApplication.java:39)
      at com.sun.glass.ui.win.WinApplication$4$1.run(WinApplication.java:112)
      at java.lang.Thread.run(Thread.java:744)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              leifs Leif Samuelsson (Inactive)
              Reporter:
              jennyh Jenny Huang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: