Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - util
Search - util - List

1、将jre文件夹复制到你本机所在的JDK下覆盖掉全部jre文件夹

2、将lib文件夹复制到你项目所在的lib,添加对应lib


import org.smslib.IOutboundMessageNotification;
import org.smslib.Library;
import org.smslib.MessageEncodings;
import org.smslib.MessageProtocols;
import org.smslib.OutboundMessage;
import org.smslib.Service;
import org.smslib.modem.SerialModemGateway;
import java.util.List;


public class SendSms {
    public SendSms() {
    }


    public void sendSMS(String[] phoneNumber) throws Exception {
        Service srv;
        OutboundMessage msg;

        OutboundNotification outboundNotification = new OutboundNotification();

        srv = new Service();
        SerialModemGateway gateway = new SerialModemGateway("modem.com1",
                "COM1", 9600, null, null);
        gateway.setInbound(true);
        gateway.setOutbound(true);
        gateway.setSimPin("0000");
        gateway.setOutboundNotification(outboundNotification);
        gateway.setProtocol(MessageProtocols.PDU);
        srv.addGateway(gateway);

        try {
            srv.startService();

            for (int i = 0; i < phoneNumber.length; i++) {
                msg = new OutboundMessage(phoneNumber[i], "您有会议待处理,请登陆查看!");
                msg.setEncoding(MessageEncodings.ENCUCS2);
                srv.sendMessage(msg);

            }

        } finally {
            srv.stopService();
        }
    }

    public class OutboundNotification implements IOutboundMessageNotification {
        public void process(String gatewayId, OutboundMessage msg) {
            System.out.println("Outbound handler called from Gateway: " +
                               gatewayId);
            System.out.println(msg);
        }
    }


    public static void main(String args[]) {
        SendSms app = new SendSms();
        try {
            app.doIt();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
 


Date : 2009-01-03 Size : 1015.8kb User : idhuanghao

手机游戏坦克大战import java.awt.* import javax.swing.* import java.awt.event.* import java.util.EventListener public class HsTank2 extends JFrame { HsTank2(String title) { this.setTitle(title) this.setSize(608 , 630) this.setLocation(300 , 100) this.setBackground(Color.WHITE)-mobile phone games Tankedaizhan import java.awt .* import javax. swing .* import java.awt.event .* import java. util.EventListener public class HsTank2 exte nds HsTank2 (JFrame (String title) (this.setT itle (title) this.setSize (608, 630) this.setLocation (300, 100) this.setBackground (Color.WHITE)
Date : 2025-12-17 Size : 78kb User :

DL : 0
提供给JAVA入门者,免費下载PPT和源码 很多网友问我学习Java有没有什么捷径,我说“无他,唯手熟尔”。但是我却很愿意将自己学习的一些经验写出来,以便后来者少走弯路,帮助别人是最大的快乐嘛!   要想学好Java,首先要知道Java的大致分类。我们知道,自从Sun推出Java以来,就力图使之无所不包,所以Java发展到现在,按应用来分主要分为三大块:J2SE,J2ME和J2EE,这也就是Sun ONE(Open Net Environment)体系。J2SE就是Java2的标准版,主要用于桌面应用软件的编程;J2ME主要应用于嵌入是系统开发,如手机和PDA的编程;J2EE是Java2的企业版,主要用于分布式的网络程序的开发,如电子商务网站和ERP系统。J2SE开发桌面应用软件比起VC,VB,DELPHI这些传统开发语言来说,优势好象并不明显。J2ME对于初学者来说,好象又有点深奥,而且一般开发者很难有开发环境。所以现在应用最广泛又最好学的就是J2EE了。J2EE又包括许多组件,如JSP,Servlet,JavaBean,EJB,JDBC,JavaMail等。要学习起来可不是一两天的事。   那么又该如何学习J2EE呢?当然Java语法得先看一看的,I/O包,Util包,Lang包你都熟悉了吗?然后再从JSP学起。如果你学过HTML,那么事情要好办的多,如果没有,那你快去补一补HTML基础吧。其
Date : 2025-12-17 Size : 435kb User : 智慧男孩

J2ME Samsung Util API文档-J2ME Samsung Util API Documentation
Date : 2025-12-17 Size : 15kb User : Sol

DL : 0
FontExporter:将指定文件包含的文本,用指定的字体和大小导出到字库。 <br><br>PicFont:在另一个系统显示字库,可以将上面导出的文本,用同样的字体和大小显示出来。<br><br>使用的时候,先用 FontExporter 将图片字库导出,eg.<br>java util.loc.FontExporter 宋体 12 text.xml 0 FL12<br><br>然后在J2ME工程里面加入 PicFont.java,Lib.java,DataReader.java,创建PicFont对象,载入图片字用PicFont对象的 load()方法。画图片字用drawChar()方法。<br><br>目前图片字支持各种字体,大小是1~32像素,渐变、阴影特效。-FontExporter: the specified file contains the text, using the specified font and font size of export. <br><br> PicFont: show the font in another system, you can export the text above with the same font and size displayed. <br><br> Use when FontExporter will first export the picture font, eg. <br> java util.loc.FontExporter Song 12 text.xml 0 FL12 <br><br> Then add it in the J2ME project PicFont.java, Lib.java, DataReader.java, create PicFont object, load the word picture PicFont object using load () method. Draw pictures with words drawChar () method. <br><br> Currently supports a variety of picture word font, the size of 1 to 32 pixels, gradient, shadow effects.
Date : 2025-12-17 Size : 12kb User : lilianji

This lib util for j2me-This is lib util for j2me
Date : 2025-12-17 Size : 27kb User : Thuongnt

DL : 0
J2ME的文本压缩。 2ME压缩总汇的例子.对开发手机程序很有帮助。-GZIPInputStream is a pure J2ME implementation of the java.util.zip.GZIPInputStream class that uses the same Java API as in Java 1.1 or Java 1.4.1. The size of the com.tinyline.util.GZIPInputStream in the JAR format is about 6K. It is developed as a part of TinyLine SVG Toolkit.
Date : 2025-12-17 Size : 47kb User : 卡哈尔

port jazzlib-0.0.7 to j2me. source code (implementation of the java.util.zip library) http://code.google.com/p/staff/
Date : 2025-12-17 Size : 226kb User : loentar

DL : 1
基于J2ME的 填趣味数字游戏 包含源代码和素材 import javax.microedition.midlet.MIDlet import java.util.Random import javax.microedition.lcdui.* import javax.microedition.lcdui.game.* import javax.microedition.midlet.MIDletStateChangeException import javax.microedition.rms.* public class kenken extends MIDlet { static Display display //GameField gameFidld static MainGame game -number game
Date : 2025-12-17 Size : 464kb User : 沈筱
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.