TFrmInformasi.java
Upload User: xueyuwuyin
Upload Date: 2017-11-10
Package Size: 511k
Code Size: 1k
Category:

J2ME

Development Platform:

Java

  1. package chat;
  2. import javax.microedition.lcdui.Command;
  3. import javax.microedition.lcdui.CommandListener;
  4. import javax.microedition.lcdui.Displayable;
  5. import javax.microedition.lcdui.Form;
  6. import javax.microedition.lcdui.StringItem;
  7. public class TFrmInformasi extends Form  implements CommandListener {
  8.     private Chat c;
  9.     public TFrmInformasi(final Chat c) {
  10.         super("Tentang Program");
  11.         this.c = c;
  12.         append(new StringItem("", 
  13.                 "Chat@Bluetoothn" +
  14.                 "Oleh: Didin"));
  15.         addCommand(new Command("OK", Command.BACK, 1));
  16.         setCommandListener(this);
  17.     }
  18.     
  19.     public void show() {
  20.         c.display.setCurrent(this);
  21.     }
  22.     
  23.     public void commandAction(Command command, Displayable displayable) {
  24.         c.frmMenu.show();
  25.     }
  26. }