]>
git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/PackageEditor/src/org/tianocore/packaging/common/ui/StarLabel.java
2 Java class StarLabel is used to create star label.
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
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.
13 package org
.tianocore
.packaging
.common
.ui
;
15 import javax
.swing
.JLabel
;
18 Derived from JLabel class to have a red star on it.
20 @since PackageEditor 1.0
22 public class StarLabel
extends JLabel
{
24 * This is the default constructor
32 Create a label with red star * appear on it
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
);