question: void addSubtitle ( String title , boolean smallMargin ) { JLabel titleLabel = new JLabel ( title ) ; titleLabel . setForeground ( Color . GRAY ) ; gbc . fill = GridBagConstraints . NONE ; gbc . weightx = 0 ; gbc . insets = smallMargin ? SUBTITLE_INSETS_SMALLER_MARGIN : SUBTITLE_INSETS ; gbc . anchor = GridBagConstraints . CENTER ; add ( titleLabel , gbc ) ; gbc . gridy ++ ; }
target:  Adds some centered text without a seperating line and with a slightly subdued color.