E71 - Issue with setting up email

HI All
My partner and I have both brought E71's, I set up access to my email easily then went to do my partners phone and we get up to the enter email address step and it kicks us out and wont let us enter a password or anything....not sure what is going on or how to fix this??

@splash24
Don't know from which country you are posting, but are you both on same network?
For example in UK Orange is the only provider of Nokia Messaging and other network users have to decline terms of service and set up manually.
Happy to have helped forum with a Support Ratio = 42.5

Similar Messages

  • HT1694 Is anyone else having issues with setting up email through their Yahoo account on 7.1?

    My Yahoo account was hacked and I had to change the password. Tried to update it through settings and I'm getting the message Server Unavailable. Try again later. Has anyone experienced this or know how to help? Tried setting it up as an Other email account and that didn't work either.  The same thing has happened with my iTouch4.

    Yes, Yahoo is known for this. - connection to server failed or unavailable.

  • My wife has issues with her AOL email and was told to contact Apple about a virus scan. Has anyone else had a similar issue?

    My wife has issues with her AOL email and a tech rep told her to contact Apple for a virus scan. Has anyone else had a problem like this?

    You forgot to describe the 'issues' but there are no viruses that affect Apple OS X.
    You may find this User Tip on Viruses, Trojan Detection and Removal, as well as general Internet Security and Privacy, useful:
    https://discussions.apple.com/docs/DOC-2435
    The User Tip (which you are welcome to print out and retain for future reference) seeks to offer some guidance on the main security threats and how to avoid them
    Bear in mind that from April to December 2011 there were only 58 attempted security threats to the Mac - a mere fraction compared to Windows malware:
    http://www.f-secure.com/weblog/archives/00002300.html
    (I have ClamXav set to scan incoming emails, but nothing else.)

  • Issue with Setting Application Item

    Hi All,
    I have an issue with setting the value of application item G_USER_ID as part of the login process.
    I use customized authentication for login. I have created an application item G_USER_ID, and in my CUSTOM_AUTH procedure, I am setting its value as APEX_UTIL.SET_SESSION_STATE('G_USER_ID', l_user_id);
    For some reason, the value is not set to G_USER_ID the first time I login. When I log out and login again without closing the browser, the value is set. Note that I even tested with a static value instead of l_user_id like APEX_UTIL.SET_SESSION_STATE('G_USER_ID', '5555555'); but still fails to set during the first login.
    I hope someone can guide me as to what I am doing wrong here.
    Thanks!
    JMcG

    What does this do?
    :SVR_FLAG := NVL(l_mult_svr,'N');
    Scott

  • Issue with setting ratings and labels

    Greetings all. I am having an issue with setting ratings AND labels on image files at the same time. If the script sets the label first then the rating, the label doesn't show in Bridge. If the script sets the rating first then the label, the rating doesn't show in Bridge.
    Is there a workaround for this? Here is my script function for doing this. file=filename minus extension. Rating is a number for the desired rating. lab is a number for the level of Label I wish to set. Everything works great except that I can't set both Rating and Label with the script as shown. In this instance, only the Ratings will show up in Bridge after running the script. If I move the x.label=Label line under the x.rating=Rating line, then the ratings only show for those images with no label (lab=0). Any image that gets a label receives no rating.
    If you're going to test this, you may want to comment out the Collections part. That's the part within the "switch(Number(Rating))" block.
    function setRating(file,Rating,lab) {
        try{
            cr=File(file+"CR2");
            psd=File(file+"psd");
            jpg=File(file+"jpg");
            tif=File(file+"tif");
            switch(lab) {
                case 0: Label = ""; break;
                case 1: Label = "Select"; break;
                case 2: Label = "Second"; break;
                case 3: Label = "Approved"; break;
            if (cr.created) {
                var c=new Thumbnail(cr);
                c.label=Label;
                c.rating=Rating;
                if (psd.created) {
                    p=new Thumbnail(psd);
                    p.label=Label;
                    p.rating=Rating;
                    if (jpg.created) {
                        var j=new Thumbnail(jpg);
                        j.label=Label;
                        j.rating=Rating;
                        Rating=0;
                    else addFile=psd;
                else addFile=cr;
            switch(Number(Rating)){
                case 0 : break; /* No Rating */
                case 1 : if(!app.isCollectionMember(OneStar,new Thumbnail(addFile))) app.addCollectionMember(OneStar,new Thumbnail(addFile)); break;
                case 2 : if(!app.isCollectionMember(TwoStars,new Thumbnail(addFile))) app.addCollectionMember(TwoStars,new Thumbnail(addFile)); break;
                case 3 : if(!app.isCollectionMember(ThreeStars,new Thumbnail(addFile))) app.addCollectionMember(ThreeStars,new Thumbnail(addFile)); break;
                case 4 : if(!app.isCollectionMember(FourStars,new Thumbnail(addFile))) app.addCollectionMember(FourStars,new Thumbnail(addFile)); break;
                case 5 : if(!app.isCollectionMember(FiveStars,new Thumbnail(addFile))) app.addCollectionMember(FiveStars,new Thumbnail(addFile)); break;
                default : break;
        }catch(e){
              alert(e);
              return -1;

    Afew errors to start with, you were not creating a proper file as there wasn't a fullstop in the filename.
    If a CR2 file didn't exist no other file was looked for, you were using "created" and should have been "exists"
    This now labels and rates....
    setRating("/C/Test Area/NEF/z",2,1);
    function setRating(file,Rating,lab) {
        try{
            cr=File(file+".CR2");
            psd=File(file+".psd");
            jpg=File(file+".jpg");
            tif=File(file+".tif");
            switch(Number(lab)) {
                case 0: Label = ""; break;
                case 1: Label = "Select"; break;
                case 2: Label = "Second"; break;
                case 3: Label = "Approved"; break;
            if (cr.exists) {
                var c=new Thumbnail(cr);
                c.label=Label;
                c.rating=Rating;
                if (psd.exists) {
                    p=new Thumbnail(psd);
                    p.label=Label;
                    p.rating=Rating;
                    if (jpg.exists) {
                        var j=new Thumbnail(jpg);
                        j.label=Label;
                        j.rating=Rating;
                        Rating=0;
            switch(Number(Rating)){
                case 0 : break;
                case 1 : if(!app.isCollectionMember(OneStar,new Thumbnail(addFile))) app.addCollectionMember(OneStar,new Thumbnail(addFile)); break;
                case 2 : if(!app.isCollectionMember(TwoStars,new Thumbnail(addFile))) app.addCollectionMember(TwoStars,new Thumbnail(addFile)); break;
                case 3 : if(!app.isCollectionMember(ThreeStars,new Thumbnail(addFile))) app.addCollectionMember(ThreeStars,new Thumbnail(addFile)); break;
                case 4 : if(!app.isCollectionMember(FourStars,new Thumbnail(addFile))) app.addCollectionMember(FourStars,new Thumbnail(addFile)); break;
                case 5 : if(!app.isCollectionMember(FiveStars,new Thumbnail(addFile))) app.addCollectionMember(FiveStars,new Thumbnail(addFile)); break;
                default : break;
        }catch(e){
              alert(e);
              return -1;

  • Hi, Using MAC OSX 10.6.8 and have intermittent issues with receiving new emails - sending is OK. I've tried the workarounds (take offline & take online), quitting mail etc - no luck. Any suggestions?

    Hi, I'm using MAC OSX 10.6.8 and have intermittent issues with receiving new emails - sending is OK. I've tried the workarounds (take offline & take online), quitting mail etc - no luck. Have cleared space, checked Window - Doctor and server has green light.  Mail Activity shows 47 emails waiting to download, iPad and iPhone download them all OK - no extra big files stopping the download either.    In the past, quitting mail has worked, but not today... Any suggestions?

    Hi, I'm using MAC OSX 10.6.8 and have intermittent issues with receiving new emails - sending is OK. I've tried the workarounds (take offline & take online), quitting mail etc - no luck. Have cleared space, checked Window - Doctor and server has green light.  Mail Activity shows 47 emails waiting to download, iPad and iPhone download them all OK - no extra big files stopping the download either.    In the past, quitting mail has worked, but not today... Any suggestions?

  • I have been having issues with my iCloud email on my iMac. For some time period, everyday, it won't reload and often shows symbols instead of letters for the text. Any ideas how to solve?

    I have been having issues with my iCloud email on my iMac. For some time period, everyday, it won't reload and often shows symbols instead of letters for the text. Any ideas how to solve?

    All I can suggest is that you open that file on the MBA and save it as a new file, then see if you can open the new one on the iMac.

  • Issue with setting Planning Data Source

    I keep getting error when I try to set up the data source
    the Oracle database  = orcl
    The data base schema EPMAPLAN
    Password = EPMAPLAN
    when i log on i  to Oracle Database
    Sys as SYSDBA
    Password = Password01
    so what what should be the Database Source Name  = ORCL Correct ????
    Server = win-392h1l307n1 or localhost
    Databse = ORCL
    User Name  = ????????????
    Password  = ?????????
    I try all the  combinations
    Please advise

    Duplicate post - Issue with setting up planning data source
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Having major issues with setting up my email.  Keeps saying password or username is incorrect, BUT it's not.

    Having issues trying to set up email.  Keeps saying the username or passwrod is incorrect..

    1. Make sure software is up to date
    2. Make sure FaceTime is enabled; Settings>FaceTime
    3. Make sure Date and Time is correctly set; Settings>General>Date and Time>Set Automatically>On
    4. Make sure Push Notification is enabled
    5. Make sure phone number or email address is correct
    6. Hold the Sleep and Home button down (together) until you see the Apple Logo

  • Issues with setting up Exchange Server 2013

    Hi All
     Not sure what im doing wrong yet i am having issues with exchange server 2013.
    Currently I have got general SMTP Mail flow working. as long as i log onto the local servers OWA (https://10.x.x.x/owa) i can log into a users mailbox. i have tested sending and recieving mail using this and it works.
    My main issue now is with accessing the OWA externally via our website.  (owa.xx.xx.au/owa) or connecting ANY Outlook to the server.
    When i connect to the exchange server via outlook it asks for the password again multiple times never authenticating it then time's out and says:
     " the action cannot be completed. the connection to microsoft exchange is unavailable, outlook must be online or
    connected to complete this action "
    then when i click on OK it goes to the General Tab and under microsoft exchange server: the name for it appears as 
    [email protected]
    with mailbox set as:
    =SMTP:[email protected]
    Currantly on our DNS i have
    mx=  10  mail.xx.xx.au
    CNAME= autodiscover  = mail.xx.xx.au
    CNAME= OWA = mail.xx.xx.au
    A = mail = 12.34.56.78 
    On our modem/router i have set one-to-one nat to our firewall IP
    On our firewall i have
    SMTP SAT and NAT to Exchange server
    HTTPS Sat and NAT to exchange Server
    HTTP Sat and Nat to exchange Server
    Port 587 SAT and Nat to exchange server
    pop SAT and NAt to exchange server
    Im willing to bet its something stupid i have overlooked but i was wondering if anyone would be able to help me out
    Regards
    Sibsy

    Hello,
    Firstly, please follow the Shadab's suggestion to check related virtual directory settings.
    Please make sure you use certificate that's created by a CA that's trusted by the client computer's operating system. 
    Please use get-outlookanywhere | fl cmdlet to check ExternalClientAuthenticationMethod. By default, the authentication is Negotiate.
    Cara Chen
    TechNet Community Support

  • Issues with setting "Album Artist" in iTunes 9.2.5.1 on Windows 7

    I googled this for a while but haven't been able to find this issues mentioned anywhere else yet. Here's what's happening: I am importing CDs to iTunes 9.2.1.5 on Windows 7 Pro (64 Bit) using MP3 Encoder > Higher Quality. All is well except for a few CDs where I'd like to set an overall Album Artist. Example: Tony Bennett's Duets: An American Classic. When importing the CD it shows up under "Various Artists" since "Artist" is always Tony Bennett plus whoever he sings with. To make sure the album shows up under Tony Bennett in the library I click on the album and set "Album Artist" to Tony Bennett. That, however results in changing the "Artist" field as well now so all fields say Tony Bennett, which shouldn't happen, "artists" should stay unchanged. I tried this with several albums and the behavior is always the same.
    I also tried the back door by going into the actual folder of the album in Windows then change the MP3 details and populate "Album Artist" there for all tracks within the album. Once I re=open iTunes it registers the change only for the first track but not the rest. So I re-import the folder into iTunes and then it does take "Album Artist" and also leaves "Artist" unchanged but for some reason has now lots of numbers under "Comments". There seems to be a mismatch of the field attributes between iTunes and Windows for MP3 files (possibly other formats as well). Wondering if anyone else has observed this or if I am just missing some setting.

    FYI iTunes handling of ID3v2.4 tags seems to have some issues as well... Translating genres into their numeric codes for one thing. I'd recommend sticking with v2.3.
    I'm not exactly sure from your posts what you were seeing. Was the artist being changed in Get Info. after you'd set Album Artist, or was it changing elsewhere on screeen? iTunes 9(.1 I think) added an option *View > Column Browser > Use Album Artists*. Unfortunately this doesn't change the heading of the column so that you "see" it is now only listing album artists but that's what it does.
    There is also an occasional issue with the current build in that sometimes changes to Album Artist or Sort Album Artist fail to be reflected properly in the column browser until iTunes is closed and reopened.
    tt2

  • Issue with iCloud.. email address and responding

    Hi Everyone,
    Not sure why this is happening but I have encountered some recent issues with iCloud. A little history I restored my iphone 4s and have reinstalled and reset all my accounts, apps, and services. All was working well until this last week.
    1) Before (restoring my phone), I was able to reply to any email (icloud or other) on my phone AND select which ever 'from account' I had available, INCLUDING the icloud alaises. Now when I reply through the phone I do not get access to those alaises for some reason.
    2) Through the browser (Safari or Chrome), I can not reply to emails in iCloud. It crashes. I can however forward, but once I hit reply it generates an error.
    iCloud has also somehow merged my emails addresses into mail but again disregarding the alaises created. I don't sync my MacBook Mail with iCloud Mail documents (Thank God), but I do sync Calendars, and Contacts. (Btw it would be nice to select which Contact groups to sync with as on iTunes)
    Not sure what is going on but it has become quite annoying especially when it was working just fine about 2-3 weeks ago.
    Any ideas/solutions?
    Thanks

    Try going back to http://appleid.apple.com and changing the ID back to the original address. If you can get this accepted, then go to the iCloud preferences/settings pane, stop 'Find My ....', and then sign out. Do the same on any other devices or computers.
    Then go back to http://appleid.apple.com and change the ID to the new one. Sign in with that on all your devices.
    However as the address which forms the original ID is now not working it can't be validated and it's possible that you won't be able to revert to it. In this situation only Support can help you.
    To contact  iCloud Support: if you currently happen to have AppleCare, either because you recently bought Apple hardware or have paid to extend the inititial period, you can contact them here:
    http://www.apple.com/support/icloud/contact/
    You will need the serial number of the covered hardware.
    If you are not covered by AppleCare, then - in common with other free email services - there is no free support and you may be asked to pay a fee.

  • N82: issue with sett. wizard

    Hi All,
    I'm using a black N82 with the latest FW (V20.0.062) and whenever I try to open the Sett. wizard the phone is freezing (only the wallpaper is displayed). Only a restart (by removing the battery) recovers the phone. I tried also a reset to the factory settings but the problem remains...
    Anyone knows a solution to this problem?

    Thanks again for your prompt response.
    I've never installed additional applications on my phone.
    The following 'items' have gone 'into' the phone since purchase:
    1. Mp3 songs.
    2. Contacts via the sim directory.
    3. a Powerpoint presentation via data transfer mode (nearly a month ago, but my issues with the phone surfaced a week ago....so no problem with the ppt i guess)
    4. camera pics, MS outlook calender, to-do and Text messages routinely syncd between my phone and laptop.
    5. Bluetooth transfer out of my phone to another phone for a transfer of pics taken.
    Again many weeks ago not followed by adverse effects...
    Thanks, it'll take me a while to understand SYNCML. Ill read and try to understand soon.
    But then wont PC suite take care of contacts backup n restore,etc?
    If so, where can i find the contacts stored in my computer and in what format?
    For instance, the photos and text msgs - synced - are stored in Lifeblog folder under my documents folder and can be easily accessed via the LifeBlo application both on the phone and the computer/laptop.
    PS: I also managed to update the software today, with the help of Nokia Software updater app on my laptop.
    Keeping this all in mind:
    I reckon, the m-card and perhaps phone memory are affected. Maybe the camera application as well.
    If this is proved, i think, then i m-card format and hard reset is the way forward.
    Thanks again.

  • Crystal Reports XI R2 SP 6 - Issue with setting Data Source Location

    Hello,
      After some initial difficulty instally CR XI R2 with SP 6 on a windows XP machine (see thread Error on installation of CR XI R2 SP6), the Crystal Reports environment seemed fine, however, when I tried resetting the datasource location on an ODBC datasource between a development and production server, I get the message 'Some Tables could not be replaced as no match was found....'   The tables in the two databases are identical so that isn't the issue.
    Here is some additional information
    The issue seems related only to DSN's that point to a progress database.  I am able to reset datasource locations for DSN's that use the SQL server driver and also for those that use the XML CR ODBC XML Driver 5.0.  I am not able to reset the datasource locations on the DSN's that use a Progress Open Edge 10.1 DB  driver.
    I can create a new report using the DSN for the Progress Driver and add tables, but the table names are coming up as an alias - i.e. if I add a table called PM_Plant, the table added to the report is PM_Plant1.
    I also found I can go into existing reports, rename the tables in the database expert to be an alias (appending 1 to the end of the table name), then I am able to repoint them using the datasource location screen. 
    So it looks like there is a potential work around to the situation, but I didn't run across any information that we should need to do that. 
    Any recommendations how to fix the issue?  
    Thanks,

    Hi Don,
    The reports were created with CR XI R1 on my PC  initially and the progress drivers have not changed since.   The reports were deployed to a server and I pulled them back to my PC to test out any changes after the CR XI R2 SP 6 upgrade.  (so there is really only one machine involved, the one that had the upgrade). 
    I did look at the settings for verifying and tried playing around with those and also with verifying the database but that didn't make any difference.
    I wasn't quite sure which registry keys to look at or what the values should be so wasn't able to pursue that option. 
    All the tables in the progress database use underscores as part of the table name (i.e. PM_Plant, PM_Company), do you think the upgrade to SP6 means that the underscore is now a reserved character and that is why the tables are getting aliased?  If so, do you know how to change the alias settings or the list of characters that are reserved?
    Just an FYI, I had to downgrade back to CR XI R1 at this point to get work done.   If time allows, I'll retry the upgrade in about 5-7 weeks.  I discussed the issue with a system admininstrator and we willl try removing the progress drivers and DSN's prior to trying an upgrade again to see if that makes a difference.  I'll also make sure to keep track of all Report Options and Options and also registry keys to see what changes.
    Thanks

  • Issue with setting float point in Textfield

    hi
    i have an issue with float input in a textfield.
    what i want to do is.
    when the user start typing numerics it should accept from right hand side and keep appending value from right hand side.
    for ex
    if i want to enter 123.45
    user starts entering
    1 then it should display as 0.01
    2 then it should display as 0.12
    3 then it should display as 1.23
    4 then it should display as 12.34
    5 then it should display as 123.45
    to achive this i have written the code as below
    public class Test{
         public static void main(String[] a){
         try {
    UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
    } catch (Exception evt) {}
    DecimalFormat format = new DecimalFormat();
    format.setGroupingUsed(true);
    format.setGroupingSize(3);
    format.setParseIntegerOnly(false);
    JFrame f = new JFrame("Numeric Text Field Example");
    final DecimalFormateGen tf = new DecimalFormateGen(10, format);
    // tf.setValue((double) 123456.789);
    tf.setHorizontalAlignment(SwingConstants.RIGHT);
    JLabel lbl = new JLabel("Type a number: ");
    f.getContentPane().add(tf, "East");
    f.getContentPane().add(lbl, "West");
    tf.addKeyListener(new KeyAdapter(){
         public void keyReleased(KeyEvent ke){
              char ch = ke.getKeyChar();
              char key;
              int finalres =0;
              String str,str1 = null,str2 =null,str3 = null,str4= null;
              if(ke.getKeyChar() == KeyEvent.VK_0 || ke.getKeyChar() == KeyEvent.VK_0 ||
                        ke.getKeyChar() == KeyEvent.VK_0 || ke.getKeyChar() == KeyEvent.VK_1 || ke.getKeyChar() == KeyEvent.VK_2 ||
                             ke.getKeyChar() == KeyEvent.VK_3 || ke.getKeyChar() == KeyEvent.VK_4 || ke.getKeyChar() == KeyEvent.VK_5 ||
                             ke.getKeyChar() == KeyEvent.VK_6 || ke.getKeyChar() == KeyEvent.VK_7 || ke.getKeyChar() == KeyEvent.VK_8 ||
                             ke.getKeyChar() == KeyEvent.VK_9 ){
                   double value1 = Double.parseDouble(tf.getText());
                   int position = tf.getCaretPosition();
                   if(tf.getText().length() == 1){
                        if(tf.getText() != null || tf.getText() != ""){
                        value1 = value1 / 100;
                        tf.setText(String.valueOf(value1));
                   /*else if(tf.getText().length() == 3){
                        str = tf.getText();
                        for(int i=0;i<str.length();i++){
                             if(str.charAt(i) == '.'){
                                  str1 = str.substring(0,i);
                                  str2 = str.substring(i+1,str.length()-1);
                                  break;
                        key = ke.getKeyChar();
                        finalres = calculate.calculate1(str2,key);
                        str3 = merge.merge1(str1,finalres);
                        tf.setText(str3);
                        System.out.println(key);
                        System.out.println(str1);
                        System.out.println(str2);
                   else{
                        value1 = Float.parseFloat(tf.getText());
                        value1 = value1*10;
                        tf.setText(String.valueOf(value1));
    tf.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent evt) {
    try {
    tf.normalize();
    Long l = tf.getLongValue();
    System.out.println("Value is (Long)" + l);
    } catch (ParseException e1) {
    try {
    Double d = tf.getDoubleValue();
    System.out.println("Value is (Double)" + d);
    } catch (ParseException e2) {
    System.out.println(e2);
    f.pack();
    f.setVisible(true);
    import javax.swing.JTextField;
    * Created on May 25, 2005
    * TODO To change the template for this generated file go to
    * Window - Preferences - Java - Code Style - Code Templates
    * @author jagjeevanreddyg
    * TODO To change the template for this generated type comment go to
    * Window - Preferences - Java - Code Style - Code Templates
    import java.awt.Toolkit;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.text.DecimalFormat;
    import java.text.ParseException;
    import java.text.ParsePosition;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JTextField;
    import javax.swing.UIManager;
    import javax.swing.text.AbstractDocument;
    import javax.swing.text.AttributeSet;
    import javax.swing.text.BadLocationException;
    import javax.swing.text.Document;
    import javax.swing.text.PlainDocument;
    import javax.swing.text.AbstractDocument.Content;
    public class DecimalFormateGen extends JTextField implements
    NumericPlainDocument.InsertErrorListener {
         public DecimalFormateGen() {
         this(null, 0, null);
         public DecimalFormateGen(String text, int columns, DecimalFormat format) {
         super(null, text, columns);
         NumericPlainDocument numericDoc = (NumericPlainDocument) getDocument();
         if (format != null) {
         numericDoc.setFormat(format);
         numericDoc.addInsertErrorListener(this);
         public DecimalFormateGen(int columns, DecimalFormat format) {
         this(null, columns, format);
         public DecimalFormateGen(String text) {
         this(text, 0, null);
         public DecimalFormateGen(String text, int columns) {
         this(text, columns, null);
         public void setFormat(DecimalFormat format) {
         ((NumericPlainDocument) getDocument()).setFormat(format);
         public DecimalFormat getFormat() {
         return ((NumericPlainDocument) getDocument()).getFormat();
         public void formatChanged() {
         // Notify change of format attributes.
         setFormat(getFormat());
         // Methods to get the field value
         public Long getLongValue() throws ParseException {
         return ((NumericPlainDocument) getDocument()).getLongValue();
         public Double getDoubleValue() throws ParseException {
         return ((NumericPlainDocument) getDocument()).getDoubleValue();
         public Number getNumberValue() throws ParseException {
         return ((NumericPlainDocument) getDocument()).getNumberValue();
         // Methods to install numeric values
         public void setValue(Number number) {
         setText(getFormat().format(number));
         public void setValue(long l) {
         setText(getFormat().format(l));
         public void setValue(double d) {
         setText(getFormat().format(d));
         public void normalize() throws ParseException {
         // format the value according to the format string
         setText(getFormat().format(getNumberValue()));
         // Override to handle insertion error
         public void insertFailed(NumericPlainDocument doc, int offset, String str,
         AttributeSet a) {
         // By default, just beep
         Toolkit.getDefaultToolkit().beep();
         // Method to create default model
         protected Document createDefaultModel() {
         return new NumericPlainDocument();
         // Test code
         public static void main(String[] args) {
         try {
         UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
         } catch (Exception evt) {}
         DecimalFormat format = new DecimalFormat("#,###.###");
         format.setGroupingUsed(true);
         format.setGroupingSize(3);
         format.setParseIntegerOnly(false);
         JFrame f = new JFrame("Numeric Text Field Example");
         final DecimalFormateGen tf = new DecimalFormateGen(10, format);
         tf.setValue((double) 123456.789);
         JLabel lbl = new JLabel("Type a number: ");
         f.getContentPane().add(tf, "East");
         f.getContentPane().add(lbl, "West");
         tf.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent evt) {
         try {
         tf.normalize();
         Long l = tf.getLongValue();
         System.out.println("Value is (Long)" + l);
         } catch (ParseException e1) {
         try {
         Double d = tf.getDoubleValue();
         System.out.println("Value is (Double)" + d);
         } catch (ParseException e2) {
         System.out.println(e2);
         f.pack();
         f.setVisible(true);
         class NumericPlainDocument extends PlainDocument {
         public NumericPlainDocument() {
         setFormat(null);
         public NumericPlainDocument(DecimalFormat format) {
         setFormat(format);
         public NumericPlainDocument(AbstractDocument.Content content,
         DecimalFormat format) {
         super(content);
         setFormat(format);
         try {
         format
         .parseObject(content.getString(0, content.length()), parsePos);
         } catch (Exception e) {
         throw new IllegalArgumentException(
         "Initial content not a valid number");
         if (parsePos.getIndex() != content.length() - 1) {
         throw new IllegalArgumentException(
         "Initial content not a valid number");
         public void setFormat(DecimalFormat fmt) {
         this.format = fmt != null ? fmt : (DecimalFormat) defaultFormat.clone();
         decimalSeparator = format.getDecimalFormatSymbols()
         .getDecimalSeparator();
         groupingSeparator = format.getDecimalFormatSymbols()
         .getGroupingSeparator();
         positivePrefix = format.getPositivePrefix();
         positivePrefixLen = positivePrefix.length();
         negativePrefix = format.getNegativePrefix();
         negativePrefixLen = negativePrefix.length();
         positiveSuffix = format.getPositiveSuffix();
         positiveSuffixLen = positiveSuffix.length();
         negativeSuffix = format.getNegativeSuffix();
         negativeSuffixLen = negativeSuffix.length();
         public DecimalFormat getFormat() {
         return format;
         public Number getNumberValue() throws ParseException {
         try {
         String content = getText(0, getLength());
         parsePos.setIndex(0);
         Number result = format.parse(content, parsePos);
         if (parsePos.getIndex() != getLength()) {
         throw new ParseException("Not a valid number: " + content, 0);
         return result;
         } catch (BadLocationException e) {
         throw new ParseException("Not a valid number", 0);
         public Long getLongValue() throws ParseException {
         Number result = getNumberValue();
         if ((result instanceof Long) == false) {
         throw new ParseException("Not a valid long", 0);
         return (Long) result;
         public Double getDoubleValue() throws ParseException {
         Number result = getNumberValue();
         if ((result instanceof Long) == false
         && (result instanceof Double) == false) {
         throw new ParseException("Not a valid double", 0);
         if (result instanceof Long) {
         result = new Double(result.doubleValue());
         return (Double) result;
         public void insertString(int offset, String str, AttributeSet a)
         throws BadLocationException {
         if (str == null || str.length() == 0) {
         return;
         Content content = getContent();
         int length = content.length();
         int originalLength = length;
         parsePos.setIndex(0);
         // Create the result of inserting the new data,
         // but ignore the trailing newline
         String targetString = content.getString(0, offset) + str
         + content.getString(offset, length - offset - 1);
         // Parse the input string and check for errors
         do {
         boolean gotPositive = targetString.startsWith(positivePrefix);
         boolean gotNegative = targetString.startsWith(negativePrefix);
         length = targetString.length();
         // If we have a valid prefix, the parse fails if the
         // suffix is not present and the error is reported
         // at index 0. So, we need to add the appropriate
         // suffix if it is not present at this point.
         if (gotPositive == true || gotNegative == true) {
         String suffix;
         int suffixLength;
         int prefixLength;
         if (gotPositive == true && gotNegative == true) {
         // This happens if one is the leading part of
         // the other - e.g. if one is "(" and the other "(("
         if (positivePrefixLen > negativePrefixLen) {
         gotNegative = false;
         } else {
         gotPositive = false;
         if (gotPositive == true) {
         suffix = positiveSuffix;
         suffixLength = positiveSuffixLen;
         prefixLength = positivePrefixLen;
         } else {
         // Must have the negative prefix
         suffix = negativeSuffix;
         suffixLength = negativeSuffixLen;
         prefixLength = negativePrefixLen;
         // If the string consists of the prefix alone,
         // do nothing, or the result won't parse.
         if (length == prefixLength) {
         break;
         // We can't just add the suffix, because part of it
         // may already be there. For example, suppose the
         // negative prefix is "(" and the negative suffix is
         // "$)". If the user has typed "(345$", then it is not
         // correct to add "$)". Instead, only the missing part
         // should be added, in this case ")".
         if (targetString.endsWith(suffix) == false) {
         int i;
         for (i = suffixLength - 1; i > 0; i--) {
         if (targetString
         .regionMatches(length - i, suffix, 0, i)) {
         targetString += suffix.substring(i);
         break;
         if (i == 0) {
         // None of the suffix was present
         targetString += suffix;
         length = targetString.length();
         format.parse(targetString, parsePos);
         int endIndex = parsePos.getIndex();
         if (endIndex == length) {
         break; // Number is acceptable
         // Parse ended early
         // Since incomplete numbers don't always parse, try
         // to work out what went wrong.
         // First check for an incomplete positive prefix
         if (positivePrefixLen > 0 && endIndex < positivePrefixLen
         && length <= positivePrefixLen
         && targetString.regionMatches(0, positivePrefix, 0, length)) {
         break; // Accept for now
         // Next check for an incomplete negative prefix
         if (negativePrefixLen > 0 && endIndex < negativePrefixLen
         && length <= negativePrefixLen
         && targetString.regionMatches(0, negativePrefix, 0, length)) {
         break; // Accept for now
         // Allow a number that ends with the group
         // or decimal separator, if these are in use
         char lastChar = targetString.charAt(originalLength - 1);
         int decimalIndex = targetString.indexOf(decimalSeparator);
         if (format.isGroupingUsed() && lastChar == groupingSeparator
         && decimalIndex == -1) {
         // Allow a "," but only in integer part
         break;
         if (format.isParseIntegerOnly() == false
         && lastChar == decimalSeparator
         && decimalIndex == originalLength - 1) {
         // Allow a ".", but only one
         break;
         // No more corrections to make: must be an error
         if (errorListener != null) {
         errorListener.insertFailed(this, offset, str, a);
         return;
         } while (true == false);
         // Finally, add to the model
         super.insertString(offset, str, a);
         public void addInsertErrorListener(InsertErrorListener l) {
         if (errorListener == null) {
         errorListener = l;
         return;
         throw new IllegalArgumentException(
         "InsertErrorListener already registered");
         public void removeInsertErrorListener(InsertErrorListener l) {
         if (errorListener == l) {
         errorListener = null;
         public interface InsertErrorListener {
         public abstract void insertFailed(NumericPlainDocument doc, int offset,
         String str, AttributeSet a);
         protected InsertErrorListener errorListener;
         protected DecimalFormat format;
         protected char decimalSeparator;
         protected char groupingSeparator;
         protected String positivePrefix;
         protected String negativePrefix;
         protected int positivePrefixLen;
         protected int negativePrefixLen;
         protected String positiveSuffix;
         protected String negativeSuffix;
         protected int positiveSuffixLen;
         protected int negativeSuffixLen;
         protected ParsePosition parsePos = new ParsePosition(0);
         protected static DecimalFormat defaultFormat = new DecimalFormat();
    this is not working as desired pls help me.
    can we use this code and get the desired result or is there any other way to do this.
    it is very urgent for me pls help immediately
    thanks in advance

    Hi camickr
    i learned how to format the code now, and u also responded for my testarea problem , iam very much thankful to u, and now i repeat the same problem what i have with a text field.
    actually i have window with a textfield on it and while end user starts entering data in it , it should be have as follows
    when the user start typing numerics it should accept from right hand side and keep appending value from right hand side.
    first the default value should be as 0.00 and as the user starts entering
    then it is as follows
    for ex
    if i want to enter 123.45
    user starts entering
    1 then it should display as 0.01
    2 then it should display as 0.12
    3 then it should display as 1.23
    4 then it should display as 12.34
    5 then it should display as 123.45
    i hope u will give me quick reply because this is very hard time for me.

Maybe you are looking for

  • Slow system when 1TB Store.E USB drive connected

    HI, I bought a 1TB Store.E USB drive. After I installed the drive the whole system reacts very slow when the drive is access after not being use for a while. Is there a standby modus and if yes, can it be switched off? Regards Heinz

  • ADF train task Flow display name comonent value from bundel

    hi i have som problem with adf bounded task flow train. i build a bounded task flow as fragment and train and i add display name component to each view , but how i can give the display name value from a view controller bundel . regards mohammad.j.yas

  • Customer Account Group Mark for deletion

    Hi Experts, As per the business requirement i need to block some of the customer account groups like(z001,z002 and z003) is there any config settings available for marking these account groups as blocked or only  deletion is possible. Thanks in advan

  • Cannot enable keyboard & character viewer

    After a fresh install of 10.7.5, I cannot enable the keyboard & character viewer. Neither the checkbox will stay checked, nor does the option appear in the input sources menu... Any ideas? Thanks, Klaus

  • Why cant i register my ipad mini?

    when i try to register my ipad mini, it says already reagistered with another apple id but its not, can anyone help?