X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fappletgui%2FTitledPanel.java;h=5d3ab94208654c3d6be5233174d654c83b68f5d3;hb=c794c5033adeee182b03a5ea92c0a7495a29661f;hp=85024539531a6b296fa1110df48104c7b3054d3b;hpb=838e4f91d4a53dd315640dbc9ff6ef7a815ee576;p=jalview.git diff --git a/src/jalview/appletgui/TitledPanel.java b/src/jalview/appletgui/TitledPanel.java index 8502453..5d3ab94 100644 --- a/src/jalview/appletgui/TitledPanel.java +++ b/src/jalview/appletgui/TitledPanel.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9.0b1) - * Copyright (C) 2015 The Jalview Authors + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors * * This file is part of Jalview. * @@ -20,13 +20,10 @@ */ package jalview.appletgui; -import java.awt.Frame; import java.awt.Graphics; import java.awt.Insets; -import java.awt.Label; import java.awt.Panel; -import java.awt.event.WindowAdapter; -import java.awt.event.WindowEvent; + public class TitledPanel extends Panel { @@ -62,27 +59,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;