X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fappletgui%2FTitledPanel.java;h=feeaf83cc25c4caced5964ee0cfdfa4188b4beec;hb=6200addf078b7f7ace90597dc056dafc7fc602c1;hp=1ae36f4e4fa2568b14baf7c87399f498e05bc8cd;hpb=1d4b37e9bd54c095aa00e643b741c931eb61c58b;p=jalview.git diff --git a/src/jalview/appletgui/TitledPanel.java b/src/jalview/appletgui/TitledPanel.java index 1ae36f4..feeaf83 100644 --- a/src/jalview/appletgui/TitledPanel.java +++ b/src/jalview/appletgui/TitledPanel.java @@ -1,3 +1,23 @@ +/* + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors + * + * This file is part of Jalview. + * + * Jalview is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 + * of the License, or (at your option) any later version. + * + * Jalview is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Jalview. If not, see . + * The Jalview Authors are detailed in the 'AUTHORS' file. + */ package jalview.appletgui; import java.awt.Frame; @@ -42,27 +62,6 @@ public class TitledPanel extends Panel g.drawString(getTitle(), 10, 10); } - public static void main(String[] args) - { - Frame f = new Frame("TitledPanel Tester"); - - TitledPanel p = new TitledPanel("Title of Panel"); - p.add(new Label("Label 1")); - p.add(new Label("Label 2")); - p.add(new Label("Label 3")); - f.add(p); - - f.addWindowListener(new WindowAdapter() - { - public void windowClosing(WindowEvent e) - { - System.exit(0); - } - }); - f.setBounds(300, 300, 300, 300); - f.setVisible(true); - } - public String getTitle() { return title; @@ -72,4 +71,4 @@ public class TitledPanel extends Panel { this.title = title; } -} \ No newline at end of file +}