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