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