TABLE in j2me

help !!! how made a simple table with 6 columns and 9 rows, with text in center.
(for plan of lessons)

If you're using NetBeans, you can use the pre-built TableItem. If you're using LWUIT 1.3, there's also a Table component. Otherwise, you'll need to implement it by yourself

Similar Messages

  • Is it a third party API for creating table in J2ME?

    I am a newbie to J2ME and i would like to know that whther is there any third party API for creating table in J2ME beside using Canvas to draw the table? Please help...

    its not the "L shape" that holds it better rather the higher GAUSS rating on the older connector.
    Apple redesigned the NEW magsafe to be weaker AND of a diff. design with lower neodymium magnetic gauss rating for a reason
    people at coffee shops etc were getting their macbooks yanked to the ground when someone tripped over the cord.
    The new neodymium is a N35 gauss and the older Lshape was N40 or N45 gauss (too tight)
    I know what youre talking about, but Apple redesigned it that way for several good reasons, despite it "coming out easier" on the bed for which ,
    as Apple Inc. states, it is "not intended to be used" (nor in laps, couches...etc.)

  • J2ME Device Table / Matrix vanished from sun website

    No so long ago Sun hosted a matrix / table of devices which supported J2ME. This was a very cool resource as it made it very easy to find out which devices supported what features.
    I found these items in the web archive :
    http://web.archive.org/web/20060316042422/http://developers.sun.com/techtopics/mobility/device
    http://web.archive.org/web/20070824222640rn_2/developers.sun.com/mobility/device/device
    However when looking on the sun website they seem to have vanished. Any ideas where I can find similar information. I found the Nokia site already, but that only includes details on Nokia phones.

    - if you click on the old location of this page: [http://developers.sun.com/techtopics/mobility/device|http://developers.sun.com/techtopics/mobility/device]
    -- it will redirect you to another page, [http://java.sun.com/javame/index.jsp#devicematrix|http://java.sun.com/javame/index.jsp#devicematrix]
    --- which explains how you can get that information now:
    >
    The Java ME technology Device Matrix has been replaced by a database included with the [Java ME SDK 3.0|http://java.sun.com/javame/downloads/sdk30.jsp], which lets you find technical specifications on mobile devices using the built-in WURFL database search engine. Over 8000 mobile device specifications are available from the Java ME SDK.
    >
    is there something in explanation above that is difficult to understand?

  • Follow up to arcsines and J2ME(saving the table)

    ok, I've got a table I can only generate on my PC, but I need to somehow package it with a midlet, and have the midlet open it. Midlet's don't support serialization, only persistance(which can only be saved and read on the phone), or any direct file handling class. I'd like a way to do this without having to use the internet connection.

    Use DataOutputStream on the desktop and DataInputStream (around a resource from the class' jar, probably) in the midlet.

  • J2ME app.: To update Oracle table by sending data through mobile phone

    Hello all,
    I want to develop a mobile app to update the table of oracle database by sending the data through the SMS (Short Message Service). Means I'll send a sms through my cellphone containing some data and this data will be used to update the remote oracle database. How to do that?. Plz help.
    Thanx in advance.

    hi
    My problem is here I need to update the loginfo table with the file name, count of records, table name and datetime.
    For instance my dat file is XX.dat
    my database table name is Mytable
    Total record count is 10,00,000 records
    datetime as on this date
    the data in the XX.dat file I am using the controlfile (SQL*loader and dumping into the Mytable.Now my 10,00,000 records are dumped into the Mytable.
    This process information I want to store it in the loginfo table. For this I need the trigger
    CREATE OR REPLACE TRIGGER MYTRIGG
    AFTER INSERT ON MYTABLE
    Declare
    V_Count Number;
    Begin
    Select count(*) into V_Count from Mytable;
    Insert into Loginfo(TotalRecords,Date)
    Values(V_Count,Sysdate);
    end;
    This is the trigger I have used.But in my loginfo table instead of one value as 10,00,000 it is getting each record as row by row
    1
    4
    100
    1000
    10,00,000
    So I need only one value to be stored and at the same time my tablename and filename must also be stored.
    Kindly help me
    suroop

  • How to add a table (J2ME CDC)

    Is there a way to add a table?
    I am using Eclipse IDE & IBM J9 ( Personal Profile 1.1, FP 1.1, CDC 1.1)
    Thanks in advance.

    Hi , Swapna
    is you mail address right? can not send out.
    first , you should have added one field using EEWB ,  then to EEWB , find the extension , double click on the task, there  you will find a  "object list"  on the right, the list will give you many many very important  information , you should look through .
    then double click on the "screen:  ..........EEW......." ,  layout , there you will find the field you have added in .  and you can draw anything you want there , then back to the screen flow , write you flow logic in PBO and PAI .
    about the global  data definition,  again to the "object list", you will find a "Report source code:  ......................TOP". in there ,you can define all you data .
    another thing  if you want to save your input field to database tables that you draw (not by EEWB added)
    two ways:
    1. write update table directly  in  PAI module .
    2.  you can use this BADI :  ORDER_SAVE , this is when you save the order to trigger the save action.

  • How to deal with deadlock on wwv_flow_data table when http server times out

    There are some threads about a deadlock on the wwv_flow_data table. None of them contain a real explanation for this behaviour. In my case I will try to explain what I think is happening. Maybe it helps somebody who is hitting the same matter.
    In my case with APEX 3.2.1 I am navigating from one page to another. Doing this APEX will lock the table wwv_flow_data. As soon as the other page is shown the lock will be released. But now this other page contains a bad performing query (standaard report region). After 5 minutes the http server (modplsql) will time out and present the message "No response from the application server" on the screen. In the meanwhile the query is still running on the database server and the lock stays on the wwv_flow_data table.
    Normal user behaviour will be that the user will use the back button to return to the previous page and tries it again to navigate to the other page or
    the user will try to refresh the page with the bad performing query.
    And voila now you will have a deadlock on the wwv_flow_data table since a second session is trying to do the same thing while the first hasn't finished yet.
    How to deal with it?
    First of all. Have a good look at the bad performing query. Maybe you can improve it that it will succeed before the http server will timeout.
    In my case the 11gr1 optimizer couldn't handle a subquery factoring clause in the best way. After changing it back to a classical inline query the problem was solved.
    Secondly you could increase the timeout parameter of the http server. Although this not the best way.
    Maybe it would better if APEX in a next version would release the lock on the table wwv_flow_date earlier or do a rollback just before the moment that the http server is timing out.
    regards,
    Mathieu Meeuwissen

    Hello Shmoove,
    I saw your reply here and you probably understand the problems the HTTP 100 response may cause.
    I am trying to send image that was taken by getSnapshot. The problem is that the server respond with this HTTP 100 message.
    I suspect that the reason that my server doesn't recognize the file that I'm sending from J2me is that the "server to client" response to the 100 message comes after the second message of (see what the TCPIP viewer shows down here):
    POST /up01/up02.aspx HTTP/1.1
    Content-Type: multipart/form-data; boundary=xxxxyyyyzzz
    Connection: Keep-Alive
    Content-length: 6294
    User-Agent: UNTRUSTED/1.0
    Host: szekely.dnsalias.com:80
    Transfer-Encoding: chunked
    400: Client to Server (126 bytes)
    78
    --xxxxyyyyzzz
    Content-Disposition: form-data; name="pic"; filename="david.jpg"
    Content-Type: application/octet-stream
    400: Connected to Server
    400: Server to Client (112 bytes)
    HTTP/1.1 100 Continue
    Server: Microsoft-IIS/5.1
    Date: Wed, 23 Mar 2005 00:47:02 GMT
    X-Powered-By: ASP.NET
    Any help will be appreciated,
    David

  • Is there *any* way to ping MIDlet using default SMS/call (j2me)

    Hi,
    I'm writing a server style MIDlet which is polling a bluetooth device, the nature of the server is such that the phone running the MIDlet (in my case, a Motorola L6) is dedicated, it needs do nothing other than run the server, it is assumed it will not be used for anything else. Specifically the only phone calls or SMS messages it receives should be specific ping requests to server. The server will run 24/7, and should be resistant to being suspended by incoming calls (I've noted this could be a problem in itself).
    All I really want is for a 3rd party, without any special client software, to be able to ping the server (prompt it) to dispatch a set of text data to a pre-defined phone number via SMS (using WMA TextMessage).
    Basically someone should be able to set up the server, and then, with any phone (with no specific client MIDlet installed), be able to call or SMS the server and get a response posted back (to a fixed number, not necessarily to originating phone number).
    Does anyone know any way, no matter how hacky (needn't be pretty), to achieve this? You cannot receive SMS notifications on default port. An incoming call will call pauseApp which I could use - but not resume it, so server remains suspended. There are ways around having app suspended on receipt of call/SMS, but they involve never receiving the pauseApp notification, so I'm back to square one. I've wondered if I could check the free disk space on the MIDP profile (somehow) to 'detect' when it reduces in size, thus suggesting an SMS must have come in. Can a user send an SMS to a specific port with standard SMS-send interface (certainly can't see how myself, as no ':' character available). Can you hack the phone to re-route incoming SMS messages to something other than the default port?
    Is there a specific phone that might do this (I just need a phone supporting j2me bluetooth API, needn't be motorola L6)?.
    I think this can be done with Symbian (of which I know very little), and ultimately I might need to start programming with that, but I'd really prefer to continue using j2me..
    Any ideas would be greatly appreciated, I've spent a fair bit of time trolling for answers with only limited success.
    Cheers
    Edited by: bbloff on Oct 10, 2007 8:50 PM

    The tunnel default gateway is needed to let the internal firewall and router handle the routing for all decrypted IPsec packets. Today, after a Cisco IOS? EasyVPN Client connects to a Cisco IOS EasyVPN Server, there is no simple way for the client to send the tunnel traffic to the internal corporate network (other than to have the entire routing table on the IPsec gateway). In this type of implementation, the Cisco IOS routers use the default gateway to route all packets toward the Internet that do not have a more specific route. The tunnel default gateway gives customers the flexibility to control how they handle IPsec tunneled traffic

  • Creation of a database engine for mobile devices using j2me

    am trying to develop a database engine for mobile devices.. it is to develop a miniature version of the DBMS that
    can be deployed on a mobile phone..I have to develop my own code for performing tasks such a s creating a table,
    inserting values into it, selecting from it etc..
    I limited my self to develop the software so that it can perform 3 functionalities of create, insert,select..
    I should be taking the details such as table name and its parameters from the user and then should be able to
    create a suitable data structure for it(i tried to develop a class)...
    Usage of RMS package helps me partially in this.. I did that and ll be doing that..
    I got stuck while developing the code for creation of a table.. I am facing problems in creating a dynamic data
    structure for a table and also to use such data structure else where in my project..
    I need help in developing an algorithm for this..
    I would be very grateful to u all if u help me out in developing the code for this project..

    I'm sorry for the amount of time it took me to get back. Derby is an open source database written entirely in Java. I do not know if it can support resource constrained devices like MIDP compliant, but may work okay with CLDC.
    But outside of Derby being a solution, let me give you a few ideas off the top of my head.
    Set up a database server in a separate thread. This server will really be your controller for RMS access.
    Since RMS is just a big sequential 'pipe' you will have to think of data as 'frames' - (starttable) (tableID) (tablename) (data) (tablename) (data).....(endtable).
    When you need to write additional data, just append it to the end of the RMS object.
    When you need to retrieve data, thing are more complex.
    1. Read in all data, looking for your particular tableID. This may be made much easier using RMS filters - (I'm not sure, I've never used them)
    2. Once start of table of interest is found, stick the data elements in either a java vector or array until you reach the table end identifier. I think vector will be a better choice - trust me. (I think its available in J2ME...)
    3. Package this into a do while loop until the element you are searching for is read. If you need to do some sorts on the data or something else that requires the all the data to be present then you need all the data for that particular table. One thing will always be clear. The first data you grab will always be some start table identifier and the last data you grab will be an end table identifier. We just don't know which table because of how we put stuff in the RMS resource.
    This provides you a few positives as well as negatives:
    Positive:
    1. Fast data writes, no need to search for a particular table before accessing it, nor do you need to search for an index in that table.
    2. When looking for data, data may* be found without searching through the entire table. This is accomplished with RMS filters or logic test within the RMS read loop.
    Negative:
    1. Slow when all data of a table is needed (i.e. compute sums or averages of entries). The entire RMS database must be read to ensure all the entries are searched. An example of how this is a problem is as follows: You have 5000 entries in you RMS database resource and you are looking to compute the average of a value in some table. When you first wrote the data to the table, it was done sequentially and no other data for that table exist. But we can't tell if that's the case, so we have to read through all 5000 entries to make sure we looked for every piece of data.
    Beacuse of this issue, this database structure, performance may be fine for 50K - 100K entries (depending on table element size), if the reading requirements don't force full data reads. Otherwise, 25K may be an upper limit.
    I hope this helps.
    Edited by: estarkey on Mar 17, 2009 9:15 PM
    Edited by: estarkey on Mar 17, 2009 10:01 PM

  • Creating Drop Down Lists in J2ME

    Hello all,
    I'm not an experienced programmer, and I fear that the rumours of posting a crie for help only to be set upon by hundreds of blood thirsty 'newbe' hunters may be true, but here goes none the less.
    Would love to know if any kind soul has hints on how to create drop down lists in J2ME, for selecting a option which would be able to relate to a database (Table).
    At the moment I'm using straight forward TextField entries, which is hardly convenient! :)
    Any help/comments/sweets appreciated!
    Cam

    Hi Cameron,
    Only MIDP 2.0 support drop down list. So if you currently coding in the MIDP 2.0 environment, here are the codings.
    String arr = new String[]{"Happy","Sad"};
    ChoiceGroup ch = new ChoiceGroup("Select Choice:",ChoiceGroup.POPUP,arr,null);
    append(ch);
    Hope this codes is helpful to you.

  • J2ME standalone AQ client

    hi all!
    i'm working on developing a standalone client for a handheld device running under a J2ME/PersonalJava 3.1 environment connecting to oracle 10.2.0.1.0
    my goal is to:
    # create a topic subscriber that will handle notifications broadcast on the topic (obviously many devices will be subscribing to the topic)
    # keep the client code as portable as possible by using JMS interfaces
    these are the classes that i have in my classpath:
    * $ORACLE_HOME/jdbc/lib/classes12.jar
    * $ORACLE_HOME/jdk/jre/lib/ext/jta.jar
    * $ORACLE_HOME/jlib/jndi.jar
    * $ORACLE_HOME/rdbms/jlib/aqapi12.jar
    * $ORACLE_HOME/rdbms/jlib/jmscommon.jar
    here is a sample class to listen to the topic:
    import oracle.jms.AQjmsOracleDebug;
    import oracle.jms.AQjmsSession;
    import oracle.jms.AQjmsTopicConnectionFactory;
    import oracle.AQ.AQDriverManager;
    import org.apache.log4j.Logger;
    import javax.jms.Message;
    import javax.jms.MessageListener;
    import javax.jms.ObjectMessage;
    import javax.jms.Session;
    import javax.jms.Topic;
    import javax.jms.TopicConnection;
    import javax.jms.TopicSession;
    import javax.jms.TopicSubscriber;
    import java.io.Serializable;
    import java.net.InetAddress;
    import java.sql.Connection;
    import java.sql.DriverManager;
    public class TopicAttachment implements MessageListener {
        private final Logger log = Logger.getLogger(getClass());
        private final Connection dbConnection;
        public TopicAttachment(Connection dbConnection) {
            this.dbConnection = dbConnection;
        public void attach() throws Exception {
            TopicConnection connection = AQjmsTopicConnectionFactory.createTopicConnection(dbConnection, true);
            connection.setClientID(InetAddress.getLocalHost().getHostAddress());
            TopicSession session = connection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
            Topic orderCounts = ((AQjmsSession) session).getTopic("STOREORD", "T_ORDER_COUNTS");
            TopicSubscriber subscriber = session.createSubscriber(orderCounts);
            subscriber.setMessageListener(this);
            connection.start();
        public void onMessage(Message message) {
            try {
                ObjectMessage om = (ObjectMessage) message;
                Serializable notification = om.getObject();
                log.info("Received notification: " + notification);
                // TODO: Handle notification in background thread
            } catch (Exception ex) {
                log.error("Failure processing notification", ex);
        public static void main(String[] args) throws Exception {
            System.setProperty("oracle.jms.useEmulatedXA", "false");
            System.setProperty("oracle.jms.useNativeXA", "false");
            AQDriverManager.disableOciAQ();
            AQjmsOracleDebug.setDebug(true);
            AQjmsOracleDebug.setTraceLevel(AQjmsOracleDebug.AQ_ORA_TR6);
            Class.forName("oracle.jdbc.driver.OracleDriver");
            TopicAttachment attachment = new TopicAttachment(DriverManager.getConnection(
                    "jdbc:oracle:thin:@localhost:1521:xxxx", "storeord", "xxxx"));
            attachment.attach();
    }there are two points where my portability constraints are violated, but that's ok for now.
    when i run the example, this is what i get:
    main [Mon Sep 08 15:12:57 CDT 2008] AQjmsDBConnMgr ctor (user jdbc conn):  connection: oracle.jdbc.driver.T4CConnection@d1fa5
    main [Mon Sep 08 15:12:57 CDT 2008] AQjmsDBConnMgr.extraInit:  enter
    main [Mon Sep 08 15:12:57 CDT 2008] AQjmsDBConnMgr.extraInit:  The connection class: oracle.jdbc.driver.T4CConnection
    main [Mon Sep 08 15:12:57 CDT 2008] AQjmsDBConnMgr.extraInit:  exit
    main [Mon Sep 08 15:12:57 CDT 2008] AQjmsDBConnMgr ctor (user jdbc conn):  exit
    main [Mon Sep 08 15:12:57 CDT 2008] AQjmsConnectionn ctor (user jdbc conn):  connection: oracle.jdbc.driver.T4CConnection@d1fa5 type: 20
    main [Mon Sep 08 15:12:57 CDT 2008] AQjmsConnection.setCompliant:  Current <compliant> is set to:true
    main [Mon Sep 08 15:12:57 CDT 2008] AQjmsDBConnMgr.getConnection:  use the external connection with usage check
    main [Mon Sep 08 15:12:57 CDT 2008] AQjmsDBConnMgr.getConnection:  passed usage check, creating from exteranl connection
    main [Mon Sep 08 15:12:57 CDT 2008] AQjmsSession.constructor:  dbversion=10201
    main [Mon Sep 08 15:12:57 CDT 2008] AQjmsSession.setDBRatio:  enter
    main [Mon Sep 08 15:12:57 CDT 2008] AQjmsSession.setRatio:  The DB csid = 178
    main [Mon Sep 08 15:12:57 CDT 2008] AQjmsSession.setRatio:  exit
    main [Mon Sep 08 15:12:57 CDT 2008] AQjmsSession.inGlobalTrans:  entry
    main [Mon Sep 08 15:12:57 CDT 2008] AQjmsSession.inGlobalTrans:  oracle.jms.useEmulatedXA is off
    main [Mon Sep 08 15:12:57 CDT 2008] AQjmsSession.inGlobalTrans:  exit
    main [Mon Sep 08 15:12:57 CDT 2008] AQjmsSession.constructor1:  oci enabled = false
    main [Mon Sep 08 15:12:57 CDT 2008] AQjmsConnection:createTopicSession:  Created session
    main  AQOracleSession.getQueue:  Secure queue table: NO
    main  AQOracleQueue.getProperty:  return cached prop
    main  AQOracleSession.getQueueTable:  Payload type: RAW
    main  AQOracleSession.getQueueTable:  Secure queue table: NO
    main [Mon Sep 08 15:12:57 CDT 2008] AQjmsSession.chopit:  TSUB_1_b2b5787a678d40f0a2e589f89e6348fc -> TSUB_1_b2b5787a678d40f0a2e589f
    java.lang.NullPointerException
    at oracle.jms.AQjmsSession.getAQJmsSelector(AQjmsSession.java:2550)
    at oracle.jms.AQjmsSession.createDurableSubscriber(AQjmsSession.java:2520)
    at oracle.jms.AQjmsSession.forceCreateOldSubscriber(AQjmsSession.java:2924)
    at oracle.jms.AQjmsSession.createSubscriber(AQjmsSession.java:2240)
    at com.containerstore.device.notification.TopicAttachment.attach(TopicAttachment.java:35)
    at com.containerstore.device.notification.TopicAttachment.main(TopicAttachment.java:64)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
    Exception in thread "main" i've tried many different incarnations of this basic setup with the same results. it always fails with a NPE when creating the subscriber. i've even used the more AQ specific classes/methods like TopicReceiver with the same results.
    is what i'm trying to accomplish even possible?
    thanks!

    Don't let the fact that I've been doing AQ for years and no one else has responded throw you. <g>
    When I see things like this:
    public static void main(String[] args) throws Exception {
            System.setProperty("oracle.jms.useEmulatedXA", "false");
            System.setProperty("oracle.jms.useNativeXA", "false");it is hard to not read it as Java.

  • Signal 11 using thin driver with J2ME

    I'm trying to use JDBC in a client application on a linux appliance using J2ME (CDC, Foundation Profile with optional JDBC package), but when it tries to load the Oracle driver (oracle.jdbc.pool.OracleDataSource) there is a memory fault. I know it's not a memory allocation or memory size problem, because on my desktop it only allocates 300 K, and I have more than 10 Mb free RAM in the appliance, and I changed all possible memory parameters in the JVM initialization.
    At the end of the day, all I need is to connect to an Oracle 8.1.7 database from embedded Linux. Is it possible to use oracle.lite.poljdbc.POLJDBCDriver , the driver for Oracle Lite, instead of the driver in classes12.zip? Will the client work correctly?
    If you have some contact with Oracle and interest in J2ME, I would like to encourage you to visit
    http://jcp.org/aboutJava/communityprocess/final/jsr169/
    and ask your Oracle representative about its support for J2ME and JDBC.
    Regards,
    Gustavo Frederico
    gustavo.frederico at allstream dot com

    Wish to know whether there is a common way to connect to Oracle 11g server using SID or service name.
    Earlier I used jdbc:oracle:thin:@<<server>:<<port>>:<<SID>> for connecting to individual Oracle server instances.
    Now I need to connect to Oracle RAC which provides service names. So I need to use jdbc:oracle:thin:@<<server>:<<port>>/<<service name>>.
    This connection string is internally constructed by a program and user inputs <<server>>, <<port>> and <<SID>> or <<Service Name>>. Now this requires two different connection strings based on the input whether its SID or service name.
    Is there a common connection string for these two? Based on some articles like this, I understood that we can generically use jdbc:oracle:thin:@<<server>:<<port>>/<<service>>, whether for SID and service.
    When I tried this format with SID, I am getting the below error. What I tried is jdbc:oracle:thin:@myoracleserver:1521/ORCL, where ORCL is the SID
    java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
    Request your help in solving this. What I want is a single connection string whether its SID or service. Any help is of great value.
    Oracle has an entire book for JDBC: The JDBC Developer Guide.
    There are chapters that provide ALL of the connection properties and the rules for creating connection urls.
    http://docs.oracle.com/cd/E11882_01/java.112/e16548/urls.htm#BEIDBFDF
    See table 8-3 in that doc

  • LWUIT Table

    Hello,
    I'm creating a mobile application based on LWUIT. One of the forms contains a Table component. My question is how can I make the table rows selectable? What I want to achieve and enabling the user to select the table rows individually and the application should be able to detect which row was selected.
    Regards.

    dark_light,
    I had a lot of difficulty with this exact same task.
    For simplicities sake, I ended up ditching LWUIT and using the TableItem built into NetBeans. Unfortunately, [TableItem is broken for row selection too!!!|http://forums.netbeans.org/topic7741.html]
    So I wrote this hack, which I'm now reluctantly posting for you (out of embarrassment for not doing it right):
    [http://fatbuttlarry.blogspot.com/2010/04/j2me-selectable-table-in-netbeans.html]
    NetBean's TableItem works perfectly fine with the up and down on the directional pad, so I just fathom a guess of where that will be in the table and hit the up or down key. It's not pretty, but its working on Windows Mobile 5 + Windows Mobile 6 with IBM's J9 emulator.
    // This is a hack. Use at your own risk. -Tres
    import javax.microedition.lcdui.Canvas;
    import javax.microedition.lcdui.Display;
    import org.netbeans.microedition.lcdui.TableItem;
    import org.netbeans.microedition.lcdui.TableModel;
    import org.netbeans.microedition.lcdui.laf.ColorSchema;
    * @author A. Tres Finocchiaro
    public class SkidletTableItem extends TableItem {
    protected double rowBias = -1;
    protected double rowCount = -1;
    public SkidletTableItem(Display display, String title) {
         super(display, title);
    public SkidletTableItem(Display display, String title, TableModel model) {
         super(display, title, model);
    public SkidletTableItem(Display display, String title, TableModel model, ColorSchema colorSchema) {
         super(display, title, model, colorSchema);
    public void setModel(TableModel model) throws IllegalArgumentException {
         rowBias = -1;
         rowCount = -1;
         super.setModel(model);
    public void tableModelChanged(TableModel changedModel) {
         rowBias = -1;
         rowCount = -1;
         super.tableModelChanged(changedModel);
    protected void pointerPressed(int x, int y) {
         selectRow((int) calculateRow(y));
         super.pointerPressed(x, y);
    protected void selectRow(int row) {
         // Do not select a row
         if (row == getSelectedCellRow() || row > rowCount - 1 || row <> getSelectedCellRow()) {
              traverse(Canvas.DOWN, 0, 0, new int[]{0, 0, 0, 0});
    protected double calculateRow(double y) {
         // Accomodate for titles and labels
         if (rowBias == -1) {
              rowBias = 0;
              if (this.getTitle() != null) {
                   rowBias++;
              if (this.getLabel() != null) {
                   rowBias++;
         int row = -1;
         while (rowCount == -1) {
              traverse(Canvas.DOWN, 0, 0, new int[]{0, 0, 0, 0});
              if (row == getSelectedCellRow()) {
                   rowCount = getSelectedCellRow() + 1;
              row = getSelectedCellRow();
         double h = getMinContentHeight();
         double retVal = ((rowCount + rowBias) * y) / h;
         return retVal + 0.25 - rowBias; // Round up slightly
    }

  • Need urgent help in running freetts in j2me

    hiiii, I m building a mobile application for text to speech conversion. for that i need the J2ME version of freetts.
    if anyone has the link plzzz forward that to me.
    avani

    You can get good summary of checklist from this article about
    DBA checklist for data warehousing.
    Which highlights on below pointers:
    New system or old. (I.e. Up-gradation vs starting from scratch)
    Complexity of SQL Server architecture 
    SQL Server storage
    Determining SQL Server processing power
    SQL Server installation consideration 
    SQL Server configuration parameter
    SQL Server security
    SQL Server Database property
    SQL Server jobs and automation
    Protecting SQL Server data
    SQL Server health monitoring and check ups
    SQL Server ownership and control 
    based on my real time experience, I will suggest you to keep an eye on 
    Load performance (It will be useful when your database(Warehouse) will have huge amount of data)
    System availability (Check for Windows update and up time configuration) 
    Deployment methodology should be planned in advance. Development of packages and respective objects should be done systematically.
    Source control mechanism 
    Disk space and memory usage
    You might or might not have full rights on production environment, so be prepared to analyze production environment via Select statements [I guess you got my point]
    Proper implementation of Landing , Staging and Mart tables.
    Column size (this can drastically decrease your database size)
    Usage of indexes (Index are good, but at what cost?)
    I hope this will assist you in building your check list.

  • How to append data  runtime in Table in MIDlet

    Hi Friends,
    i am having 2 queries..
    1st:: How can i append data runtime in table in MIDlet ( like web )which are coming from Database.
    2: requirement is that 1st row of table should for headings like StartDate,EndDate,Resources and Status.
    From the 2nd row ,Columns for runtime data.(Like any Table how u all got my query).
    Plz send me reply as early as possible.
    Waiting for reply
    Best regards
    karan

    Presently you cannot use AJAX kind of stuffs in J2ME.
    If you want to achieve the functionality better to look at articles wriiten on writing custom items in J2ME. That will help you achieve the kind of requirement that you are expecting.
    ~Mohan

Maybe you are looking for

  • When is it time to invest in a high-def editing setup?

    I own a ten year old digital editing appliance that I'm considering replacing with Final Cut Pro. I want to start work on some niche documentaries that I plan to sell online. I made one documentary at home about six years ago that I still sell online

  • FLow of Purchase order TO Mail

    Respected Members, I have a small requirement and i have to work on it. Please help me out. I will explain you the scenario. Right now what is happening that when i am creating a purchase order ,as soon as i click on Save button in Me21n tcode then a

  • Using C functions with JNI

    Hello, I am just looking at JNI for the first time today. I have to write some utility functions in C for the a linux Red Hat 7 server, and then be able to call them from java applications. I am having some trouble when I try and compile the c source

  • Why do I have to type alle accountnames and passwords again in ff 29.

    I have to reenter my acount name and password the first time access a site after (being forced to) upgrading to ff29. Why is that? I have scores of sites I access and this is a pain in the ass! I used the remember function just to avoid remembering a

  • How do i cut out a car in Premiere Pro CC?

    So i'm making this short film with some friends and i one of the scenes one of my friends needs to get run over by a car. But we filmed it in a stupid angle so i couldn't use linear wipe. I thougth you then just could cut out the car and add some fea