X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=MooToolbar.java;h=50aaf4dafbfae93daf83e778a0a357d9a49ebfbb;hb=d2e307b3375152f1b47c59bc05210c96dc99f679;hp=a94aabdf8ef0138af880d5592a39c830c6fbd0fd;hpb=83ec11f99e143607d057db2a68c262ca9672e524;p=moosique.git diff --git a/MooToolbar.java b/MooToolbar.java index a94aabd..50aaf4d 100644 --- a/MooToolbar.java +++ b/MooToolbar.java @@ -24,6 +24,7 @@ public class MooToolbar extends JToolBar { */ public MooToolbar() { + setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); // setAlignmentX(LEFT_ALIGNMENT); setFloatable(false); mouseAdapter = new MAdapter(); @@ -100,7 +101,7 @@ public class MooToolbar extends JToolBar { ticksPerBeat = Moosique.getSequence().getResolution(); } - /* + /** * Creates a button with the specified image and tooltip. */ private JButton createButton(String imagelocation, String tooltip) { @@ -110,7 +111,7 @@ public class MooToolbar extends JToolBar { return button; } - /* + /** * Creates labels with the specified text and font size. */ private JLabel createLabel(String title, int fontSize){ @@ -119,7 +120,7 @@ public class MooToolbar extends JToolBar { return label; } - /* + /** * Formats the given label for the progress indicator. */ private JLabel formatProgInd(JLabel label){