Package org.pokenet.client.ui.base

Source Code of org.pokenet.client.ui.base.Notification

package org.pokenet.client.ui.base;

import mdes.slick.sui.Frame;
import mdes.slick.sui.Label;

import org.newdawn.slick.Color;

/**
* A notification
* @author shadowkanji
*
*/
public class Notification extends Frame {
  private Label m_text;
 
  public Notification(String message) {
    getContentPane().setX(getContentPane().getX() - 1);
    getContentPane().setY(getContentPane().getY() + 1);
    this.setSize(96, 64);
    this.setBackground(new Color(0, 0, 0, 75));
   
    m_text = new Label(message);
    m_text.pack();
   
  }

}
TOP

Related Classes of org.pokenet.client.ui.base.Notification

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.