question: private JPanel noDataSourcePanel ( ) { JPanel panel = new JPanel ( ) ; panel . setLayout ( new BorderLayout ( ) ) ; JPanel labelPanel = new JPanel ( ) ; labelPanel . setLayout ( new GridBagLayout ( ) ) ; JLabel label = new JLabel ( Localisation . getString ( MapRender . class , "MapRender.noDataSource" ) ) ; label . setFont ( new Font ( "Arial" , Font . BOLD , 16 ) ) ; labelPanel . add ( label ) ; labelPanel . setBorder ( BorderFactory . createEmptyBorder ( 10 , 10 , 10 , 10 ) ) ; panel . add ( labelPanel , BorderLayout . CENTER ) ; return panel ; }
target:  Creates the no data source panel.