01: package abbot.editor;
02:
03: /** Provides the abbot/costello logo. */
04:
05: import javax.swing.*;
06: import javax.swing.border.*;
07: import abbot.i18n.Strings;
08:
09: class LogoLabel extends JLabel {
10: private static final String PATH = "icons/abbot.gif";
11:
12: public LogoLabel() {
13: super (Strings.get("Splash"), JLabel.CENTER);
14: java.net.URL url = getClass().getResource(PATH);
15: if (url == null)
16: System.err.println("Logo not found at " + PATH);
17: else
18: setIcon(new ImageIcon(url));
19: setVerticalTextPosition(JLabel.BOTTOM);
20: setHorizontalTextPosition(JLabel.CENTER);
21: setBorder(new EmptyBorder(4, 4, 4, 4));
22: }
23: }
|