JPanel p = new JPanel(); p.setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); p. setBorder(BorderFactory.createEtchedBorder()); add(UIUtilities.buildComponentPanelRight(progressBar)); uiDelegate.setCanvas(p);
uiDelegate.setCanvas(progressBar);
    private void buildGUI()    {        JProgressBar progressBar = new JProgressBar();        progressBar.setVisible(true);        progressBar.setIndeterminate(true);        JPanel p = new JPanel();        p.setLayout(new BoxLayout(this, BoxLayout.X_AXIS));        p. setBorder(BorderFactory.createEtchedBorder());        add(UIUtilities.buildComponentPanelRight(progressBar));        uiDelegate.setCanvas(p);    }