How to select and change the LabelFields / ButtonFields table 2D

Hi everyone, I'm new here and I'm new to the blackberry development.

For a project student I'm working, I have a table 2D-ButtonFields, (I can change LabelFields if it's easier) which I use to create a Sudoku grid.

I understand that this is really basic but I want the user to simply scroll the table 2D to a particular cell, and be able to type in a number on the keyboard instantly change the label of the ButtonField or LabelField, IE their assumption of Sudoku.

I have really problems that I'm not familiar with how blackberry accepts user input and how it can be used with the setText method.

So, essentially, I would like some sort of way to determine the currently selected cell (without is activated) and then for this selected cell so that the setText() method applied

Can someone help me? I can post a code if it helps but I'm not sure it will as you al will understand how basic it is.

Thank you in advance and I hope I can return the favor as soon as

You can use a focuschangelistener to be aware of policy changes. or call the getLeafFieldWithFocus() to retrieve the current field.

You can't make buttonfields editable, but you can read user input and treat it.

for sudoku you need only numbers, you can use the keyChar method to read the characters.

Check if your target field is one of your buttons. Check to see if the tank is entered or Louis tank (Keypad.getAltedChar) is a number (Characters.isDigit).

You can call setText on of the buttonfield.

Tags: BlackBerry Developers

Similar Questions

  • I get videos from cell phones of the people with a type of file like 3GP. I need to know how to save and change the format so I can open them.

    I get videos from cell phones of the people with a type of file like 3GP. I need to know how to save and change the format so I can open them.

    Trying to convert to the. WMV format:

    There are many converters available on the net... some
    free... some detail.

    The following freeware converter is just one example:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Format Factory (freeware)
    http://www.videohelp.com/tools/Format_Factory
    (the 'direct link' is faster download)
    (the file you want to download is: > FFSetup295.zip<>
    (FWIW... installation..., you can uncheck
    ('all' boxes on the final screens)
    (Windows XP / Vista / 7)

    First, you will need to decompress the file or just open the
    Drag > FFSetup295.exe< out="" of="" the="">
    and drop it on your desktop. To install left click.

    Next, after the download and installation of Format
    Factory... you can open the program and
    left click on the toolbar, the "Option" button and
    "Select an output folder to" / apply / OK.
    (this is where you find your files after they)
    are converted)

    Drag and drop your video clips on the main screen...

    Select "all to WMV" / OK...

    Click on... Beginning... in the toolbar...

    That should do it...

    Good luck...

  • How to check and change the outgoing port number

    Charter has changed their settings and I need to set the port to 465. How do I do that?

    Tools | Account settings

    Scroll down the list of accounts. The last of them is "outgoing (SMTP) server.

    Select this option, select your Charter SMTP server, click on change.

  • How to select and delete the unwanted songs from MP3 files saved on USB and songs selected download on the computer?

    I downloaded about 20 tapes on USB Audio as an MP3 file. . I don't want to download all the songs on this MP3 downloaded to computer. but want to download only selected songs... But when I try to download this MP3 on computer, it shows full audiocassette titles show no titles of individual songs on cassettes. As such, I can't delete the unwanted songs.

    Please guide me as how to remove the unwanted songs.

    Thank you

    I think you are saying that you have a file of envelope album. You need this program to "extract" the songs of the mp3 file.

    Extractor AlbumWrap v1.0
  • How to select and join the 2 XML columns in a table to a physical table

    Hello

    I have a problem with the handling of xml data in oracle 10G.

    I have a table 'table1' below with the following columns:
    ID Column1 Column2
    xml2 xml1 123

    For XML1, structured as follows:
    <? XML version = "1.0" encoding = "UTF-8"? >
    < Tag1 >
    < Tag2 >
    < / Tag2 >
    < > 5625 LocationID < / LocationID >
    Africa < LocationName > < / LocationName >
    < / Tag1 >

    For XML2, structured as follows:
    <? XML version = "1.0" encoding = "UTF-8"? >
    < book >
    < book >
    Book1 < name > < / name >
    Hellothere < author > < / author >
    < / book >
    < book >
    Book2 < name > < / name >
    Hellohere < author > < / author >
    < > 5625 LocationID < / LocationID >
    < / book >
    < book >
    Book3 < name > < / name >
    < Author > Hello < / author >
    < / book >
    < / books >

    The desired output of the selection will be as follows:
    Book author LocationName
    ======================
    Book1 Hellothere NULL
    Book2 Hellohere Africa
    Hello book3 NULL

    Any help will be much appreciated. Thanks in advance.

    Kind regards.

    How XML1 looks like when there is more than one location?

  • How can I go into a used computer and change the username to the mine and to make a new password or delete the old user of my computer completely? (preferably get rid of the former user)?

    I need to know how to solve this problem in detail please

    I bought a computer with windows xp service pack 3 and when I start it the old user keeps popping up asking for a password. I want to know how to enter and change the username to the mine and to make a new password or delete the old user of my computer completely (preferably get rid of the former user)?

    See the following link to delete the account: http://support.microsoft.com/kb/279783

  • How can tag_browsepanel, we change the order of {hideOnSale, hideSubCatalogues, tag_browsepanel, hidePriceBrackets}

    How can {tag_browsepanel, hideOnSale, hidePriceBrackets, hideSubCatalogues}, we change the order of {hideOnSale, hideSubCatalogues, tag_browsepanel, hidePriceBrackets} and how to manage and change the price supports?

    Price brackets are controlled on the catalogues themselves - go inside and look at options any more of them.

  • For a given file, how to add and change file properties on the Details tab, for properties that are not in the properties list?

    Now, I am aware of the modification of the properties of the file is simple in Windows 7 Explorer. Select a file, 'Properties', then tab "Details".  Some are not editable, and that's understandable.  Click on next to any area classified as year, Genre, Publisher, etc. and the apply.  No problems so far.

    Then of course in Explorer, when you right click on a column header, you get several choices of column beyond the usual that is displayed by default; Date, the Type, size, etc.  But, there is an option "More...", which has up to now, MUCH more useful properties to choose from, such as the model project, Department, job statusand so on.

    It's fantastic!

    But when you look into the details of any given file, none of these additional properties even are listed to be edited.  Why offer to view these details, if you don't change them, or add them to different files?  I must be missing something.  I do not need to add my own custom details, this additional list has a choice, that I need; If only I could edit the files to get this info.

    How to add and change these properties to files?  Word, Excel, MP4, AVI, JPG; I would add these properties, so I can set directly in the Solution Explorer, as you would by name or Type.

    Any help would be greatly appreciated!

    My experience is that most of these 'extra fields' no existence not as fields in the directory (folder) itself.  On the contrary, these fields exist in the target file itself. Each file type has its own format and established file except for the types of files that belong to Microsoft, Microsoft cannot control or arbitrarily change the format of a particular file type.

    For example, a ".jpg" file  The format of this file type allows a large number of areas such as comments, Tags, date taken, opening, device manufacturer and so on.  If you go into the properties on a .jpg file, you will see a lot of them and will be able to change.  After changing any of these fields, you will find that the file itself has been changed to contain this information (as can be verified by the parity of the file and to come check upward with a different checksum).  If you display one of these fields in Explorer and 10000 ".jpg" files in this folder, then Explorer must open each of these 10000 files to extract the data in the corresponding fields, you have chosen to display.  May take some time.

    Compare that to the same picture saved to a file ".bmp".  The ".bmp" format has no provisions for any of these fields, so you will not be able to view, save, edit, or sort by them.  If the editable fields are directly related to the type of file that is displayed.

    Microsoft has apparently interviewed a lot of file types and made a compilation of the editable fields in each type of file and the Union of the selected fields in which can be displayed and modified.   That's apparently what you see in the option «More...» ».   So, in summary, the file type determines which fields are available for editing and posting.

    HTH,

    JW

  • How to select and move more than one bookmark at a time? Shift + click selects multiple items that are next to each other in a list, because the element

    How to select and move more than one bookmark at a time?
    Shift + click selects multiple items that are next to each other in a list, because the items open in firefox before that happens.

    Glad it worked for you. Thanks for posting back.

  • my computer is locked in the options admistritive and I for got my password. How to access and fine the password or change it?

    my computer is locked in the options admistritive and I for got my password. How to access and fine the password or change it?

    Hello dianeweeks,

    Thanks for the reply.  I have included a link below that I hope will help.

    Microsoft's strategy concerning lost or forgotten passwords

    http://support.Microsoft.com/kb/189126

  • How to select and default hightlight the first line in a programmatic Table(ADF Table created based on a SortableModel) ADF.

    Hi all


    We use JDeveloper Studio Edition Version 12.1.3.0.0 and deployed on GlassFish Server Open Source Edition 3.1.2.2 (build 5) and connect to the SQLServer database.


    We created a table ADF programming related to a SortableModel created programmatically to a bean.


    We need to select and highlight the first row in the table just after making it to retrieve data based on the first line.


    We tried the based on the following thread: How to call the bean support just after JSFF / page fragment loads? and a few other posts online, but it does not work very well.


    W has created a hidden text in the bottom of the JSF model as follows:


    < af:table varStatus = "rowStat" Summary = "table" value = "#{pageFlowScope.crudBean.dynamicTable.collectionModel} '"

    Rows = "#{pageFlowScope.crudBean.dynamicTable.collectionModel.RowCount} '"

    contentDelivery = 'immediate' var = 'row' rendered = 'true '.

    Binding = "#{backingBeanScope.crudBackingBean.tasksTable} '"

    selectionListener = "#{backingBeanScope.crudBackingBean.customListener} '"

    "rowSelection ="single"id ="t1"partialTriggers =": pt_gr2 "columnStretching =" column: clmn0 ">

    < af:forEach items = "#{pageFlowScope.crudBean.dynamicTable.columnNames}" var = 'name' varStatus 'vs' = > "

    < af:column sortable = "true" sortProperty rowHeader = "#{name}" = "no style" headerText = "#{pageFlowScope.crudBean.dynamicTable.columnLabel [name]}" "

    inlineStyle = "width: 100px;"  ID = "clmn$ {vs.index}" >

    < af:activeOutputText value = "#{row [name]}" id = "aot1" / >

    < / af:column >

    < / af:forEach >

    < / af:table >

    ....


    < af:outputText id = "hiddenOutputTextId" visible = "false" value = "#{backingBeanScope.crudBackingBean.afterPageLoad} '"

    Binding="#{backingBeanScope.crudBackingBean.hiddenOutputText}"/ >

    And we have added the code to the bean to support below:

    public String getAfterPageLoad() {}

    If (!.) {AdfFacesContext.getCurrentInstance () .isPostback ()}

    selectFirstRowInTasksTable();

    }

    Return afterPageLoad;

    }

    public void selectFirstRowInTasksTable() {}

    try {}

    RKS RowKeySet = new RowKeySetImpl();

    RowKeySet rksEmpty = new RowKeySetImpl();

    Model CollectionModel = tasksTable.getValue ((CollectionModel));

    ROWCOUNT int = model.getRowCount ();

    If (rowcount > 0) {}

    model.setRowIndex (0);

    Key of the object = model.getRowKey ();

    RKS. Add (Key);

    tasksTable.setSelectedRowKeys (rks);

    SelectionEvent selectEvent =

    new SelectionEvent (tasksTable.getSelectedRowKeys (), rks, tasksTable);

    selectEvent.queue ();

    customListener (selectEvent); / / to retrieve data

    AdfFacesContext.getCurrentInstance () .addPartialTarget (tasksTable);

    }

    } catch (Exception e) {}

    }

    }

    I think that () selectEvent.queue; should work even without calling the customerListener, but it is not working in all cases.

    What is the problem in my code?



    Have you tried to bind property of 'selectedRowKeys' to selection configuration / bean there?

    Something like:

    public RowKeySet getSelectedRKS() {
        if (rks == null) {
            // make first record as selected
            // create RowKeySet and assign it to rks variable(where rks is variable defined in bean with some scope higher than request scope)
        }
        return rks;
    }
    

    Dario

  • How to select one of the VMRC and WebMKS of vRealize of automation for the end user

    As you know, there are two Protocol to use the remote console to the configured virtual machine of vRealize Automation. I know how to select one of the VMRC and WebMKS on vCenter via Web Client, but I'm not sure whether vRealize Automation can select one of the VMRC and WebMKS. Is there anyone who knows about it?

    You can set in the law.

    Grant

  • Adobe has worked on ambient light and changed the parameters of the product and I can't contact them to restore the product. How to get assistance to respond to me?

    Adobe has worked on ambient light and changed the parameters of the product and I can't contact them to restore the product. How to get assistance to respond to me?

    Hi Basilbro,

    Sorry for the trouble you had with Lightroom.

    Please visit this link to install the previous version - revert to a prior update version

    Concerning

    Rohit

  • How to edit a .ai (converted to a smart object) in photoshop.  I want to change the text and changed the text and graphics

    In photoshop, how to change a file .ai (converted to a smart object)?  I want to change the text and changed the text and graphics.

    Total beginner, so need help.

    Thank you very much.

    That must be edited in Illustrator.

  • In Photoshop, how can I change the background (Mount table) from black to white. I must have hit something because it changed suddenly mid-project and I cannot find anywhere in preferences to solve this problem.

    In Photoshop, how can I change the background (Mount table) from black to white. I must have hit something because it changed suddenly mid-project and I cannot find anywhere in preferences to solve this problem.

    Right-click on the pasteboard, and you should have a choice of colours from timeline menu.

    I would add that you should have a file to open it or it won't work.

    Gene

Maybe you are looking for