3 The file is used to override JLabel to provides customized interfaces
5 Copyright (c) 2006, Intel Corporation
6 All rights reserved. This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 package org
.tianocore
.frameworkwizard
.common
.ui
;
18 import javax
.swing
.JLabel
;
21 The class is used to override JLabel to provides customized interfaces
26 public class StarLabel
extends JLabel
{
29 /// Define class Serial Version UID
31 private static final long serialVersionUID
= -6702981027831543919L;
34 Main class, reserved for test
39 public static void main(String
[] args
) {
40 // TODO Auto-generated method stub
45 This is the default constructor
54 To create a RED, BOLD and 14 size "*"
59 this.setSize(new java
.awt
.Dimension(10, 20));
60 this.setForeground(java
.awt
.Color
.red
);
61 this.setFont(new java
.awt
.Font("DialogInput", java
.awt
.Font
.BOLD
, 14));
62 this.setHorizontalAlignment(javax
.swing
.SwingConstants
.CENTER
);