X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=MooTrackTitle.java;h=979aed2139208e234f4124871b34b955fe536aef;hb=19db604db6c736c9afc31650b2efac6eb8e2f70b;hp=f2bed14e37b919130e2c6abda153bdc113aed64c;hpb=f8acd2446a3907efc197bbf52ff55377fce0482a;p=moosique.git diff --git a/MooTrackTitle.java b/MooTrackTitle.java index f2bed14..979aed2 100644 --- a/MooTrackTitle.java +++ b/MooTrackTitle.java @@ -25,6 +25,16 @@ public class MooTrackTitle extends JPanel { private String trackName = ""; private int channel = 0; + /** + * Creates the title bar for an empty track, and therefore an initial channel is required. + * @param aTrack the track that this tracktitle is operating on. + * @param chan the initial channel + */ + public MooTrackTitle (Track aTrack, int chan) { + this(aTrack); + channel = chan; + } + /** * Creates the title bar. * @param aTrack the track that this tracktitle is operating on.