H
Hole
Good Afternoon,
I have a nice JDialog window showing multiple progress bars.
Now, I would like to add decorated progress bars (it should be a panel
with a JLabel and a JProgressBar) to the JDialog's content pane so I
guessed I need to create a new component by Decorator pattern applied
to JProgressBar.
I read the decorator pattern documentation but I'm quite confused.
Does the decorator class extend the component that is being decorated
or the component that decorate?
Thanks!!!
I have a nice JDialog window showing multiple progress bars.
Now, I would like to add decorated progress bars (it should be a panel
with a JLabel and a JProgressBar) to the JDialog's content pane so I
guessed I need to create a new component by Decorator pattern applied
to JProgressBar.
I read the decorator pattern documentation but I'm quite confused.
Does the decorator class extend the component that is being decorated
or the component that decorate?
Thanks!!!