concept underlying Swing component in category java

appears as: underlying Swing component
JavaFX in Action

This is an excerpt from Manning's book JavaFX in Action.

But those aren’t the only changes we’ve made. In version 1 (listing 4.2) we added a new SwingButton straight into the scene graph, but now we capture it in a variable reference to manipulate it further before it gets added. After the button is created, we extract the underlying Swing component using the function getJComponent(), giving us full access to all its methods. First we remove the shaded fill effect. Next we set our own flat color background, creating a checkerboard effect for the boxes, and ensure the background is painted by making the button opaque. Finally we assign the border we created earlier, to create a gray pin line around each button.