equal
deleted
inserted
replaced
122 final String prop = e.getPropertyName(); |
122 final String prop = e.getPropertyName(); |
123 if ("indeterminate".equals(prop)) { |
123 if ("indeterminate".equals(prop)) { |
124 if (!progressBar.isIndeterminate()) return; |
124 if (!progressBar.isIndeterminate()) return; |
125 stopAnimationTimer(); |
125 stopAnimationTimer(); |
126 // start the animation thread |
126 // start the animation thread |
127 startAnimationTimer(); |
127 if (progressBar.isDisplayable()) { |
|
128 startAnimationTimer(); |
|
129 } |
128 } |
130 } |
129 |
131 |
130 if ("JProgressBar.style".equals(prop)) { |
132 if ("JProgressBar.style".equals(prop)) { |
131 isCircular = "circular".equalsIgnoreCase(e.getNewValue() + ""); |
133 isCircular = "circular".equalsIgnoreCase(e.getNewValue() + ""); |
132 progressBar.repaint(); |
134 progressBar.repaint(); |
139 stopAnimationTimer(); |
141 stopAnimationTimer(); |
140 } |
142 } |
141 |
143 |
142 public void ancestorAdded(final AncestorEvent e) { |
144 public void ancestorAdded(final AncestorEvent e) { |
143 if (!progressBar.isIndeterminate()) return; |
145 if (!progressBar.isIndeterminate()) return; |
144 startAnimationTimer(); |
146 if (progressBar.isDisplayable()) { |
|
147 startAnimationTimer(); |
|
148 } |
145 } |
149 } |
146 |
150 |
147 public void ancestorMoved(final AncestorEvent e) { } |
151 public void ancestorMoved(final AncestorEvent e) { } |
148 |
152 |
149 public void paint(final Graphics g, final JComponent c) { |
153 public void paint(final Graphics g, final JComponent c) { |