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);
}
}