I need help people ? i need an answer ?

hello people ..
i've been trying to develop an application that contains a plain list " implicit" and a textbox on top of it ...
i thought of using a form and a choicegroup and a textfiled .. but i recognized that i can't have a plain list using a choicegroup ..... so i thought of using a customed item .... i found an example on this url http://developers.sun.com/techtopics/mobility/midp/ttips/customcomponent/index.html
put the wired part that it works diffrently in eavery mobile ....
i mean i tired it on sony ericsson it worked wonderfully .. in nokia 6600 the list got a diffrent hieght .. while in the 6111 it worked fine but i can't walk though the list ..??
so .. can any one suggest a solution ... cause am quit out of ideas

this is the code for the customed list am using ..?
* VirtualList.java
* Created on October 29, 2006, 11:52 AM
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
package hello;
import javax.microedition.lcdui.*;
// A custom component for MIDP 2.0 that implements
// a "virtual" list where management of the data
// is delegated to the application via a callback.
public class VirtualList extends CustomItem {
    // The callback interface used by the list to
    // obtain the string it must display.
    public interface Callback {
        String getMinimalString( VirtualList list );
        String getPreferredString( VirtualList list );
        String getString( VirtualList list, int index );
    // The offset between items.
    private static final int ITEM_OFFSET = 1;
    // Shorthand forms of the color definitions
    private static final int BACKCOLOR_SEL =
               Display.COLOR_HIGHLIGHTED_BACKGROUND;
    private static final int BACKCOLOR_UNSEL =
               Display.COLOR_BACKGROUND;
    private static final int FORECOLOR_SEL =
               Display.COLOR_HIGHLIGHTED_FOREGROUND;
    private static final int FORECOLOR_UNSEL =
               Display.COLOR_FOREGROUND;
    // The constructor. The display object is needed
    // to obtain the color mappings.
    public VirtualList( String label, Display display ){
        super( label );
        _display = display;
    // Returns the callback.
    public Callback getCallback(){
        return _callback;
    // Returns the font set by the application.
    // If null, then the list uses the default system font.
    public Font getFont(){
        return _font;
    // Returns a guaranteed non-null font object.
    protected Font getFontForDrawing(){
        return _font != null ? _font :
                               Font.getDefaultFont();
    // Returns the height of a line, which is basically
    // the font height plus an offset.
    protected int getLineHeight(){
        return getFontForDrawing().getHeight()
                    + ITEM_OFFSET * 2;
    // Returns the minimal height of the content area.
    public int getMinContentHeight(){
        int mh = _minHeight;
        int lh = getLineHeight();
        if( mh < lh ){
            mh = lh;
        return mh;
    // Returns the minimal width of the content area.
    public int getMinContentWidth(){
        int mw = _minWidth;
        if( mw < 0 ){
            Font   font = getFontForDrawing();
            String typical = getMinimalString();
            mw = font.stringWidth( typical );
        return mw;
    // Returns the typical "minimal" string used
    // to calculate a minimal line width.
    public String getMinimalString(){
        String s = null;
        if( _callback != null ){
            s = _callback.getMinimalString( this );
        return s != null ? s : "M";
    // Returns the preferred height of the content area.
    public int getPrefContentHeight( int width ){
        int ph = _prefHeight;
        if( ph < 0 ){
            ph = getLineHeight() * _visible;
        return ph;
    // Returns the preferred width of the content area.
    public int getPrefContentWidth( int height ){
        int pw = _prefWidth;
        if( pw < 0 ){
            Font   font = getFontForDrawing();
            String typical = getPreferredString();
            pw = font.stringWidth( typical );
        return pw;
    // Returns the typical "preferred" string used
    // to calculate a preferred size.
    public String getPreferredString(){
        String s = null;
        if( _callback != null ){
            s = _callback.getPreferredString( this );
        return s != null ? s : "MMMMM";
    // Returns the index of the selected item.
    public int getSelectedIndex(){
        return _selected;
    // Returns the string to display for the given index.
    public String getString( int index ){
        String s = null;
        if( _callback != null ){
            s = _callback.getString( this, index );
        return s != null ? s : "";
    // Returns the total number of elements in the list.
    public int getTotalCount(){
        return _count;
    // Returns the number of elements to display.
    public int getVisibleCount(){
        return _visible;
    // Makes sure the selected item is visible.
    protected void makeSelectedVisible(){
        if( _selected >= 0 ){
            if( _selected < _top ){
                _top = _selected;
            } else if( _selected - _top + 1 > _visible ){
                _top = _selected - _visible + 1;
    // Draws the item's content area, whose dimensions
    // are given by the width and height parameters.
    protected void paint( Graphics g, int width, int height ){
        int lh = getLineHeight();
        int lines = height / lh;
        int curr = _top;
        int last = _top + lines;
        int backSel = _display.getColor( BACKCOLOR_SEL );
        int backUnsel = _display.getColor( BACKCOLOR_UNSEL );
        int foreSel = _display.getColor( FORECOLOR_SEL );
        int foreUnsel = _display.getColor( FORECOLOR_UNSEL );
        int y = 0;
        while( curr < _count && curr < last ){
            String s = getString( curr );
            boolean isSel = ( curr == _selected );
            g.setColor( isSel ? backSel : backUnsel );
            g.fillRect( 0, y, width, lh );
            g.setColor( isSel ? foreSel : foreUnsel );
            g.drawString( s, 0, y+1, g.TOP | g.LEFT );
            y += lh;
            ++curr;
        if( y < height ){
            g.setColor( backUnsel );
            g.fillRect( 0, y, width, height - y );
    // Sets the callback.
    public void setCallback( Callback callback ){
        _callback = callback;
    // Sets the minimum content height.
    public void setMinContentHeight( int mh ){
        _minHeight = mh;
    // Sets the minimum content width.
    public void setMinContentWidth( int mw ){
        _minWidth = mw;
    // Sets the preferred content height.
    public void setPrefContentHeight( int ph ){
        _prefHeight = ph;
    // Sets the preferred content width.
    public void setPrefContentWidth( int pw ){
        _prefWidth = pw;
    // Sets the index of the selected element.
    public void setSelectedIndex( int index ){
        if( index >= 0 && index < _count ){
            _selected = index;
            makeSelectedVisible();
        } else {
            _selected = -1;
        repaint();
    // Sets the total number of elements in the list.
    public void setTotalCount( int count ){
        _count = count;
       /// invalidate();
    // Sets the number of elements to display.
    public void setVisibleCount( int count ){
        _visible = ( count > 0 ? count : 1 );
        //invalidate();
    // Handle traversal of the component.
    public boolean traverse( int dir, int vw, int vh,
                             int[] vrect ){
        if( !_inTraversal ){
            _inTraversal = true;
            if( _selected < 0 && _count > 0 ){
                if( dir == Canvas.DOWN || dir == Canvas.RIGHT ){
                    _selected = 0;
                } else if( dir == Canvas.UP || dir == Canvas.LEFT ){
                    _selected = _count - 1;
                makeSelectedVisible();
                repaint();
                notifyStateChanged();
            return true;
        int modes = getInteractionModes();
        boolean horiz = ( modes & TRAVERSE_HORIZONTAL ) != 0;
        boolean vert = ( modes & TRAVERSE_VERTICAL ) != 0;
        boolean notify = false;
        if( dir == Canvas.DOWN ||
            ( dir == Canvas.RIGHT && !vert ) ){
            if( _selected < _count - 1 ){
                ++_selected;
                notify = true;
            } else {
                return false;
        } else if( dir == Canvas.UP ||
            ( dir == Canvas.LEFT && !vert ) ){
            if( _selected > 0 ){
                --_selected;
                notify = true;
            } else {
                return false;
        } else if( dir != NONE ){
            return false;
        makeSelectedVisible();
        repaint();
        if( notify ){
            notifyStateChanged();
        return true;
    // Called when user has traversed out.
    public void traverseOut(){
        _inTraversal = false;
    private Callback _callback;
    private int      _count; // the number of elements
    private Display  _display;
    private Font     _font;
    private boolean  _inTraversal;
    private int      _minHeight = -1;
    private int      _minWidth = -1;
    private int      _prefHeight = -1;
    private int      _prefWidth = -1;
    private int      _selected = -1;
    private int      _top; // the top element
    private int      _visible = 1;
}

Similar Messages

  • Questions you need to answer to receive better help

    Questions you need to answer to receive better help... please answer as much as you can, that relates to your problem, back in your original message
    If a program is not showing on the Cloud screen, it is most likely because your computer does not meet the specifications
    FOR EXAMPLE, Premiere Pro requires a 64bit computer - Not all apps displayed for download | Creative Cloud desktop app, Adobe Application Manager
    What error message do you see, or what is the screen you see that does not work? (examples... a BLANK login screen, or a spinning wheel)
    A screen shot works well to SHOW people what you are doing - http://forums.adobe.com/thread/592070?tstart=30 for screen shot instructions
    Are you using Windows or Mac, and exactly which version? (include "dot" numbers like Windows 8.1 or Mac 10.9.3)
    Which brand and version web browser are you using... and have you tried a different web browser?
    What Firewall do you use, and have you tried turning it off to download?
    What anti-virus do you use, and have you tried turning it off to download?
    Has this ever worked before?  If yes, do you recall any changes you made to the program, such as adding Plug-ins, etc.?
    Did you make any changes to your system, such as updating hardware, printers or drivers; or installing/uninstalling any programs since this last worked?
    Are you using an account with Administrator Privileges? Run as Administrator will sometimes help (this EXAMPLE http://forums.adobe.com/thread/969395 is for Encore + "All" Premiere)
    What were you doing when the problem occurred?
    What other software are you running?
    Tell us about your computer hardware. How much RAM is installed?  How much free space is on your system (C:) drive?
    Hardware Blue Screen shutdowns http://forums.adobe.com/thread/1427408?tstart=0
    For Windows, do NOT rely on Windows Update to have current driver information
    (you need to go direct to the vendor web site and check updates for yourself)
    What is your exact brand/model graphics adapter (ATI or nVidia or ???)
    What is your exact graphics adapter driver version?
    Have you gone to the vendor web site to check for a newer driver?
    ATI Driver Autodetect http://support.amd.com/en-us/download/auto-detect-tool
    nVidia Driver Downloads http://www.nvidia.com/Download/index.aspx?lang=en-us
    Do you have dual graphics adapters? (common in many "energy saving" laptops)
    -http://helpx.adobe.com/premiere-pro/kb/error---preludevideo-play-modules.html
    -http://forums.adobe.com/thread/1001579
    -Use BIOS http://forums.adobe.com/thread/1019004?tstart=0
    -link to why http://forums.adobe.com/message/4685328
    -http://www.anandtech.com/show/4839/mobile-gpu-faceoff-amd-dynamic-switchable-graphics-vs-n vidia-optimus-technology/2
    -and a Mac Utility http://forums.adobe.com/thread/1017891?tstart=0
    JUST FOR MAC USERS
    Next link says After Effects, but check YOUR permissions !!!
    -http://blogs.adobe.com/aftereffects/2014/06/permissions-mac-os-start-adobe-applications.ht ml
    -Mac 10.9.4 and OpenCL issue https://forums.adobe.com/thread/1514717
    Mac 10.9.3 workaround https://forums.adobe.com/thread/1489922
    -more Mac 10.9.3 https://forums.adobe.com/thread/1491469
    -Mac 10.9.3 and CS6 https://forums.adobe.com/thread/1480238
    Enable Mac Root User https://forums.adobe.com/thread/1156604
    -more Root User http://forums.adobe.com/thread/879931
    -and more root user http://forums.adobe.com/thread/940869?tstart=0
    Case sensitive hard drive
    -http://helpx.adobe.com/creative-suite/kb/error-case-sensitive-drives-supported.html
    Troubleshooting guide for Mac freeze
    -http://helpx.adobe.com/x-productkb/global/troubleshoot-system-errors-freezes-mac.html
    -next link says After Effects, but check YOUR permissions !!!
    -http://blogs.adobe.com/aftereffects/2014/06/permissions-mac-os-start-adobe-applications.ht ml
    Some links concerning error codes
    http://helpx.adobe.com/creative-cloud/kb/failed-install-creative-cloud-desktop.html
    A12... download & install error http://forums.adobe.com/thread/1289484
    -more A12... discussion http://forums.adobe.com/thread/1045283?tstart=0
    U44.. update error http://forums.adobe.com/thread/1289956 may help
    -more U44.. discussion http://forums.adobe.com/thread/1275963
    -http://helpx.adobe.com/creative-suite/kb/error-u44m1p7-installing-updates-ccm.html
    -http://helpx.adobe.com/creative-suite/kb/error-u44m1i210-installing-updates-ccm.html
    http://helpx.adobe.com/x-productkb/global/installation-launch-log-errors-creative.html
    Repeated updates http://helpx.adobe.com/creative-cloud/kb/updates-repeatedly-applied-cc.html
    Code 6 & Code 7 http://helpx.adobe.com/creative-suite/kb/errors-exit-code-6-exit.html
    Error 16 http://helpx.adobe.com/x-productkb/policy-pricing/configuration-error-cs5.html
    -including DW039 https://forums.adobe.com/thread/1500609
    Error 49 https://forums.adobe.com/thread/1491394
    Error 50 https://forums.adobe.com/thread/1432237
    Errors 201 & 205 & 206 & 207 or several U43 errors
    -http://helpx.adobe.com/creative-cloud/kb/error-downloading-cc-apps.html
    Muse error http://helpx.adobe.com/muse/kb/unexpected-error-occurred-i-200.html
    InDeisgn error http://helpx.adobe.com/indesign/kb/indesign-cc-crashing-launch.html
    Sign Out When Sign In http://forums.adobe.com/thread/1450581?tstart=0 may help
    -and http://helpx.adobe.com/creative-cloud/kb/unable-login-creative-cloud-248.html
    -and 'looping' https://forums.adobe.com/thread/1504792
    BLANK Cloud Screen http://forums.adobe.com/message/5484303 may help
    -and step by step http://forums.adobe.com/thread/1440508?tstart=0
    -and http://helpx.adobe.com/creative-cloud/kb/blank-white-screen-ccp.html
    Mac Spinning Wheel https://forums.adobe.com/message/5470608
    -Similar in Windows https://forums.adobe.com/message/5853430

    Does anyone know if there's a way to change the questions themselves?  (Frankly, they have to be the most ridiculous security questions I've ever seen.  A good security question should be one that you'll have no problem remembering the answer to, even if you're asked years later.  To answer one from the third batch, I'd have to make something up, which makes it unlikely I'll remember the answer later.  And I certainly don't want to have to write the answers down somewhere.)

  • I actually need help but cannot find the answer. Please.......Lately when open a new tab it does not open with a blank page. I don't want to set my homepage as

    I actually need help but cannot find the answer.
    Please.......Lately when open a new tab it does not open with a blank page. I don't want to set my homepage as blank as when I first open Firefox, it automatically loads my hotmail page. But then if I open other pages I don't get a blank page. Help, please?
    Thank you.
    ''[Personal information removed by moderator. Please read [[Forum and chat rules and guidelines]], thanks.]''

    hello, please refer to [[New Tab Page – show, hide and customize top sites]] in order to switch the feature off.

  • So I forgot the answers to my security questions and in order to reset them I need to answer them? Help? I can't buy anything and I don't see the option to resend them...

    So I forgot the answers to my security questions and in order to reset them I need to answer them? Help? I can't buy anything and I don't see the option to resend them...

    The reset link will only show if you have a rescue email address (which is not the same thing as an alternate email address) set up on your account. If you aren't getting the link then that implies that you don't have one and you won't be able to add one until you can answer 2 of your questions - you will need to contact iTunes Support or Apple to get them reset.
    e.g. you can try contacting iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Account Management , and then 'Forgotten Apple ID security questions'
    or try ringing Apple in your country and ask to talk to the Accounts Security Team : http://support.apple.com/kb/HE57
    When they've been resetyou can then use the steps half-way down this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5312 . Or, if it's available in your country, you could change to 2-step verification : http://support.apple.com/kb/HT5570

  • "HELP" NEED QUESTION ANSWERED, ":PLEASE":

    "HELP" NEED QUESTION ANSWERED, ":PLEASE": OH DEAR GOD SEND SOMEONE TO ME WITH THE ANSWER.

    You need patience. This isn't instant answers, you may have to wait for an answer. Your questions are here - locking this thread.
    https://support.mozilla.com/en-US/questions/859594 <br />
    https://support.mozilla.com/en-US/questions/859665

  • Redeemed an iTunes gift card. New computer, need to answer security questions. Forgot answers, tried to reset them, but the reset email is being sent to an email that is deactivated. HELP.

    Redeemed an iTunes gift card. New computer, need to answer security questions. Forgot answers, tried to reset them, but the reset email is being sent to an email that is deactivated. HELP.

    You need to contact Apple to get the questions reset. Click here, phone them, and ask for the Account Security team, or fill out and submit this form.
    (94700)

  • Feel Very Stupid Asking This....But I Need An Answer

    So, I've had my HP m6 for a good while (years) and just the other day, I was attempting to play a game on it...only for it to crash upon start up.  After researching the issue, many people suggested updating the graphic drivers....and so I went on to research how to go about doing that.
    I found my chip, it's an Intel...so I went to the Intel site, found my chip, and found a whole bunch of new(er) driver updates ready to be downloaded.  I figured this would be easy...but it seems I can't download their updates...because HP has a lock on being able to do that.  The other option was to come here and download the updates directly from the HP site...but this is where my main issue comes from.  The last update that HP released for my chip and driver was back in 2012...while Intel has updates for my chip from May of 2014. 
    I really don't understand why this is...the way it is.  But if someone could help me out...just give me a flat answer as to whether or not I have to buy a new computer just to play a game, or if there's some work around to where I can get the update I need in order to play...for free?

    Hi Dilaudid281,
    Thank you for visiting the HP Support Forums and Welcome. I have read your thread on your HP ENVY m6 Notebook and issue with graphic updates.  The HP Support Assistant will help with drivers and software that are recommended for your HP Notebook and the hardware that is installed. Most driver sites do recommend to use the Manufacture's drivers. I would be happy to assist if needed as there are many models of ENVY m6 notebooks I would need the model number. How Do I Find My Model Number or Product Number?
    Please respond with which Operating System you are running:
    Which Windows Operating System am I running?
    Please let me know.
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Facebook won't play youtube video's on my macbook pro, it says that i need to upgrade adobe flash.  But on Safari, youtube plays perfect.........i need some answers

    I have my mid 2010 macbook pro.  Just last night while using facebook i tried to watch a video and it won't play and it says that i need update adobe flash.  But when i watch youtube videos on safari it plays perfectly fine.  Is there a problem with facebook concerning adobe flash?.................please help.......i need some answers!!!

    Isn't suppose to be a software update for adobe that can fix this problem....
    No.
    Software Update is for Apple software.  Adobe is 3rd party.

  • HT1918 I need the answers to my security questions how do I change them?

    I need the answers to my security questions how do I change them?

    If you've forgotten their answers and you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then you can try going to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you might see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address then see if the instructions on this user tip helps : https://discussions.apple.com/docs/DOC-4551

  • I tried to buy a song on my account, and it told me I need to answer my security questions, and I don't remember them, and it ******* me off, because this is seriously so dumb man

    I tried to buy a song on my account, and it told me I need to answer my security questions, and I don't remember them, and it ******* me off, because this is seriously so dumb man

    Summer7633 wrote:
    I tried to buy a song on my account, and it told me I need to answer my security questions, ...
    1)  Apple ID: All about Apple ID security questions
    If necessary...
    2)  See Here... ask to speak with the Account Security Team...
    Apple ID: Contacting Apple for help with Apple ID account security
    3)  Or Email Here  >  Apple  Support  iTunes Store  Contact

  • Hello please hepl me in my problem in apple id, i cannot connect to my ipad mini in itune store and app store because they find me a credit card but i dont have credit card. what can i do now? i need an answer for this problem. thank you

    hello please help me in my problem in apple id, i cannot connect to my ipad mini in itune store and app store because they find me a credit card but i dont have credit card. what can i do now? i need an answer for this problem. thank you

    I would suggest that you buy a visa or mastercard gift card and put a few dollars on it and use it to access the store.  Just add money to it before you want to buy something from the store and it will act like a normal credit card for you.

  • I need secret answer to your account

    I need secret answer to your account just because of forgetting secret answer and please help me to send secret answer or link re-appoint the secret question
    Thank you

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then go to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you should see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you won't get the reset option - you will need to contact iTunes Support / Apple to get the questions reset (we are fellow users here on these forums).
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5312

  • I am trying to download Adobe Pro and I keep getting "Reliable Source Serving Corrupt Data" need and answer to this problem. Thank you!

    I am trying to download Adobe Pro and I keep getting "Reliable Source Serving Corrupt Data" need and answer to this problem. Thank you!

    Hi David,
    Please see this forum thread: "Not Enough Storage Space" error - Acrobat 9 Pro
    While it addresses an earlier version of Acrobat, the troubleshooting tips in it should help in your case as well.
    Best,
    Sara

  • HT204053 I forgot my answers to my questions. I am trying to buy an app and it says i need to answer my security questions but i forgot my answers. Can i change them or somehow find out what my answers were?

    Please someone help
    I forgot my answers to my questions. I am trying to buy an app and it says i need to answer my security questions but i forgot my answers. Can i change them or somehow find out what my answers were?

    You'll have to reset them.  Go to https://appleid.apple.com, click on manage your account on the right, sign in, click on Password and Security on the left, look for the link to reset your security questions to the right.  This will send a reset email to your rescue email address.
    If you don't see this link, contact iTunes store support for help: http://www.apple.com/emea/support/itunes/contact.html.

  • I go onto manage account to change the security questions because I've forgotten them but to get onto the security section i need to answer security questions. What do I do???

    I go onto manage account to change the security questions because I've forgotten them but to get onto the security section i need to answer security questions. What do I do???

    Ok, so I had the same problem. What you should do is, call the
    Apple Technical Support number: (44) 0844 209 0611
    And ask for the Account Security Team. This worked for me.

  • I have a calculation in a5 and need the answer rounding up to the next whole number

    I have a calculation in cell a5 and need the answer rounding up to the next whole number

    Hi,
    I am using numbers
    A1 x A2 = A3       A4 is A3 divided by 2.88.  Indeed to round up the answer in A4 to the next whole number
    Eg 4.5 x 3.7 = 16.6 sq meters as an area , divided by 2.88 ( area of 1 board) = 5.78 boards so I need to buy 6 and quote for 6
    Cheers

Maybe you are looking for