View Javadoc
1   /*
2    * HeaderPanel.java
3    * Copyright (C) 2004  Pal Brattberg <pal@eminds.se>
4    * 
5    * This program is free software; you can redistribute it and/or modify
6    * it under the terms of the GNU General Public License as published by
7    * the Free Software Foundation; either version 2 of the License, or
8    * (at your option) any later version.
9    * 
10   * This program is distributed in the hope that it will be useful,
11   * but WITHOUT ANY WARRANTY; without even the implied warranty of
12   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13   * GNU General Public License for more details.
14   * 
15   * You should have received a copy of the GNU General Public License
16   * along with this program; if not, write to the Free Software
17   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18   * 
19   * File created: 2004-nov-13
20   */
21  package se.perfectfools.localizer.gui;
22  
23  import java.awt.Dimension;
24  import java.awt.Font;
25  
26  import javax.swing.Box;
27  import javax.swing.BoxLayout;
28  import javax.swing.JLabel;
29  import javax.swing.JPanel;
30  
31  import se.perfectfools.localizer.i18n.Messages;
32  
33  /***
34   * <code>HeaderPanel</code>
35   * 
36   * @author P&aring;l Brattberg &lt; <a href="mailto:pal@eminds.se">pal@eminds.se </a>&gt;
37   * @version $Id: HeaderPanel.java,v 1.1 2004/11/13 14:44:18 pal Exp $
38   */
39  public class HeaderPanel extends JPanel {
40  
41      public HeaderPanel()
42      {
43          super();
44          this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
45          JLabel label = new JLabel(Messages.getString("MainWindow.label.editl10nfile")); //$NON-NLS-1$
46          Font newFont = label.getFont().deriveFont(15f).deriveFont(Font.BOLD);
47          label.setFont(newFont);
48          this.add(label);
49          this.add(Box.createRigidArea(new Dimension(0, 5)));
50      }
51  }