Pair of Vintage Old School Fru

Học j2me, mod, hack game miễn phí tại Dinhs8.Wap.Sh


Wap j2me
HOMECHATFREE TOOL
» »
Tìm Kiếm| Lượt Xem : ( XtCAT -:- 404
0: php_network_getaddresses: getaddrinfo failed: Name or service not known
Advertise Here

404 - Page Not Found - Back Home


Total Visits: 49689225
Visits Today: 190986
This Week: 190986
This Month: 1683671

This site, is built entirely by using XtGem.

XtGem is a visual mobile site building tool, allowing users to create and maintain highly customizable personal mobile sites completely free of charge - and without a need to know any programming language at all!

)
| Tập tin chủ đề (0)
↓ Bai string item

Sau khi tạo ứng dụng đơn giản nhất là HelloWorld hãy làm quen với vài đối tượng trên form.
.================= STRINGITEM =================
Bài này sẽ hướng dẫn thêm dòng chữ vào Form bằng string item có tên tuổi hẳn hoi.StringItem là một dòng chữ, có tên. Mời bạn xem qua đoạn mã này:Code :


import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

public class StrgItem extends MIDlet{

  Form f = new Form("tieu de");

  StringItem si = new StringItem("chuoi", "alibaba mang quan si da xe ra lam ba...");

  Display d = Display.getDisplay(this);

  public void startApp(){

    f.append("dong nay viet ra ma ko can string item");

    f.append(si);

    d.setCurrent(f);

  }

  public void pauseApp(){

  }

  public void destroyApp(boolean uncon){

  }

}

File_StringITEM

Giải thích .. StringItem si=new StringItem("chuoi","alibaba mang quan si da xe ra lam ba..."); Cấu trúc khai báo StringItem giống như Form, StringItem tên = new StringItem("tiêu đề","nội dung"); và tên của string item trên là si chứ ko phải là "chuoi" nhé. Để string item hiện ra thì phải gắn nó lên Form: f.append(si); và có thể gắn lên nhiều Form khác f2.append(si); f3.append(si); .. Display d=Display.getDisplay(this); Dòng này khai báo biến d là biến Display. Nếu có dòng này rồi thì phía dưới chỉ cần d.setCurrent(f); thôi. Nếu ko có dòng này thì phía dưới phải ghi là Display.getDisplay(this).setCurrent(f); nếu bạn thấy quá thừa thì hãy nghĩ lại, các ứng dụng thường sử dụng rất nhiều lần dòng Display.getDisplay(this).setCurrent(f); vì thế việc khai báo biến d ra là rất có ích. .. Các thao tác với string item: si.getText(); lấy nội dung của nó si.setText("nội dung"); đặt nội dung cho nó si.getLabel(); lấy tiêu đề si.setLabel("tiêu đề mới"); đặt tiêu đề cho nó StringItem là thứ rất đơn giản và dễ dùng, bạn nên tập dùng vài lần.


Đánh giá của bạn là góp ý quan trọng giúp Admin nâng cao chất lượng bài viết !
Đánh giá:like XtCAT -:- 404
0: php_network_getaddresses: getaddrinfo failed: Name or service not known
Advertise Here

404 - Page Not Found - Back Home


Total Visits: 49689228
Visits Today: 190989
This Week: 190989
This Month: 1683674

This site, is built entirely by using XtGem.

XtGem is a visual mobile site building tool, allowing users to create and maintain highly customizable personal mobile sites completely free of charge - and without a need to know any programming language at all!

|dislike XtCAT -:- 404
0: php_network_getaddresses: getaddrinfo failed: Name or service not known
Advertise Here

404 - Page Not Found - Back Home


Total Visits: 49689234
Visits Today: 190995
This Week: 190995
This Month: 1683680

This site, is built entirely by using XtGem.

XtGem is a visual mobile site building tool, allowing users to create and maintain highly customizable personal mobile sites completely free of charge - and without a need to know any programming language at all!


XtCAT -:- 404
0: php_network_getaddresses: getaddrinfo failed: Name or service not known
Advertise Here

404 - Page Not Found - Back Home


Total Visits: 49689228
Visits Today: 190989
This Week: 190989
This Month: 1683674

This site, is built entirely by using XtGem.

XtGem is a visual mobile site building tool, allowing users to create and maintain highly customizable personal mobile sites completely free of charge - and without a need to know any programming language at all!

.png" alt="vote" />
Có tcm
100/ 100 100 bình chọn
HomeLượt Xem: 1/ XtCAT -:- 404
0: php_network_getaddresses: getaddrinfo failed: Name or service not known
Advertise Here

404 - Page Not Found - Back Home


Total Visits: 49689225
Visits Today: 190986
This Week: 190986
This Month: 1683671

This site, is built entirely by using XtGem.

XtGem is a visual mobile site building tool, allowing users to create and maintain highly customizable personal mobile sites completely free of charge - and without a need to know any programming language at all!

Link:
BBcode:
Bình Luận
Tên bạn:

Nội dung:





↑Cùng Chuyên Mục
Bạn xem chưa ?
Tags: , , Bai, string, item, ,
Liên Kết
Liên Hệ - Hỗ Trợ
Info Author Admin: Công Sơn (AnhSon)
Phone Author Phone: 01629361809
Email : AnhSon99nb@gmail.com
FaceBook : Sơn
Thống Kê
Hiện Đang Có : 1 Người Online
Hôm nay : 12
Tổng cộng : 20159