Making IP Address field - help needed

Hi All,
Can anyone tell me how to make the IP Address field as displayed in windows operating system network settings.
Actually I have made one IP field using JFormattedTextField and MaskFormatter class.
code is given below:
private MaskFormatter getMf2() {
if (mf2 == null) {
try {
mf2 = new MaskFormatter(" *** . *** . *** . *** ");
mf2.setValidCharacters(" 0123456789");
} catch (Exception e) {
JOptionPane.showMessageDialog(null, e.toString());
return mf2;
jTextField = new JFormattedTextField(getMf2());
Am I doing anything wrong here?
Problem is its not behaving in the way windows operating system IP field behaves?
Actually I am unable to display 3 dots(.) in the field which look like they are with regular space gap in the jformattedtextfield?
In windows OS, dots in the IP address field will remain static, but with my IP field, they are moving when I am adding values into the field? How to solve this problem?
I have given three spaces in the mask formatter initially? so if I click on the first place, I am unable to type at that place? how to rectify this problem?
Please anyone help me to solve this problem and make proper IP field as it looks in windows operating system. If Any code is available in the web, please provide the link here.

Answered in cross posting.

Similar Messages

  • Making IP Address field in JAVA - error

    Hi All,
    Can anyone tell me how to make the IP Address field as displayed in windows operating system network settings.
    Actually I have made one IP field using JFormattedTextField and MaskFormatter class.
    code is given below:
    private MaskFormatter getMf2() {
              if (mf2 == null) {
                   try {
                        mf2 = new MaskFormatter(" *** . *** . *** . *** ");
                        mf2.setValidCharacters(" 0123456789");
                        } catch (Exception e) {
                        JOptionPane.showMessageDialog(null, e.toString());
              return mf2;
         jTextField = new JFormattedTextField(getMf2());
    Am I doing anything wrong here?
    Problem is its not behaving in the way windows operating system IP field behaves?
    Actually I am unable to display 3 dots(.) in the field which look like they are with regular space gap in the jformattedtextfield?
    In windows OS, dots in the IP address field will remain static, but with my IP field, they are moving when I am adding values into the field? How to solve this problem?
    I have given three spaces in the mask formatter initially? so if I click on the first place, I am unable to type at that place? how to rectify this problem?
    Please anyone help me to solve this problem and make proper IP field as it looks in windows operating system. If Any code is available in the web, please provide the link here.

    I have used monospaced font, now initially dots(.) are appearing in equal gaps in the textfield.
    But the problem again is that, when I am typing something, those dots are moving right side to accomodate the entries I have made.
    I have set font like this*jTextField.setFont(new Font("Serif",Font.PLAIN,16));*How can I move the character I have typed to the left, instead of dots moving to the right side as done in case of windows IP Address field?
    And one more help required is, actually I am giving initially three spaces in MaskFormatter and setting that MaskFormatter to jTextField.
    So if I click on initial place in the textfield, cursor was displayed there, but I am unable to type at that place as I have given three spaces in maskformatter class.
    So my intention is that, even if I click at the start of textfield entrance, it cursor should be pointed or displayed after three spaces only.
    How I can implement this?
    Please try to answer these two questions.

  • IP address rules - help needed

    I recently bought a Synology DS212j NAS and set it up last week. I'm new to NAS and port forwarding, so I struggled to manually forward the ports on my BT home hub 3, but got there in the end.
    I can use my iphone to access my movies & songs on the NAS, using the Synology iphone apps. It works when I am at home, or out and about on 3G or wifi.
    The only thing I haven't managed to sort out is the IP address that the iphone app needs to connect to. The NAS created a DDNS IP address for me (I don't really understand what this is, but followed the instructions). This works fine when I am on 3G or away from the home. But when I am at home on my own wifi network, I need to log out of the app and log back in using the 192.168.1.xxx IP address. Using the synology "xxx.synology.me" address doesnt work when at home on wifi. This isn't a big deal, but I would like to get it fixed if possible, it would be nice not to have to log in/out depending on where I am.
    Is it possible to somehow make the BT HH3 use the xxxx.synology.me IP address correctly when I am at home using home wifi? Thanks for any help and apologies if anything is unclear.
    Solved!
    Go to Solution.

    This is because the home hub 3 does not support NAT loopback. This is fixed in the latest firmware revision, which is just being rolled out now.
    See
    http://community.bt.com/t5/Other-BB-Queries/Re-Home-Hub-3A-recent-upgrade-breaks-port-forward-amp-DM...
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Address.getHostName help needed

    Every computer has a Name when connected to the Web via the Internet. The name of my computer when connected is blahblahblah.
    Now when I use address.getHostName(), the name of my computer is displayed, blahblahblah.
    How and is it possible to use this or perhaps something else to get the Name of any computer connected to the web via the Internet?
    Before I get flamed into oblivion, I am not a script kiddie nor a hacker just a developer of Internet related applications.

    You may not be a scriptkitten, but you are in err.
    Not every computer has a name (DNS-name to be precise) when it connects to the internet. DNS is pure for human readability, DNS is also linked to someone's IP, THAT everyone has.
    For example, you have 1 pc connecting to internet using the name mycomputer.tld and another one using 192.168.0.123 (although, that C-Class range is reserverd for internal network).
    You could look into DNS and if there are API's for Java for using (talking to) DNS servers. Still you will need to have the ip of the name you are trying to resolve (resolving = getting the DNS-name linked to an IP if any).
    Hope this helps you in the right direction,
    Greets
    Barre

  • Duplicate Data Fields Help Needed

    We have a 9 page Word form that has some duplicate information, have converted it to LiveCycle but am stuck on finding out how to have the data from one field also show in another so the user does not have to enter twice.  Eventually we will remove the duplicate fields, but for many reasons, right now they must remain.  I don't want a Contractor to have to enter their Company name twice, etc., and have my main data collection form in the front of the 9 pages, and then when they get to the last page with sigs, etc., I would like what they've already entered for their Company information to show.
    I am very new to Designer ES, and when I did some forms in Adobe 9.0 Forms awhile back, all I needed to do was to name the fields the same and if I entered info in one it would show in the other.  ES does not seem to do that, and I can't seem to find out how to add any code to the field.  Don't know why but alot of my options are grayed out.
    Anyway, would very much appreciate help, thank you.

    Giving them the same name is only one part of the solution ....you have to change the binding (on the Object palette/binding tab) to Global.
    Paul

  • Address Format Help Needed

    Could someone please direct me to some information explaining how Apple deals with Address Formats?
    I upgraded to Snow Leopard, then synced. I was syncing from what a perfect version which I had saved on Mobileme before upgrading, and I had not changed anything on the computer after upgrading. I expected it to be straightforward. However, I was told that I had 730 conflicts in Address Book. (That's half my records). When I started to go through these conflicts, I found that they all had something to do with Address Formats. One version, for example, had format 'Japan', and was formatted one way, and another version, had format 'ja', and was formatted another way. Also, sometimes I had 'United Kingdom', and sometimes 'uk'. Actually, there were all sorts of strange conflicts, which is why I'd appreciate some general information that I can study.

    Using 'Reset Sync Data', I uploaded a perfect version of my contacts from an ibook running 10.4.11. It was when I tried to download this onto another, new, computer using 10.6 (again using 'Reset Sync Data' that all these conflicts came up. There was nothing on the latter machine for there to be a conflict with.
    Thanks for your advice, but if I always choose the side with the full name, then I will be sometimes choosing a side that has an incorrectly written address. And I'm afraid I don't want to have to spend a morning doing this 730 times, as very often I also need to check the address from the original computer.
    What I'd like to know is if there is a way to do this without these conflicts. I suppose I could just copy/paste the address data, but then next time I sync, will I get the conflicts again? Why is this happening? What are these two letter codes?

  • Mount: No such device or address - URGENT help needed

    Hi folks,
    I am going to install Oracle 10g on SunOS 5.9 and for this the parameter noexec_user_stack has to be set to 1 in /etc/system .I did it and then I rebooted the machine .Then the problems started - 3 filesystems containing oracle installation and oradata was not mouned. When I try to mount them manually, I get
    # mount /dev/md/dsk/d36
    mount: No such device or address
    mount: Cannot open /dev/md/dsk/d36
    If I try -
    # mount /dev/md/rdsk/d36
    mount: mount point cannot be determined
    In /etc/vfstab
    /dev/md/dsk/d36 /dev/md/rdsk/d36 /local/oracle ufs 3 yes logging
    Can someone helpl me? IS this a hardware problem with the disk(and eventually the disk was gone) or it was caused by changing this kernel parameter?
    Any help would be appreciated.

    You have probelm either with vfstab or you have not created directories where you want to mount the filesystem.

  • Need to add superscript for text field--HELP NEEDED.

    Hi Friends,
    Is there any way to implement superscript and subscript text in Crystal?  For example, I would like to superscript the portion (1) of the following string:
    "Buy(1) or Sell(1)"
    The only way I have found to do this is to put the "235" in a separate text field that uses a smaller font size, and overlay it into the gap that I intentionally left in the larger text field.  For display and printing purposes, this works OK, but if a report containing these strings is exported to Excel, the text fields are exported as separate cells, which makes the exported report look funny.
    I can create this string in Word, then cut and paste it into a text field in Crystal (which initially seems to work), but as soon as I click off the field, all the characters in it are converted to the same font size.
    If this can't be done in the current version of Crystal, are there any plans for it to be implemented in future versions?

    hello all,
    the text interpretation for html or rtf in fields will not render superscript or subscript. the basic rule is that whatever you can format directly in a crystal reports text object, that's what you can have interpreted.
    look up "text interpretation html" in kbase for a full list.
    one option is to turn html passthrough on the server in question if this is a huge deal for you...if you want instructions on how to turn html passthrough on, they are located in the webelements user guide at
    http://diamond.businessobjects.com/node/255
    after doing so, you'd drop the database field into a formula and any html in the database field would be interpreted.

  • Email address shrouding help needed

    For years I've shrouded my email address by using encrypted JavaScript code to hide my address from robot address scavengers.
    I use Enkoder
    Enkoder [and others like it] spits out a short piece of code that replaces the live address. Previous GUI software I've used lets me add the script as part of the hyperlink setup, or, I send the script to my Wordpress coder.
    I'd like to use Enkoder within Muse but can't find a backdoor to add the code.
    Here's an example of Enkoder code using my email address:
    <script type="text/javascript">
    //<![CDATA[
    <!--
    var x="function f(x){var i,o=\"\",ol=x.length,l=ol;while(x.charCodeAt(l/13)!" +
    "=55){try{x+=x;l+=l;}catch(e){}}for(i=l-1;i>=0;i--){o+=x.charAt(i);}return o" +
    ".substr(0,ol);}f(\")14,\\\"pzraex$k771\\\\'7%Km530\\\\PR[T]720\\\\YA420\\\\" +
    "V@TX710\\\\ENEGi720\\\\n\\\\{CSAWq100\\\\Lv771\\\\py;um8|u|xP0M-jbye771\\\\" +
    "*+Tbrlw#`dw^030\\\\420\\\\710\\\\Z420\\\\720\\\\500\\\\020\\\\U030\\\\230\\" +
    "\\320\\\\430\\\\5R230\\\\610\\\\t\\\\100\\\\010\\\\430\\\\330\\\\X310\\\\n\\"+
    "\\700\\\\M620\\\\320\\\\100\\\\2-;9330\\\\?-1$}982:771\\\\59+9?q%=$.'(f730\\"+
    "\\771\\\\'%MV530\\\\]700\\\\030\\\\120\\\\V[SA]AE730\\\\DAK@YHEM\\\"(f};o n" +
    "ruter};))++y(^)i(tAedoCrahc.x(edoCrahCmorf.gnirtS=+o;721=%y{)++i;l<i;0=i(ro" +
    "f;htgnel.x=l,\\\"\\\"=o,i rav{)y,x(f noitcnuf\")"                            ;
    while(x=eval(x));
    //-->
    //]]>
    </script>
    Any ideas?

    Vivek,
    Apologies for the delayed response. I made a form, as you suggested. However, I often just display my email address or text [with the link] that directs readers to 'click here'. All I want is a shrouded version of my email address that the 'bots have a tough time dealing with [Enkoder provides this].
    [email protected]
    =
    <script type="text/javascript">
    //<![CDATA[
    <!--
    var x="function f(x){var i,o=\"\",ol=x.length,l=ol;while(x.charCodeAt(l/13)!" +
    "=37){try{x+=x;l+=l;}catch(e){}}for(i=l-1;i>=0;i--){o+=x.charAt(i);}return o" +
    ".substr(0,ol);}f(\")611,\\\"130\\\\020\\\\%58:>z~uzex771\\\\(ple020\\\\610\\"+
    "\\230\\\\030\\\\120\\\\\\\"(f};o nruter};))++y(^)i(tAedoCrahc.x(edoCrahCmor" +
    "f.gnirtS=+o;721=%y;++y)611<i(fi{)++i;l<i;0=i(rof;htgnel.x=l,\\\"\\\"=o,i ra" +
    "v{)y,x(f noitcnuf\")"                                                        ;
    while(x=eval(x));
    //-->
    //]]>
    </script>
    Unless I'm missing something, the forms option is overkill for what I'm trying to do. Generally, competitive software [for example, NetObjects] will allow me to add a replacement script at the place where the shrouding script is required that replaces the actual email address.
    Any thoughts?
    Steve

  • F4 help for address field

    Hi,
    In BP_CONT component, for address field I need to provide F4 help. And the F4 should contain the addresses with separate fields as (city.street,country).On selecting the row the data should flow as concatenated manner to the address field.
    Please provide some idea to achieve this.
    Thanks.

    Hi Ginger,
    I would like to add what Vinamra has said, you need to create a search help through se11 transaction. As per your requirement you need to map address field of the selected row to different fields in UI.
    In search help we have IMPORTING(IMP) and EXPORTING(EXP) Fields or parameter.
    Lets take a simple example, suppose you have three address field house no, street and city. Now you would like to apply F4 help on CITY field so you need to choose CITY field as IMPORTING and EXPORTING parameter in your search help and other fields like HOUSE NO and STREET as EXPORTING parameter only.
    Now following code you need write in GET_V_CITY() method
    DATA:
       lt_inmap  TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
       ls_map    TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
       lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
       ls_map-context_attr = 'STRUCT.CITY'.
       ls_map-f4_attr      = 'CITY'.
       APPEND ls_map TO: lt_inmap, lt_outmap. " map to input and out
      ls_map-context_attr = 'STRUCT.HOUSENO.     " Context node attribute
      ls_map-f4_attr      = 'HOUSE_NO'.                    "corresponding Field in search help
      APPEND ls_map TO: lt_outmap.
    ls_map-context_attr = 'STRUCT.STREET.     " Context node attribute
      ls_map-f4_attr      = 'STREET'.                     "corresponding Field in search help
      APPEND ls_map TO: lt_outmap.
      CREATE OBJECT rv_valuehelp_descriptor
        TYPE
          cl_bsp_wd_valuehelp_f4descr
        EXPORTING
          iv_help_id                  = 'ZSH_ADDRESS'
          iv_help_id_kind             = if_bsp_wd_valuehelp_f4descr=>help_id_kind_name
          iv_input_mapping            = lt_inmap
          iv_output_mapping           = lt_outmap.
    May this will help you.
    Regards
    Ajay

  • Formatting Address Fields into one

    Using Acrobat X PRO:
    I have a multi-page document in which a user is prompted for the address in two different formats:
    1) With the address split into 4 different values/fields:
    Street Field, City Field, State Field, Zip Field
    Example: "1234 Count Rd" (Next Line) "St Louis", "MO"  "55555"
    2) With the address all together:
    Complete Address on one line with a maximum length of 40 Characters.
    Example: 1234 Count Rd, St. Louis, MO 55555
    I would like users to be able to Fill in the Street, City, State, and Zip fields, and no matter what the format of the following fields, have the data autopopulated.
    This isn't a problem for example #1.  However, with #2 if i place all fields close together, I have to guess on how far apart to space each field and still have it fit and format properly.
    Is there any way to combine the values of 4 fields into one value (separated by commas)?
    Making the address field 'auto-fit' may be necessary but it's ugly if there is extra space in the remaining fields. 
    PLEASE SEE THIS EXAMPLE document i have created for the purpose of this post

    And if the combined fields are longer than 40 characters?
    With Acrobat 4 there was a sample form that one entered the data in fields like tile, first name, mi, last name, abd degrees  and then created a full name from those individual fields and adjusted for missing data.
    The doucment level script:
    / Concatenate 3 strings with separators where needed
    function fillin(s1, s2, s3, sep) {
    Purpose: concatenate up to 3 strings with an optional separator
    inputs:
    s1: required input string text or empty string
    s2: required input string text or empty string
    s3: required input string text or empty string
    sep: optional separator sting
    returns:
    sResult concatenated string
    // variable to determine how to concatenate the strings
      var test = 0; // all strings null
      var sResult; // re slut string to return
    // force any number string to a character string for input variables
      s1 = s1.toString();
      s2 = s2.toString();
      s3 = s3.toString();
      if(sep.toString() == undefined) sep = ''; // if sep is undefined force to null
    assign a binary value for each string present 
    so the computed value of the strings will indicate which strings are present
    when converted to a binary value
      if (s1 != "") test += 1; // string 1 present add binary value: 001
      if (s2 != "") test += 2; // string 2 present add binary value: 010
      if (s3 != "") test += 4; // string 3 present add binary value: 100
      /* return appropriate string combination based on
      calculated test value as a binary value
      switch (test.toString(2)) {
      case "0": // no non-empty strings passed - binary 0
         sResult = "";
      break;
      case "1": // only string 1 present - binary 1
         sResult = s1;  
      break;
      case "10": // only string 2 present - binary 10
         sResult = s2;  
      break;
      case "11": // string 1 and 2 present - binary 10 + 1
         sResult = s1 + sep + s2; 
      break;
      case "100": // only string 3 present - binary 100
         sResult = s3;
      break;
      case "101": // string 1 and 3 - binary 100 + 001
         sResult = s1 + sep + s3; 
      break;
      case "110": // string 2 and 3 - binary 100 + 010
         sResult = s2 + sep + s3; 
      break;
      case "111": // all 3 strings  - binary 100 + 010 + 001
         sResult = s1 + sep + s2 + sep + s3; 
      break;
      default: // any missed combinations
         sResult = "";
      break;
    return sResult;
    And then one could use a custom calculation script for a full address field:
    // Full business address including country
    function doFullBusinessAddress() {
      var ba = this.getField("business.address.full");
      var bc = this.getField("business.address.citystatezip");
      var bu = this.getField("business.address.country");
      event.value = fillin(ba.value, bc.value, bu.value, ", ");
    doFullBusinessAddress();

  • I can no longer see the address field in safari, can anyone help?

    I can no longer see the address field in safari, can anyone help?

    Abarryseymour
    That didn't work to get the safari address bar and the google search bar on my safari browser. could I have a virus???
    Which OS, which Safari?

  • I ordered a new phone and shipped it to a friend in Dubai, UAE. without knowing i have to activate it by making 5minutes calls, please i need a way to activate it without sending it back to the US..any help? this has been very frustrating for me this past

    I ordered a new phone and shipped it to a friend in Dubai, UAE. without knowing i have to activate it by making 5minutes calls, please i need a way to activate it without sending it back to the US..any help? this has been very frustrating for me this past few days

    scottxx,
    That was very nice of you to provide your friend with a new phone! I am sorry to say that the device will not be able to activate while in Dubai. For a device to activate it must connect to the VZW network to become active. I apologize for any inconvenience.
    LindseyT_VZW

  • I need to reset my security questions however there is no option to send a reset link to email address anyone help?

    I need to reset my security questions however there is no option to send a reset link to email address anyone help?

    Go to https://getsupport.apple.com ; click 'See all products and services', then 'More Products and Services, then 'Apple ID', then 'Other Apple ID Topics' then 'Forgotten Apple ID security questions'.

  • Need information about some address fields in DQXI

    I need to know the 'Content type' and 'Data field name' of the following address fields in DQXi
    1. Alley
    2.Building
    3. HouseNumber
    4. HouseSuffix
    5. Lane
    6. Pob Line
    7. PobNumber
    8. Section
    9. PrefectureCode
    10.DistrictName
    11.Mail Stop
    12. Postal Code Extension
    13. GeoCode
    14. Outside CityFlag

    Hello Smitha,
    Please post this query to the [Enterprise Information Management|Data Services and Data Quality; forum.
    That forum is dedicated to topics related to Data Integration (Data Integrator, Data Federator, Text Analysis for Data Integrator, Rapid Marts, and Integration for PeopleSoft Enterprise), Data Quality (Data Quality and Data Insight), and Metadata Management.
    The forum is monitored by qualified technicians and you will get a faster response there.
    Also, all BO Enterprise Information Management queries remain in one place and thus can be easily searched in one place.
    Thanks a lot,
    Falk

Maybe you are looking for