How to set up a wait for input system.

hi :)
gui.addClientText("Please input an ip: ");
String ip = gui.returnLastUserEntry();Basically in between the 2 lines shows above i needthe program to wait. As you can see at the moment its simply asking for an input but no waiting, its instantly assuimg 'ip' is an unassigned value.
As i write this im assuming im going to have to create a new method to give extra functionality too addClientText, in the form of waiting for a user input.
This is my addClientText method
    public void addClientText(String clientText)
        textArea.append("From Client: " + clientText + newline);
        textArea.setCaretPosition(textArea.getDocument().getLength());
    }This is my return user thingy method
    public String returnLastUserEntry()
        return text;
    }This is how it works
    public void actionPerformed(ActionEvent evt)
        text = textField.getText();
        textArea.append("From User:" + text + newline);
        textField.selectAll();
        textArea.setCaretPosition(textArea.getDocument().getLength());
    }Is there any type of wait for this method to be called before continueing command? I raelly have no idea how to continue, i can paste more code if it would help anyone help me :)
Thanks in advance.

i have something working now, seems i just needed to
write out the problem to realise a soloution.
        gui.addClientText("Please input an ip:
do
ip = gui.returnLastUserEntry();
while(ip == null);
gui.addClientText("Please wait for connection
nnection to be established.");was my soloution, although not ideal itll work.That doesn't work. No one would write that style of code in Java GUI programming.
Use convenience dialog like JOptionPane instead, or, write your custom modal dialog for
getting user text input, IP or whatever.

Similar Messages

  • How to set default email address for input

    G'day all
    Summary: I'm sick, it's difficult to type, and a combination of autocorrect, default Shift key settings for input fields and my iPad completely ignoring my default email account is making it laborious to input my email address. Help!
    (Edit: I had a micro-brainwave and checked my "Me" card in Contacts, since I have Safari set to autofill from that card. My default email address is not listed first in the card. I've now put it on top, Gmail second and "me.com" last. I'll comment later on if I see this help with point 3 below.)
    Details:
    I love my shiny new iPad2. I really do. But autocorrect is driving me crrrrrazy when I try to input my email address.
    Typing in general is an issue for me, because I am disabled and have difficulties with coordination and movement. On my laptop (MacBook Pro mid 2009), I used TextExpander. It lets you set an abbreviation for any text, so you can just type that abbreviation instead of the whole thing, and TextExpander automagically inputs the whole thing for you.
    I have a long email address, because my ISP has quite a long domain name. So only typing 4 characters (my abbreviation) instead of the whole 23 characters was a big help for me.
    Enter the iPad.
    I need to use the iPad now, because my laptop is now too heavy for my legs (and I do occasionally need a full-on laptop, so the MacBook Air isn't the solution). The iPad in general has been great for me. The simplification of the interface (while annoying at times, e.g. not being able to view full headers in an email) saves brain cycles, so I can read for longer.
    However, where on my laptop I only needed to input 4 chars for my email address, on my iPad I have to input the whole 23 chars. How many places online are you asked to input your email address? Way too many. Safari may eventually catch up and record some of them, but currrently, I'm using too much of my day's energy just on trying to input my email address. (Note: this post is written on my laptop, so I can use my abbreviations.)
    TextExpander is available for iOS, but due to Apple's current refusal to allow integration with its apps, TextExpander isn't allowed to input stuff directly. Just like with the indispensable password program 1Password, you have to switch from Safari to the other app., search for and select and copy the text you want, then switch back to Safari, select the field and press Paste.
    Grrr.
    I may get desperate enough to go through those steps each time, if things don't improve with my email address. My problems are:
    1. Very few email-address fields in webpages currently have the appropriate settings to instruct the iPad keyboard not to start with the Shift key down. This means every time you try to input your email address, it will start with an upper-case letter.
    Half the time I don't notice until I've got part-way through typing my address, so I have to delete all those chars and start again. About a quarter of the time, after deleting, I don't notice that the Shift key has been activated again, so I go through the whole process again.
    2. Even when the email-address field turns off the Shift key, or when I remember to do it myself before entering text, autocorrect will insist on changing the first letter back to upper-case, because my username is also my first name. Cue more deleting and getting confused.
    3. This is the big one: once my username is up there, autocorrect insists on entering my "me.com" email address. This is the email address I use least. When I laboriously (again) delete this text and start again, it will either insist again on "me.com", or input my Gmail address. That is the email address I use second least. Autocorrect never inputs my main email address, set as my default account in the Mail-Con-Cal Settings. (This is a POP-only account.)
    4. Even if I do manage to input my whole email address correctly, autocorrect will insist on capitalizing the first letter of the domain name (which is also a location). Cue yet more deletion and retyping.
    Are there any ways to avoid wasting so much energy on trying to input my email address?
    Is there any way to set the default input email address? Or to tell the iPad/Safari that an email address field doesn't require the Shift key?
    I've had my iPad for nearly three months now, using it for my day-to-day activities, and I've been hoping this problem would gradually go away, that the software would finally catch on to my main email address (from the default account) which I have input over and over (and OVER) into email-address fields.
    Evidently not.
    Any ideas?
    Thanks in advance for any help you can offer.

    As Roosevelt suggested, you can turn off Auto Correction in the keyboard settings. Go to Settings>General>Keyboard>Auto Correction>Off.
    This will also turn off spell check (unfortunately) and there is no fix for that. Auto Caps can also be turned off as well and so can the keyboard shortcut for the space/period. Frankly, all of these features drive me nuts and I wish the iOS allowed for more control, but it does not.
    As fars as typing your email address, be aware that even if you type your email address in all caps it still works. So if Autofill insists on capitalizing the first letter in your name in the email address - and it will insist on doing so - you can just let it go as is and it will still work. Doesn't really get to the heart of the matter but it would save you the laborious deleting and retyping.
    Having said that, when the Auto Correction suggests a word or wants to set a capital latter, you can tap the "x" in the pop up suggestion to ignore that word, cap, whatever. The dictionary is then supposed to "learn" your word if you refuse that suggested word enough times. This is another feature that seems to have a mind of it's own at times since sometimes it may take more than a few attempts to get the Auto Correct to not come up and instead allow your chosen word to be freely typed as desired.
    Lastly, with regard to your correct email address popping up, that is another case of if repeated time and time again, It should be another case of the iOS "learning" through repetition that your default email should popup when you begin entering the address.
    You could try to rectify all of this by resetting all of your settings and clearing Autofill but you would be starting all over again which is something I think you would rather avoid.
    Settings>General>Reset>Reset All Settings
    Settings>General>Reset>Reset Keyboard Dictionary
    Settings>Safari>Autofill -tap names and passwords>Clear all
    As Roosevelt suggested, submit feedback, and I hope you find some resolution to this.
    Quick Note - I originally typed this post on my iPad and when I read a few of the words that were substituted by auto correct - I quickly turned to my iMac to change the words. I do feel your pain with regard to auto Correct!
    Message was edited by: Demo

  • How to set mask in web dynpro input fields

    i am looking for how to set mask in web dynpro input fields.
    Please suggest

    Argha,
    As Maksim suggested, read my weblog -- it is an exact answer for such "masking" (/people/valery.silaev/blog/2005/11/29/800format-your-way)
    Next, you may not add custom js files to WebDynpro and change the way WD processes client input, so there is no way to force user to type only digits and to insert hyphens automatically.
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • I just upgraded to garageband 10.0.2 and I don't know how to set up a mic for recording via USB

    I just upgraded to garageband 10.0.2 and I don't know how to set up a mic for recording via USB

    Connect your USB mic or USB Audio Interface to an USB port.
    Create an new Audio Track from the Tracks menu > New Track.
    Select "Audio > Record using a microphone ...."
    Click "Details" to reveal the Input sources.
    Click "My instrument is connected with..." to open the GarageBand Preferences "Audio" tab and select your microphone as Input device.
    In the Track menu > Track Header enable "Show Record enable" button.
    Enable this button for your vocal track.
    Open the Library pane to select a vocal patch your new track.

  • SRM 4.0- How to set the default values for product type (01) only for SC

    The radio button “Service” should not be visible.
    Also for search help (e.g. search for internal products) where a search should only be possible for product type 01 (goods). The system should not display the product type and internally always search for goods only.
    How to set the default values for product type (01) only for SC
    We needs to use Search help BBPH_PRODUCT which having parameter PRODUCT_TYPE
    Here we can set defalut value 01 but it is not correct one since same search help is using several places.
    We need to limit the search help results only for SC.
    Kindly help out me ASAP.

    The easiest way to set defautl values is to edit the batch class.
    Goto the characteiristic and go to update values.
    In here you probably have something like 0 - 100 as a spec range.
    On the next line enter the default value within this range.  At the end of the line, click in the box in the column labelled "D".  This indicates the defautl value for the characteristic.
    If you need to you can do this in the material classification view as well.
    Just to be clear, these values will only show up in the batch record.  You can not have defautl values in resutls recording screens.
    FF

  • How to set up automatic payment for the purchase order

    Hi, All,
    I have one question how to set up automatically payment for the Rent Office purchase Order?
    There is the requirement from the client. They want to create one kind of purchase order for the Office Rent, then pay the fees in the certain time of every month to the vendor for the rent fees without any invoice. Whatu2019s the normal solution for this kind of purchase order? Is it ERS? Or something else?
    Please give me the details and business flow. Also please tell me how to setup in the SAP and T-code.
    Thanks in advance

    Either you can set up ERS or you can pay directly from the FI side.
    Prerequisites
    Evaluated receipt settlement must be flagged in the purchase order item.
    The vendor must be flagged as being subject to ERS in the vendor master record.
    The goods receipt must refer to a purchase order.
    Goods-receipt-based Invoice Verification must be defined for the purchase order item.
    A tax code must have been maintained in the purchase order item.
    The order price of the materials may not be an estimated price.
    If you flag a vendor as being subject to ERS, the system sets the ERS indicator as a default in each item when you create a purchase order for the vendor. You can prevent this happening for certain vendors by flagging the info record for the material and the vendor as not being subject to ERS.
    In Purchasing, you can delete the default ERS indicator in a purchase order item.
    Choose Logistics Invoice Verification ® Automatic Settlement ® Evaluated Receipt Settlement (ERS).
    The selection screen appears.
    You can use the following criteria to narrow down selection of the transactions to be settled:
    Company code
    Plant
    Goods receipt posting date
    Goods receipt document
    Fiscal year of the goods receipt
    Vendor
    Purchase order and order item
    You can define the selection criteria for the invoice documents by:
    Delivery
    Purchase order
    Purchase order item
    Goods receipt document
    Credit memo
    Invoice
    Currency
    Choose  Execute.
    The system issues a log for Evaluated Receipt Settlement, which displays the following:
    Settled
    In line with your selection criteria, the system displays all the order items that were settled (or if you are working in test mode, which would have been settled).
    Could not be settled
    In line with your selection criteria, the system displays all order items for which ERS is defined but could not be settled. It also lists the reasons.
    If the system reports being unable to invoice a transaction, you should exclude the transaction from ERS to avoid it being included in the log the next time ERS is run.
    Select the item and choose Exclude from ERS.
    The system also generates and possibly sends a message to inform the vendor(s) about the transaction settled, depending on the settings in Customizing.
    You can display the following environment information for the order items selected. To do this, choose Goto ®:
    Display purchase order
    Display invoice
    Display material document
    Display long text

  • How to set up Airport Extreme for 11ac and 11n?

    I have just purchased the new Airport Extreme (August 2014) because Apple's website states
    Simultaneous dual-band support.
    AirPort Extreme features simultaneous dual-band 802.11ac Wi‑Fi. That means it transmits at both the 2.4GHz and 5GHz frequencies at the same time. So no matter which band your wireless devices use, they’ll automatically connect to the best available band for the fastest possible performance.
    I have number of Macs in my home from a new MacBook Pro with Mavericks to a Macbook Air with Snow Leopard (due to required software) and iPads.
    So after setting up the new Extreme my new MacBook only accesses 11n as does my older Macs. I checked by holding down the option key while clicking the WiFi icon at the top of my Mac. Well, not so automatic then as I was expecting 11ac and 3 times faster access (as stated by Apple).
    I then looked for some documentation for setting up but cannot find anything.
    Hence my question here.
    How to set up Airport Extreme for 11ac and 11n simultaneously?
    At present the new Extreme is no better than my previous 2 year old one.
    Thank you.
    Michael

    How to set up Airport Extreme for 11ac and 11n simultaneously?
    Assuming that it is operating correctly, 802.11ac and 802.11b/g/n are broadcast simultaneously by default.
    Simultaneous dual-band support.
    AirPort Extreme features simultaneous dual-band 802.11ac Wi‑Fi. That means it transmits at both the 2.4GHz and 5GHz frequencies at the same time. So no matter which band your wireless devices use, they’ll automatically connect to the best available band for the fastest possible performance.
    That is advertising. The real information is usually found in the small and hard to read footnotes:
    Based on theoretical peak speeds. Actual speeds will be lower.
    AirPort Extreme is based on an IEEE 802.11ac draft specification. Performance based on comparison with Apple’s 802.11n products. Comparison assumes AirPort Extreme network with 802.11ac-enabled computer. Speed and range will be less if an 802.11a/b/g product joins the network. Accessing the wireless network requires a Wi‑Fi-enabled device. Actual speed will vary based on range, connection rate, site conditions, size of network, and other factors. Range will vary with site conditions.
    Since the 802.11ac signal is being broadcast only using the 5 GHz band, some users report that they have had better results by using the option to assign a different name to the 5 GHz band, and then pointing their Mac to that specific signal or network. You may want to try that option.
    But first as a test, please locate the MacBook Pro about 10-15 feet or 3-4 meters from the AirPort Extreme with clear line-of-sight between the two devices. Restart both the AirPort Extreme and the Macbook Pro and then check to see if the Mac is connected to an 802.11ac signal.
    If not, please power off your other wireless devices...computers, mobile devices, etc. temporarily, and try the same test again.
    Please report on your results.

  • How to set-up a Timestamp for BI Delta Load in 0CLM_INVOICE datasrc at R/3?

    Hi Experts,
    Kindly let me know How to set-up a Timestamp for BI delta load at R/3 for the Data source 0CLM_INVOICE ?
    Since the Timestamp for Upload of BI Delta is " . . : : ", we are not getting any delta value to BW.
    I would like to know in where we need to maintain the DATE & TIME to fix the above problem.
    Thanks.
    Regards,
    Jayaprakash J

    Dear Jayprakash,
    Chech the below links, it may help you in your case :
    Re: 0FI_AA_11 Delta load failure
    http://wiki.sdn.sap.com/wiki/display/BI/GeneralErrorIn+BI
    Actaully you need not have to maintain the timestamp. Just try to replicate your datasource and the try to load the delta again.
    Hopefully it will work.
    Regards,
    Rahul
    Edited by: Rahul on Dec 10, 2010 10:23 AM

  • How to set a default value for particular field in SRM PO Portal

    Dear Gurus,
    Im desparetly need a help in web dynpro on how to set a default value for a field(flag) in PO header tab in portal.
    My requirement is whenever the user press the edit button in PO screen,automatically a flag field should be set as abap_false.
    I dont think this will handle in check badi or change badi. i tried this part in onbuttonpressed overwriteexit in CNR_VIEW views,i can get the function EDIT in debugging mode,but dont know how to proceed further.....
    Many of them suggested to go with get attribute and set attribute for changing any particular field in web dynpro,but im not very familiar in using those get and set attributes.I request you people can give me sample code on how to identify my target field in the node and set the values while pressing EDIT Button.
    Thanks in advance...
    Regards,
    Sathish

    Dear Laurent,
    Thanks for your response,
    But i searched in enhancement spot of WD_BADI, but couldnt get the exact way to change the coding,
    My real requirement is, that particular flag should be enable and disable dynamically by checking a condition in my header values.So in that case i dont know how to proceed further to handle in the PO screen.
    Kinly guide me how to get the particular node of field in the Purchase order screen.
    Thanks you in advance,
    Sorry for the inconvenience if any
    Regards,
    sathish

  • How to set a new value for formula field in crystal reports xi?

    <p>How to set a new value for formula field in crystal reports xi?</p><p>//formula</p><p>{@description}</p><p> </p><p>exemplo in VB6</p><p>crxSubreport.FormulaFields.Item(1).Text =  "&#39;Subreport Formula&#39;"  or</p><p>crxSubreport.FormulaFields.Item("description").Text =  "&#39;Subreport Formula&#39;"</p><p>How to in JRC?</p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p>

    Hi,
    This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
    Regards,
    <p>Blair Wheadon</p>
    <p>Product Manager, Crystal Reports</p>

  • "I would like to know how to set the default view for the columns. Somewhere I read it could be done in by music icon under Library.  Can't find it.  Thanks

    "I would like to know how to set the default view for the columns that are shown in iTunes. Every time I open it, I have to either go to the options, or right-click to get the pop-up options, and delete "rating" and add "composer." I'd really like to just do it once and be done with it."  Somewhere I read you could do this by clicking on the Music icon under LIBRARY then arramge the columns.  Trouble is, I can't find a Musi Folder or icon in my user library.
    Any help would be appreiated.  OSX 10.9.2  iTunes version 11.1.5  Thanks!!! CW!

    From the iTunes menu bar try View>Show View Options.  Make sure what you want to see is checked and what you don't is unchecked.  You can do this (may need to do this) for any playlists, your main Library, etc.
    Good luck
    srb

  • How to set the AS2 fileName for outbound Functional Ack 997 auto generated by Oracle B2B

    Hi Friends,
    How to set the AS2 fileName for outbound Functional Ack 997 auto generated by Oracle B2B.
    External Trading Partner is sending the EDI 856 via AS2 URL to our Oracle B2B Server.
    In the inbound 856 agreement, we have checked the option of Funtional Ack and also Functiona Ack handled by B2B is yes.
    We have the outbound agreement which is sending that Functional ack 997 (auto generated by oracle b2b) and we have specified the Outbound AS2 channel of the Partner.
    997 doc is being sent to external partner using AS2 channel, but the filename is generating as '40101'.
    Please can you let me know how to set the AS2 fileName for outbound Functional Ack 997 auto generated by Oracle B2B.
    Appreciate your valuable answers!!
    Thanks,
    Amirineni

    Amirineni,
    AFAIK, there is no option to set the file name when the 997 is generated automatically by B2B.
    Alternatively, if this is a must requirement, you can generate the FA from backend and  send to B2B with MSG_TYPE =9. In this case, you can set the header with filename (How to set the actionname property in B2B 11g)

  • How to set a date range for date field ?

    Dear Experts,
    Scenario:
    I have a query in validating the date field in my BSP application. My application is for maintain infotype 0023 Other/Previous Employers online by employees in the company.
    As per our design we are maintaining the all employment details of the employee both ( with in the current company / previous employment outside the company) in the same infotype.
    Every employee will have a hiring date within the SAP HR system. We consider this date as the cutoff date between current and previous employment in our application. When the employee updating the details wia BSP page I need to check the following.
    Record inside current company: Validation that, the user should only able to enter BEGIN DATE (BEGDA)  greater than or equal HIRING DATE and END DATE(ENDDA) should be greater than FROM  DATE (BEGDA).
    Record outside current Company: Validation that, the user should only able to enter BEGIN DATE (BEGDA)  less than or equal HIRING DATE and END DATE (ENDDA) should be greater than FROM  DATE (BEGDA) and less than HIRING DATE.
    Technical Requirement:
    How to set a date range for date field, i.e. how we can limit the date range in a HTMLB date field? Can this it be achieved via standard functionality of HTMLB?
    Following is the code to describe date field in my application.
        <htmlb:inputField id= "ENDDA_NEW_IN"
                          type= "date"
                    doValidate= "TRUE"
                      showHelp= "TRUE"
                      disabled= "FALSE"
                         width= "183"
                         style= "cssTextAreadate"
                         value= "<%='99991231'%>"/>
    Thanks a lot in advance for your assistance and help.
    Cibinu2026
    Edited by: cibin kuruvilla on Nov 12, 2008 11:13 AM

    Hi,
    This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
    Regards,
    <p>Blair Wheadon</p>
    <p>Product Manager, Crystal Reports</p>

  • HOW TO  SET A DEAFULT  VALUE  FOR A FIELD?

    hi friends
      i have doubt..how to  set a default  value for a field..say  like in  local printer field i always want  lp01 to  be displayed defaultly..when i  click  F1  in that  field i  get the parameter id ..i  know there is something  dealt with that  parameter id..how can i  set that  default value ..in the case of the default  printer value i made in  own data settings as lp01 but  how to  do it  normally  for other  field which has parameter id ??????
    thanks and regards
    prince

    Hi Prince,
    u can set the default value in abap as given below
    SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN SKIP 1.
    PARAMETERS : S_BUKRS TYPE BSID-BUKRS OBLIGATORY DEFAULT '1000'.
    PARAMETERS : S_BELNR TYPE BELNR_D OBLIGATORY DEFAULT '1600000070'.
    PARAMETERS : S_GJAHR TYPE GJAHR OBLIGATORY DEFAULT '2008'.
    PARAMETERS : ASON TYPE BUDAT OBLIGATORY DEFAULT SY-DATUM.
    PARAMETERS : S_KUNNR TYPE KUNNR MODIF ID GP1.
    PARAMETERS : S_LIFNR TYPE LIFNR MODIF ID GP2.
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN : END OF BLOCK B1.
    or
    u can give the default value in INITIALIZATION also.
    vlue = '1000'.

  • How to set the Default values for Info Objects in Data Selection of InfoPac

    Hi All,
    Flat file Extracion:
    How to set the Default values for Info Objects in Data Selection Tab  for Info Package
    ex: Fiscal Year Variant  Info Object having values 'K4' 'Y2' etc  in Flat file
    Initially  default value(not constant)  for this info Object value should be 'K4'  in Info Package
    If I set data selection value for this info object K4 it will retreive records with this selection only? how to handle
    Rgds,
    CV

    Hi,
    suppose as your ex. if you are having fiscalyear variant in the dataselection tab then specify K4 in the from column, again the ficalyearvariant row and click on insert duplicate row at the bottom . you will get another row . In that enter Y2 in the from column. now you can extract K4, y2 values .
    haritha

Maybe you are looking for