How can i control user to input number to the JTextField only?

i want to control user to input the number only in the JTextField
how can i do it?

Add an actionListener to the textfield and then when someone enters a key into the textfield check and see if it is a number, if it is not send an alarm and remove it.

Similar Messages

  • How can I use a new mobile number under the same Apple--ID?

    Hello there.
    Since few days I habe an 5S with a new number. But I can't use FaceTime or iMessage with it. Im Setzlings is still my old number and I can't change it. When I logged in in my Apple-Account and changed my number and saved it, there is still my old number at the settings. Do you have an idea?
    TA.

    Log out of your Apple ID with iMessage at Settings > Messages > Send & Receive > Apple ID. Select your Apple ID and at the menu window that appears, select Sign Out. Follow this by turning iMessage off.
    Turn iMessage back on and try to re-authorize your iPhone with your Apple ID with iMessage which should register your new cell phone number.

  • How can i edit user text input on a JTextField

    Example: Only allow users to type integer characters (0 - 9) into a JTextField.
    I have been able to edit the JText field so that it removes (Document.remove(int,int))
    a char that is not an iteger char using DocumentListeners and UndoableEditListeners to the Document.
    But once I do this it will not allow me to enter anything else in the field without first
    tabbing out of the field and then back in again. Am I missing something?
    Using jdk1.3.1, Win 2000.
    Thanks
    KPotts

    I think I found my answer...
    http://forums.java.sun.com/thread.jsp?forum=57&thread=123433
    the response from xhunterx cleared this up for me.
    Thanks
    KPotts

  • How can I control Read/Write for BegBalance under the same Scenario in different Years?

    As we know, we can set 'Start Year/Period' and 'End Year/Period' on a scenario member, e.g. Budget, to control whether planners can input data under this scenario.
    However, we can only choose years and month from Jan to Dec. BegBalance can't be chosen.
    Assuming a form putting Year dimension as a page, Scenario and BegBalance, Jan to Dec as column, Account as row.
    If planner chooses budget year in the page, every column from BegBalance to Dec is writable.
    The problem is, when planner chooses current year in the page, Jan to Dec is read-only, but BegBalance is still writable.
    This will make the planner confusion and put the data in a dangerous position.
    Is there any idea to avoid this situation?
    Thanks.

    You can disable (write) BegBalance for that Scenario by unchecking "Include BegBalance".
    Regards
    Celvin
    http://www.orahyplabs.com

  • How can I see my own phone number on the new iphone 3G

    I recently purchased an iphone 3G and cannot seem to get my own phone number to appear at the top of the contacts page (above the "A" contacts. The apple store people tell me that it should have shown up there but it hasn't. Can anyone help me? thanks,

    Then that's a software or activation bug. Restoring the phone via iTunes might help.
    In the days of the original iPhone launch, there were a few issues like this that could also be resolved by calling your phone service provider (AT&T in the US) and having them reset your account in their system -- followed by power cycling the iPhone.
    --Bob

  • How can i retrive nid and sid number from the phone??

    I am trying to find the nis and sid from the iphone can someone advise how it can be done?

    iTunes will only store a back up of the iPhone and you find this by following the steps below:
    Windows
    Edit>Preferences>Devices
    Mac
    iTunes>Preferences>Devices
    The link below can show you what is stored in an iTunes back up:
    iTunes: About iOS backups

  • How can I control in a short text that the value entered is Email type

    Hi,
    I would like to add an Email in the Account object. In the OCOD standard, there is no Email field. I created a short text field to manage my need. I would like to add a validation rule to control that the value entered is an Email.
    Is it possible to do it?
    Thanks for your help
    Regards,

    Hi,
    I assume you just need to make sure the email address entered is well formed and not that you are trying to make sure that the email address actually exists on the Web.
    I've had a similar issue in the past and the first finding was that there is not one single standard for email address syntax. For instance, some systems would accept the underscore character, others wouldn't.
    As a result, development languages and systems don't have a built-in function for this purpose. You'll have to write your own checking test, considering the following rules:
    - there must be one and only one @ character
    - the @ must not be leading or trailing
    - there must be one and only one dot after the @, but not right after
    - other characters should only be basic letters (a..z), digits (0..9) and dash. This one is the loosest rule, where you'll find exceptions to manage (such as the underscore character)
    Not much easy to program in a workflow rule, I admit!
    Good luck
    Christophe

  • How can I switch my mom's iPod to the main, only iPod for a computer?

    I recently got a laptop and moved all of my music onto that. My mother's iPod, when plugged in, shows up in the Devices section, and I can only manage her music from there. Now that I am no longer syncing my iPod from this computer (Windows XP), how do I make it so that she can use the entire library feature, not just clicking and dragging into her own iPod?
    Thanks in advance,
    Jackie
    Also, please let me know if I'm not being clear enough.

    If you want to sync instead of manually manage, then go to the music tab and select sync, then select what you want to sync.

  • How can I change a video file name on the ipad only?

    I'm filming videos on an SD card and then downloading them onto my ipad. I need to change the File names from generic to personal names for email purpose. Is there a way to change the file name only on the ipad? Maybe a specific App or something? Im trying not to use iTunes on the main PC. Thank You

    Click the gear button on the clip and select Cropping & Rotation.
    There are rotation buttons at the top of the viewer.

  • How can I deny user input file name (JFileChooser )

    in a common JFileChooser.
    when user open it, how can it deny user to input in filename field?

    just try this
    JFileChooser chooser = new JFileChooser();
    int option = chooser.showOpenDialog(this);
    if( option == JFileChooser.APPROVE_OPTION) {   }
    change the if little bit to suit yr purpose
    or if not try
    getAccessibleContext() this method may deal the situation
    although i have not tried it......
    i m also trying .........
    the onw who gets it earlier notifies other...
    is it fine
    rgds

  • Can we get user's phone number through coding

    HI, I want to know that, how can we get user's phone number through coding and is it possible to send sms to some number without concerning to user. I required this for developing the mobile tracker application which will detect that the phone is stolen.

    The developer forums are here: http://devforums.apple.com
    Documentation for iOS developers is here: http://developer.apple.com/devcenter/ios/index.action

  • How can i read user input value to my User exist

    Hi Guru's,
    I am facing one problem in Variables in BPS.
    I am calculating days from Month/year .I have one variable it is for Days,Second variable it is for Month/Year.
    First variable is user exist (for calculating the days),Second varible is user defined variable(this is a Input to the first variable).
    When i am giving the Month/Year(02/2008)variable i am getting the 29 days from the first variable.again i am changing the value of Month/Yera(03/2008) i am not getting the desired value.
    my doubt is my user exist not able to read current value of variable(month/year).how can i pass my value to user exist because this value is user input value based on this value i am calculating the days and dynamically displaying the layout.
    Here is the my sample code..
    seq = '0000'.
    ind = 0.
       i_area = 'ZTEST1'.
       area_var = 'ZVar2'.
    PERFORM instantiate_object USING    i_area
                                        area_var
                                 CHANGING lsr_var.
    PERFORM get_current_value_of_variable
                            USING lsr_var
                            CHANGING lto_value.
    READ TABLE lto_value INTO lso_value index 1  .
    i_month = lso_value-low.
    iv_month = i_month+4(2).
    iv_year = i_month(4).
    concatenate iv_year iv_month '01' into iv_date.
    begindate = iv_date.
    below bracket code calculating the leap year
    ( IF iv_date+4(2) = lc_feb.
        lv_hlp_date_year = iv_date+0(4).
        lv_hlp_rest      = lv_hlp_date_year MOD 4.
        IF lv_hlp_rest = 0.
          EV_DAYS = lc_days_29.
          lv_hlp_rest = lv_hlp_date_year MOD 100.
          IF lv_hlp_rest = 0.
            lv_hlp_rest = lv_hlp_date_year MOD 400.
            IF lv_hlp_rest NE 0.
              EV_DAYS = lc_days_28.
            ENDIF.
          ENDIF.
        ELSE.
          EV_DAYS = lc_days_28.
        ENDIF.)
      ELSE.
    below bracket code calculating the days
    (   CASE iv_date+4(2).
          WHEN lc_jan. EV_DAYS = lc_days_31.
          WHEN lc_mar. EV_DAYS = lc_days_31.
          WHEN lc_may. EV_DAYS = lc_days_31.
          WHEN lc_jul. EV_DAYS = lc_days_31.
          WHEN lc_aug. EV_DAYS = lc_days_31.
          WHEN lc_oct. EV_DAYS = lc_days_31.
          WHEN lc_dec. EV_DAYS = lc_days_31.
          WHEN lc_apr. EV_DAYS = lc_days_30.
          WHEN lc_jun. EV_DAYS = lc_days_30.
          WHEN lc_sep. EV_DAYS = lc_days_30.
          WHEN lc_nov. EV_DAYS = lc_days_30.
          WHEN OTHERS.   CLEAR EV_DAYS.
        ENDCASE.)
      ENDIF.
    data: st_date(2) type c.
    st_date = '01'.
    ind = 0.
    ind = ind + 1.
    here i am passing the low value and high value.
    yto_charsel-chanm = '0CALDAY'.
    yto_charsel-seqno = 1.
    yto_charsel-sign  = 'I'.
    yto_charsel-opt   = 'EQ'.
    yto_charsel-LOW = st_date.
    yto_charsel-chanm = '0CALDAY'.
    yto_charsel-seqno = 1.
    yto_charsel-sign  = 'I'.
    yto_charsel-opt   = 'BT'.
    yto_charsel-high = ev_days.
    INSERT yto_charsel INTO sto_charsel INDEX ind.
    ETO_CHARSEL = sto_charsel.
    lto_value = sto_charsel.
    How can i pass user input value to read this exist ,some where again i have to write code or else??
    This is very urgent can you help me..

    Hi,
    Instead of two perform statements, use single perform.
    PERFORM get_value USING i_area
                              i_variable
                         CHANGING lw_varsel.
    Take the values from lw_varsel-low.
    FORM statement for this perform is as follows.
    DATA: li_varsel TYPE STANDARD TABLE OF upc_ys_api_varsel,
            lv_varsel TYPE REF TO cl_sem_variable.
      FORM get_value USING p_area TYPE upc_y_area
                           p_variable TYPE upc_y_variable
                     CHANGING
                           p_lw_varsel TYPE upc_ys_api_varsel.
        CALL METHOD cl_sem_variable=>get_instance
          EXPORTING
            i_area       = p_area
            i_variable   = p_variable
             I_CREATE     =
          RECEIVING
            rr_variable  = lv_varsel.
           EXCEPTIONS
             NOT_EXISTING = 1
             others       = 2
        IF sy-subrc <> 0.
          EXIT.
        ENDIF.
        REFRESH li_varsel.
    ****Getting the Value*********
        CALL METHOD lv_varsel->get_value
          EXPORTING
            i_user     = sy-uname
            i_restrict = 'X'
          RECEIVING
            rto_value  = li_varsel.
        CLEAR : p_lw_varsel.
        READ TABLE li_varsel INTO p_lw_varsel INDEX 1.
        IF sy-subrc <> 0.
          EXIT.
        ENDIF.
      ENDFORM.                    "get_value
    Try this code.
    Bindu

  • How can i control what images load on my project to save preload time and avoid loading all images, elements, divs not yet visible?

    Sup buddies,
    How can I control what images load on my project to save preload time and avoid loading all images, elements, divs not yet visible?
    As the project grows in size the load time increases. How does one control not loading all images ,divs,elements etc. until they're
    needed on the timeline? For example some sections are off and only become visible when recalled. My projects slowly grow in size so loading
    all images , is counter productive . My other option would be to create separate htmls but that breaks the seamless user experience .
    TY...Over N Out... 

    hello, kiwi
    quote: "Is there an easy way to burn a completed project to DVD, but keep only the (lo res, lo size) previews on my hard drive?"
    yes.
    maybe,...
    1. you might think of making DVD backups first prior to importing the photos into Aperture. "Store Files: In their current location" once in Aperture make low rez Previews, and export finished Project.
    or,
    2. bring in the photographs to hard drive first prior to importing the photos into Aperture. "Store Files: In their current location" once in Aperture make low rez Previews, and export finished Project.
    the low rez Previews will stay in Aperture but the high quality Versions will be exported onto DVDs and gone from the hard drive (if you delete the originals).
    another way would be to export small about 50-70 pixel wide high quality jpegs to a folder on your Desktop and import & keep these in Aperture Library as a reference. make metadata to show where the original Project DVDs are stored and DVD filing system used.
    victor

  • I plug my computer into my stereo and use the remote app on my iPhone to control it. How can I control my wires iPad with the remote app on my iphone when it is plugged into the stereo? they are different iTunes accounts.

    I plug my computer into my stereo and use the remote app on my iPhone to control it. How can I control my wires iPad with the remote app on my iphone when it is plugged into the stereo? they are different iTunes accounts.

    I think this is probably a sign that your network could be better than it is.
    Intermittent problems are often a result of interference. Interference can be caused by other networks in the neighbourhood or from household electrical items.
    You can download and install iStumbler (NetStumbler for windows users) to help you see which channels are used by neighbouring networks so that you can avoid them, but iStumbler will not see household items.
    Refer to your router manual for instructions on changing your wifi channel or adjusting your multicast rate.
    There are other types of problems that can affect networks, but this is by far the most common, hence worth mentioning first.

  • How can I use User-Defined Aggregate Functions in Timesten 11? such as ODCI

    Hi
    we are using Timesten 11 version and as per the documentation, it doesn't support User-Defined Aggregate Functions.
    So we are looking for alternatives to do it. Could you please provide your expert voice on this.
    Thanks a lot.
    As the following:
    create or replace type strcat_type as object (
    cat_string varchar2(32767),
    static function ODCIAggregateInitialize(cs_ctx In Out strcat_type) return number,
    member function ODCIAggregateIterate(self In Out strcat_type,value in varchar2) return number,
    member function ODCIAggregateMerge(self In Out strcat_type,ctx2 In Out strcat_type) return number,
    member function ODCIAggregateTerminate(self In Out strcat_type,returnValue Out varchar2,flags in number) return
    number
    How can I use User-Defined Aggregate Functions in Timesten 11? such as ODCIAggregateInitialize ?

    Dear user6258915,
    You absolutely right, TimesTen doesnt support object types (http://docs.oracle.com/cd/E13085_01/doc/timesten.1121/e13076/plsqldiffs.htm) and User-Defined Aggregate Functions.
    Is it crucial for your application? Could you rewrite this functionality by using standart SQL or PL/SQL?
    Best regards,
    Gennady

Maybe you are looking for

  • Itunes 11 update; entercounted a problem and needs to close

    Itunes has encountered a problem and needs to close , After I Uninstall everything containing apple & did the window ulitly than downloaded itunes again & It still said this. I have unistalled , clean up , & download again & again and this keeps popp

  • Dreamweaver CS5 E-Commerce Book/Resources

    Hi, I have recently completed my Adobe Dreamweaver and Flash CS5 certificate but the course only covers the basics for an information based website. I would like to learn about databases i.e for logins etc where people can add their details to the da

  • "Play in to out" bug with multicams (cc v7.2.2 and v8.0)

    When looking at the audio waveforms for a multicam in the source panel, if I then set an in&out mark, then hit "Play in to out" it plays the previous in-to-out. This is really annoying when I'm trying to pull clean soundbites out of multicams. Anybod

  • Variable for Query

    Hai Gurus, I have a report which gives all the requisitions with differrent status in the report based on Req. start date. In addition to this i got a requirement in the same report where user can enter date interval.. Based on the user date interval

  • Solaris 10 mpio and Emulex LP11002 HBA

    Greetings, Has anyone tried to use a Emulex LP11002 HBA with Solaris 10 mpio driver ? Kindly advise. Thanks and Regards