Posted by: tonyteaching | May 31, 2009

1. Function for viewing the headings of ‘INBOX SMS’ when the application is run

To create the headings of the table  (I names the variable as “tabelSMSmasuk”)

SMSnot_table

There are 2 things that we have to do:

1. Type code below on the source view of the file/class (SimpleNotification.java)

javax.swing.table.DefaultTableModel tabSMS = new javax.swing.table.DefaultTableModel(null, new String[] {“Id SMS”,”Status”,”Date”,”Time”,”Phone.No.”,”Message”,”Memory”}){
public boolean isCellEditable(int iRows, int iCols){
return false;
}};

2. Insert code on the table object (‘tabelSMSmasuk’) in ‘Post Init Code‘ (in Properties-Code tab):

tabelSMSmasuk.setModel(tabSMS);

Now, save and ready to run! check it out!


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: