This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Try to align a JLabel so its text looks centered in relation to the track of a horizontal JSpinner - not easy. Probably the spinner should do something reasonable about having a font baseline even though it is without text.
I guess you meant JSlider instead of JSpinner. This use case has nothing to do with baseline e.g. it doesn't have a sense to implement dummy baseline to achieve centering. Instead we should add a support for centering of (group of) components. *** This issue has been marked as a duplicate of 60570 ***