Package com.ronald.gantengtimesheet.ui.about

Source Code of com.ronald.gantengtimesheet.ui.about.AboutComponent

package com.ronald.gantengtimesheet.ui.about;

import java.awt.FlowLayout;

import javax.swing.ImageIcon;
import javax.swing.JLabel;

import org.jdesktop.swingx.JXLabel;
import org.jdesktop.swingx.JXPanel;

@SuppressWarnings("serial")
public class AboutComponent extends JXPanel {
  private static AboutComponent instance;
    public static synchronized AboutComponent getInstance() {
      if (instance == null) {
        instance = new AboutComponent();
      }
      return instance;
    }
    final String text = "<html>Ganteng Timesheet 1.04<br>(c) Ronald Suwandi 2010-2011. All rights reserved.</html>";
    private AboutComponent() {
      setName("About");
      setLayout(new FlowLayout(FlowLayout.LEFT));
      JXLabel icon = new JXLabel(new ImageIcon("img/icon.png"));
      JXLabel textLbl = new JXLabel(text);
      textLbl.setVerticalAlignment(JLabel.TOP);
      add(icon);
      add(textLbl);
    }
}
TOP

Related Classes of com.ronald.gantengtimesheet.ui.about.AboutComponent

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.