protected Component createContentPane ( ) { JPanel content = new JPanel ( new BorderLayout ( ) ) ; Component component = super . createContentPane ( ) ; if ( component != null ) content . add ( component ) ; JProgressBar progressBar = getProgressBar ( ) ; progressBar . setIndeterminate ( isIndeterminate ( ) ) ; progressBar . setStringPainted ( isShowProgressLabel ( ) ) ; content . add ( progressBar , BorderLayout . SOUTH ) ; return content ; }
Returns a component that displays an image above a progress bar .