Sketchbook has changed, update it on next viewing.
()
| 699 | |
| 700 | /** Sketchbook has changed, update it on next viewing. */ |
| 701 | public void rebuildSketchbookFrame() { |
| 702 | if (sketchbookFrame != null) { |
| 703 | boolean visible = sketchbookFrame.isVisible(); |
| 704 | Rectangle bounds = null; |
| 705 | if (visible) { |
| 706 | bounds = sketchbookFrame.getBounds(); |
| 707 | sketchbookFrame.setVisible(false); |
| 708 | sketchbookFrame.dispose(); |
| 709 | } |
| 710 | sketchbookFrame = null; |
| 711 | if (visible) { |
| 712 | showSketchbookFrame(); |
| 713 | sketchbookFrame.setBounds(bounds); |
| 714 | } |
| 715 | } |
| 716 | } |
| 717 | |
| 718 | |
| 719 | public void showSketchbookFrame() { |
no test coverage detected