]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/PackageEditor/src/org/tianocore/packaging/common/ui/StarLabel.java
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@671 6f19259b...
[mirror_edk2.git] / Tools / Source / PackageEditor / src / org / tianocore / packaging / common / ui / StarLabel.java
1 /** @file
2 Java class StarLabel is used to create star label.
3
4 Copyright (c) 2006, Intel Corporation
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 **/
13 package org.tianocore.packaging.common.ui;
14
15 import javax.swing.JLabel;
16
17 /**
18 Derived from JLabel class to have a red star on it.
19
20 @since PackageEditor 1.0
21 **/
22 public class StarLabel extends JLabel{
23 /**
24 * This is the default constructor
25 */
26 public StarLabel() {
27 super();
28 init();
29 }
30
31 /**
32 Create a label with red star * appear on it
33 **/
34 private void init() {
35 this.setText("*");
36 this.setSize(new java.awt.Dimension(10,20));
37 this.setForeground(java.awt.Color.red);
38 this.setFont(new java.awt.Font("DialogInput", java.awt.Font.BOLD, 14));
39 this.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
40 }
41 }