]> ruin.nu Git - moosique.git/commitdiff
property windows show up..
authorMichael Andreen <harv@ruin.nu>
Sun, 18 May 2003 02:06:42 +0000 (02:06 +0000)
committerMichael Andreen <harv@ruin.nu>
Sun, 18 May 2003 02:06:42 +0000 (02:06 +0000)
MooDialog.java
MooNoteElement.java
MooTrackView.java

index 333d741b59d260708ffa6c064206aa7a79c8cc1f..a83ef8b7562e911fb4040e2049994e84a25abf62 100644 (file)
@@ -428,5 +428,6 @@ public class MooDialog extends JDialog {
                    }
                });
                pack();
+               setVisible(true);
        }
 }
index ce5e1e9043353aaf0ffe0daf5ecb33ca5b4ba876..f6bda05e3b447642af0acffa007f5083e6eaf915 100644 (file)
@@ -146,6 +146,12 @@ public class MooNoteElement extends JPanel {
                mtv.removeNote(this);
        }
 
+       /**
+        * layout this changed elemnt
+        */
+       protected void newLayout(){
+               mtv.layoutElement(this,true);
+       }
        /**
         * Listener that checks the mouse actions on this element.
         */
@@ -214,6 +220,7 @@ public class MooNoteElement extends JPanel {
                        Object source = e.getSource();
                        if (source == popupProp) {
                                new MooDialog(note);
+                               newLayout();
                        } else if (source == popupRemove) {
                                remove();
                        } else if (source == popupTransposeOctUp) {
@@ -229,5 +236,6 @@ public class MooNoteElement extends JPanel {
                        calculateString();
                        repaint();
                }
+
        }
 }
index 4f5c4f34fc2f8db9c2d965e399ec8d15c8250e49..0e5d09c21f5b48c1675da312d7ce26a48b811775 100644 (file)
@@ -116,6 +116,7 @@ public class MooTrackView extends JPanel {
                        viewLength = y + height;
                        if(old)setPreferredSize(new Dimension(VIEW_WIDTH, viewLength + extraHeight));
                }
+               if(old)repaint();
        }
 
        /**