Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8113992 Controls JavaDoc issues
  3. JDK-8114774

TableView javadoc sample doesn't work

XMLWordPrintable

      In TableView javadoc under "Creating a TableView" section of introduction there is a usage sample. I recreated it and tried to run and got empty two column table and the following exceptions

      SEVERE: javafx.scene.control.Control loadSkinClass Failed to load skin 'com.sun.javafx.scene.control.skin.TableRowSkin' for control TableRow@f01771[styleClass=cell indexed-cell table-row-cell]
      java.lang.RuntimeException: java.lang.IllegalAccessException: Class javafx.beans.property.PropertyReference can not access a member of class org.jemmy.client.Person with modifiers "public"
      at javafx.beans.property.PropertyReference.get(PropertyReference.java:144)
      at javafx.scene.control.TableColumn.getCellDataReflectively(TableColumn.java:805)
      at javafx.scene.control.TableColumn.getCellData(TableColumn.java:742)
      at javafx.scene.control.TableColumn.getCellData(TableColumn.java:728)
      at javafx.scene.control.TableCell.updateCellItem(TableCell.java:413)
      at javafx.scene.control.TableCell.access$000(TableCell.java:26)
      at javafx.scene.control.TableCell$1.invalidated(TableCell.java:44)
      at javafx.beans.value.ObservableValueBase.fireValueChangedEvent(ObservableValueBase.java:107)
      at javafx.beans.property.IntegerPropertyBase.markInvalid(IntegerPropertyBase.java:58)
      at javafx.beans.property.IntegerPropertyBase.set(IntegerPropertyBase.java:108)
      at javafx.scene.control.IndexedCell.setIndex(IndexedCell.java:54)
      at javafx.scene.control.IndexedCell.updateIndex(IndexedCell.java:101)
      at com.sun.javafx.scene.control.skin.TableRowSkin.updateCells(TableRowSkin.java:184)
      at com.sun.javafx.scene.control.skin.TableRowSkin.<init>(TableRowSkin.java:54)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at javafx.scene.control.Control.loadSkinClass(Control.java:690)
      at javafx.scene.control.Control.impl_cssSet(Control.java:761)
      at javafx.scene.Node.impl_cssSet(Node.java:5477)
      at com.sun.javafx.css.StyleHelper.transitionToState(StyleHelper.java:197)
      at javafx.scene.Node.impl_processCSS(Node.java:5404)
      at javafx.scene.Parent.impl_processCSS(Parent.java:943)
      at javafx.scene.control.Control.impl_processCSS(Control.java:783)
      at com.sun.javafx.scene.control.skin.VirtualFlow.setCellIndex(VirtualFlow.java:1305)
      at com.sun.javafx.scene.control.skin.VirtualFlow.getCell(VirtualFlow.java:1207)
      at com.sun.javafx.scene.control.skin.VirtualFlow.getCellLength(VirtualFlow.java:1230)
      at com.sun.javafx.scene.control.skin.VirtualFlow.getPrefLength(VirtualFlow.java:1661)
      at com.sun.javafx.scene.control.skin.VirtualFlow.computePrefHeight(VirtualFlow.java:1672)
      at javafx.scene.Parent.prefHeight(Parent.java:791)
      at javafx.scene.layout.Region.prefHeight(Region.java:795)
      at com.sun.javafx.scene.control.skin.TableViewSkin.computePrefHeight(TableViewSkin.java:390)
      at javafx.scene.Parent.prefHeight(Parent.java:791)
      at javafx.scene.layout.Region.prefHeight(Region.java:795)
      at javafx.scene.control.Control.computePrefHeight(Control.java:580)
      at javafx.scene.Parent.prefHeight(Parent.java:791)
      at javafx.scene.control.Control.prefHeight(Control.java:519)
      at javafx.scene.Scene.preferredSize(Scene.java:1039)
      at javafx.scene.Scene.impl_initPeer(Scene.java:571)
      at javafx.stage.Window$12.invalidated(Window.java:468)
      at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:57)
      at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:108)
      at javafx.stage.Window.setVisible(Window.java:515)
      at javafx.stage.Stage.setVisible(Stage.java:105)
      at org.jemmy.client.TableViewTest.start(TableViewTest.java:45)
      at com.sun.javafx.application.LauncherImpl$3.run(LauncherImpl.java:127)
      at com.sun.javafx.application.PlatformImpl$3.run(PlatformImpl.java:87)
      at com.sun.javafx.application.PlatformImpl$2.run(PlatformImpl.java:65)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
      at com.sun.glass.ui.win.WinApplication$1$1.run(WinApplication.java:49)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.IllegalAccessException: Class javafx.beans.property.PropertyReference can not access a member of class org.jemmy.client.Person with modifiers "public"
      at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
      at java.lang.reflect.Method.invoke(Method.java:588)
      at javafx.beans.property.PropertyReference.get(PropertyReference.java:142)
      ... 52 more

        1. Capture.PNG
          Capture.PNG
          6 kB
        2. Main.java
          2 kB
        3. TableViewCreateTest.java
          2 kB
        4. TableViewTest.java
          2 kB

            jgiles Jonathan Giles
            mrkam Alexander Kuznetcov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: