|
@@ -55,16 +55,17 @@ public class CanvasResizePopUp extends JDialog {
|
|
|
int width = model.getCanvasX();
|
|
|
int height = model.getCanvasY();
|
|
|
Dimension preferedSize = new Dimension(width, height);
|
|
|
- canvas.setPreferredSize(preferedSize);
|
|
|
+ canvas.setPreferredSize(new Dimension(preferedSize));
|
|
|
for (int i = 1; i < tabbedPane.getTabCount(); i++) {
|
|
|
if (tabbedPane.getComponentAt(i) != null) {
|
|
|
JScrollPane scollPane = (JScrollPane) tabbedPane.getComponentAt(i);
|
|
|
- GroupNodeCanvas unc = ((GroupNodeCanvas) (scollPane)
|
|
|
+ GroupNodeCanvas groupNodeCanvas = ((GroupNodeCanvas) (scollPane)
|
|
|
.getViewport().getComponent(0));
|
|
|
- unc.setPreferredSize(preferedSize);
|
|
|
- unc.repaint();
|
|
|
+ groupNodeCanvas.setPreferredSize(new Dimension(preferedSize));
|
|
|
+ groupNodeCanvas.repaint();
|
|
|
}
|
|
|
}
|
|
|
+ canvas.revalidate();
|
|
|
canvas.repaint();
|
|
|
|
|
|
controller.getModel().getAllAbstractObjectsOnCanvas().stream().forEach(obj -> {
|