JComponent () { JPanel panel = new JPanel(); panel.setLayout(new GridBagLayout()); GridBagConstraints gb = new GridBagConstraints(); // top label. gb.insets = JBUI.insets(2); gb.weightx = 1; gb.weighty = 0; gb.gridwidth = 2; gb.gridheight = 1; gb.gridx = 0; gb.gridy = 0; gb.anchor = GridBagConstraints.WEST; gb.fill = GridBagConstraints.HORIZONTAL; JLabel topLabel = new JLabel(getTopMessage()); topLabel.setUI(new MultiLineLabelUI()); panel.add(topLabel, gb); gb.gridy += 1; registerFormat(WorkingCopyFormat.ONE_DOT_SIX, panel, gb); registerFormat(WorkingCopyFormat.ONE_DOT_SEVEN, panel, gb); registerFormat(WorkingCopyFormat.ONE_DOT_EIGHT, panel, gb); final JPanel auxiliaryPanel = getBottomAuxiliaryPanel(); if (auxiliaryPanel != null) { panel.add(auxiliaryPanel, gb); gb.gridy += 1; } myLoadingPanel = new JBLoadingPanel(new BorderLayout(), getDisposable()); myLoadingPanel.add(panel, BorderLayout.CENTER); return myLoadingPanel; }