Have java rpint a question n cmd and use the answer in the code?

Is their a way to have java print like
How are you doing? and then have the person type in Im fine
then have java print Im glad your fine, im fine too?
Like using w/e they say in the java?

Ok here is what i have so far. This is just an applet.
now what i want to do is somehow setup a user input string or dropdown list like u said. And what ever they input or select replaces all the "po4"s in that appelt.
import java.net.*;
import java.awt.*;
import java.applet.*;
import javax.swing.*;
import java.util.Properties;
public class Load implements AppletStub {
   private static Properties params = new Properties();
   private static JFrame frame;
   private static JPanel game;
   private static String client = "client";
   public static void main(String[] args)
   new Load(args);
   public Load(String[] args)
   try{
   System.out.println("Starting Up Applet, Please Wait");
   long timeToTake = System.currentTimeMillis();
   URLClassLoader loader = new URLClassLoader(new URL[] { new URL("http://po4.runescape.com/runescape.jar") });
      Class c = loader.loadClass (client);
      System.out.println("It Took " + (System.currentTimeMillis() - timeToTake) +  "ms To Update the Bot");
      System.out.println("Loaded " + c);
      Applet app = (Applet)c.newInstance();
      System.out.println("Created a new Instance of " +c);
      System.out.println("Loading Applet, Setting Stub to this");
            app.setStub(this);
            frame = new JFrame("Krrose27 RuneScape Load");
            frame.setResizable(false);
            game = new JPanel(new BorderLayout());
            game.setPreferredSize(new Dimension(765, 503));
            game.add(app);
            frame.getContentPane().add(game, BorderLayout.CENTER);
                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.pack();
      frame.setVisible(true);
      System.out.println("Applet Initialized");
      app.init();
      app.start();    
      System.out.println("Applet Started\n\nBot Took " + (System.currentTimeMillis() - timeToTake) + " To Fully load the applet");
      }catch(Exception e){}
       public URL getCodeBase()
           try{
               return new URL("http://po4.runescape.com");
           catch(Exception e){
               return null;
       public URL getDocumentBase()
             try{
             return new URL("http://po4.runescape.com/lang/en/aff/runescape/game.ws?lowmem=1&plugin=0");
             catch(Exception e){
               return null;
    public String getParameter(String name) {
            params.setProperty("worldid", "4");
                params.setProperty("members", "0");
                params.setProperty("modewhat", "0");
                params.setProperty("modewhere", "0");
                params.setProperty("lowmem", "1");
                params.setProperty("lang", "0");
        return params.getProperty(name);
    public AppletContext getAppletContext() {
        return null;
    public void appletResize(int i, int i1) { }
     public boolean isActive() { return false; }
}Message was edited by:
krrose27

Similar Messages

  • I have a iMac destop 10.6.2 and use the AOL Mail web site with your Firefox Browser. It has worked great for years. I update the firefox to 6.1 and now I cannot send images using the Firefox browser. With Safari browser it works fine.

    I use AOL mail - http://www.aol.com/ with my Firefox 6.1 browser. Before updating aol mail worked great with firefox for years. Now when I try to send ( upload) messages with a file or images I always get the reading " there was a technical problem and I should try again". Messages with NO files or images go through just fine. I have cleared the Firefox history, the cache and cookies and the problem remained the same. The question is does this problem have something to do with the latest update ? AOL are still only familar with the 3.6 Firefox versions. Thanks

    Well I guess I was too optimistic. Since last posting I have had three hang events, one during reboot. When the login dialog box came up I clicked on it and it hung.
    However I do have a new data point. I have enabled the remote login (sshd). I have discovered that when the system hangs like I described above, I can still log in via SSH from my Windows system. The shell appears normal, but when I tried a "killall Safari" command the OS crashed hard. After a hard reset, the system hung during the login process. Again I could login remotely, and that time I executed a "sudo reboot" via the remote session. That cleared the display to all-blue but did not successfully reboot.
    Can anyone suggest what to try via the remote login to help diagnose what is happening? I am familiar with typical Linux architecture but the differences in Mac OS X are leaving me a bit disoriented.

  • Creating a Master virtual hard disk and using the same for all other VM's

    Hi,
    We would like to create a master virtual hard disk and use the same for all other VM's. Can we do that ?
    my requirements :
    1) create 10 VM's
    2) first create a master virtual hard disk with win OS and use the same to create the 10 VM's.
    3) After creating the VM's change the HDD size.
                  -- if i have created master virtual disk with 500GB , and use the same for creating a virtual machine. can we change the HDD size to 1TB ?
    After creating the VM's ,i will change the system names and activate the windows accordingly.
    Will there be any implications ,if we can/will do like this.
    Thanks.

    Hi Suren424,
    I think Using Differencing Disks may cover your needs .
    Please refer to following setps:
       "Create the Parent Virtual Machine Configuration and Virtual Hard Disk
        Install the Operating System, updates, and common software
        Generalize the installation
        Prepare the parent virtual hard disk
        Create the differencing disks
        Create virtual machines that use the differencing disks
    For details please refer to follwing link:
    http://social.technet.microsoft.com/wiki/contents/articles/1393.hyper-v-virtual-machine-vm-parent-child-configuration-using-differencing-disks.aspx
    Hope this helps
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • I don't have a question so much as a comment for APPLE. I am a new iPhone 5s user and it has many things I like but It is too small and I can only talk on the phone and use the internet if i am in a position to use a wifi connection and that is not good

    I am a new iPhone 5s user. I like many of the features it offers. I don't like that I cannot talk and use the internet (if I am away from WI-FI) and this phone is too small. I am actually thinking of returning it and going back to an Android. After all the hassle it took to get all my stuff working on this phone , it may be worth the switch. This phone needs to be able to multitask freely in this day and age. Also Safari is not the best search engine but I could work with it if I could talk and use it at the same time. I use my phone for business and this is a feature that is needed in my line of work.

    TJBUSMC1973 wrote:
    The iPhone is working, as designed and advertised.  In this case, the user failed to educate themselves properly, either by proper research or asking the right questions, before purchasing the device.
    I understand that the OP failed to do research. But then, I wasn't replying to the OP. I was replying to Chris. I have Verizon. I can talk and use data at the same time with my Droid Maxx. Therefore, the problem is not just with the network. It would be technically possible for an iPhone to do that on Verizon/Sprint if Apple had chosen to use a different chip, such as the kind other phone manufacturers have elected to use.
    Of course, this is probably all irrelevant to the OP's issue. It was merely a point of clarification, especially for those people who are used to being able to use both voice and data at the same time on Verizon. When they switch to an iPhone, they are often surprized at the limitation.
    Best of luck.

  • HT204023 si slive in a house with 2 IPhone's and both have hotspots. My question is can we change the name of the network so we can identify them?

    si slive in a house with 2 IPhone's and both have hotspots. My question is can we change the name of the network so we can identify them?

    change iPhone name in your iTunes. click device on the left tab, and hold enter to change iPhone name

  • I just reinstalled and this is the question that show "You have made changes to your photo library using a newer version of iPhoto. Do you want to quit and use the latest version of iPhoto, or do you want to create a new photo library?"  what do i do next

    I just reinstalled and this is the pop up that shows "You have made changes to your photo library using a newer version of iPhoto. Do you want to quit and use the latest version of iPhoto, or do you want to create a new photo library?"  what do i do next? it just keeps popping up and loading but only gives a quit button?

    Update it.
    How old is your Mac? If it's very recent you need to update via the App Store
    If you purchased at the App Store you need to update via the App Store
    Otherwise you update via Softare Update
    Regards
    TD

  • Get question id's and its corresponding answer id for given Doc id's

    Hi,
    I am trying to write a program which gets the  Equality values (Questionaire - Erecruiting) like :
    1) Gender
    2) Care Resp
    3) Care Type
    4) Ethnic Origin
    5) Religion
    6) Disability
    7) Sexual Orientation
    8) Age Range
    And move it to an internal table which has each Equality as a field.
    I referred to the following tables in order to get the question id's and its corresponding answer id's for questionaire.
    1) hrp5141
    2) hrp5125
    3)T77RCF_INFDAT
    And i tried to fetch the equality data using the class CL_HRRCF_QA_BL. This class returns the values from hrp5141. It also returns the object id, answer id and answer text. CL_HRRCF_QA_BL class also intern calls the function module HRHAP_DOCUMENT_GET_DETAIL, which gets the set of questions and its answers. But this question id's and answer's differ for document id's (QA_DOC_GUID).
    Here the problem is the object id for Doc id's (QA_DOC_GUID) are differing.
    Example 1: I have taken first QA_DOC_GUID - BF2C554821CFBFF180C5DKDINGKGNSKE as input to check its question and answer using CL_HRRCF_QA_BL class.
    The question id is here I am assuming is 20366558 and the corresponding answer id is 20368559 for Gender.
    Example 2: I randomly picked one more QA_DOC_GUID - BAS06AE4533374F1B3CF0018F346808A. The question id here is 50368915 and answer id is 50368918 for gender which is different from the first example.
    I am not able to decide on other fields as the answers for it could be generic viz., YES, NOT, Prefer not to answer etc. Whereas Gender holds the value of either Male, Female or Prefer not to answer, Religion holds Religion name or Prefer not to answer value and similarly Age holds the age range or Prefer not to answer value.
    Can anybody suggest on how to get the equalities values (the question id's and its corresponding answer id's).
    Appreciate quick response.
    Thanks in Advance.
    Thanks and Regards,
    Rashmi

    Hello RichR,
    To setup an iCloud account, you don't need an existing email address. Take a look at this article which contains more information about iCloud email:
    iCloud: Mail overview
    When you set up iCloud with a new Apple ID that doesn’t use an existing email address, your new Apple ID ends with @icloud.com and is the email address for your free iCloud Mail account. If your Apple ID doesn’t end with @icloud.com, @me.com, or @mac.com, you must set up an @icloud.com email address before you can use iCloud Mail. 
    If you already use iCloud Mail with an @mac.com or @me.com email address, you also have an @icloud.com email address. You have an @icloud.com equivalent for every active @me.com or @mac.com email address or alias that you have as part of your account. 
    After you set up your iCloud Mail account, you can sign in to icloud.com/#mail and start using iCloud Mail on the web right away. To use iCloud Mail on your devices, you must set it up on each device. For more information, see Set up iCloud Mail on your devices.
    Thank you for contributing to Apple Support Communities.
    Take Care,
    BobbyD

  • I have set form fields as User required and yet the form still prints/save when empty.

    I have set form fields as User required and yet the form still prints/save when empty. I also have an email button on the form but that works correctly by not allowing the user to email the form with the required fields empty.
    What script do I need to additionally restrict both printing and saving if the required fields are empty?
     You would think that just setting that option would restrict those functions the same as it does for the email button. 
    Please be specific with your response if you are gracious enough to offer one. I have been searching the forum all morning for the answer to this and I really didn't understand any of the solutions offered to others enough to use those in my own form.
    The required fields are:
    Social (social security number)
    Name
    Headquarters
    Residence
    The next question I have is if there is a way to make individual signature fields mandatory if they are digital signatures?
     In other words, I don't want the individual to be able to email the form to the next person if he/she hasn't applied their digital signature.

    Saving can always be done, even when mandatory fields are empty.  This is by design.  And that is correct.  Suppose you have a big form and 2 people need to fill it out.  How can you fill out a first part and then send it to the second person without saving.
    Same for printing.  Same for your signature fields.
    What I would do, is to put a "watermark" on the form that you show on preSave and prePrint if the form is incomplete.  Just a static text on your form.  Then the user will see that they need to do more.  Also, on preSave and prePrint, you can show a warning popup to tell the user about the missing fields.  You can then still cancel their action if the user decides not to save/print anyway.

  • Could not save Preferences because the file is locked, you do not have necessary access permissions, or another program is using the file. Use the 'Get Info' command in the Finder to ensure the file is unlocked and you have permission to access the file.

    I have this massage every time close ps cc
    Could not save Preferences because the file is locked, you do not have necessary access permissions, or another program is using the file. Use the ‘Get Info’ command in the Finder to ensure the file is unlocked and you have permission to access the file. If the problem persists, save the document to a different file or duplicate it in the Finder.

    You may get better help in Photoshop General Discussion
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll
    If FINDER means Mac, read below (and try to give more information when asking a question)
    Mac 10.9.3 workaround https://forums.adobe.com/thread/1489922
    Enable Mac Root User https://forums.adobe.com/thread/1156604
    -more Root User http://forums.adobe.com/thread/879931
    -and more root user http://forums.adobe.com/thread/940869?tstart=0

  • I live in the country. I have ADSL but it is slow. I have just upgraded to Adobe Creative Cloud and downloaded the installer. After three attempts to install I give up because the installer has too! What do I do now?  Joan McGovern, Camilo Enterprises, Au

    I probably should not have asked this question at this time as I need to go to bed. It's 11.34 pm. I do hope someone has an answer because I feel very dudded, having finally decided to join the Adobe cloud!

    either
    1) have someone else download for you and send you the installation files on a usb stick
    2) find a better connection yourself and download to a usb stick
    3) use your current connection and a download manager to download the installation files.
    in all cases, use the the direct downloads,
    Downloads available:
    Suites and Programs:  CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  12 | 11, 10 | 9,8,7
    Lightroom:  5 | 4 | 3
    Captivate:  7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • I have an 27 inch apple iMac 2010. Can I upgrade by buying a Mac book pro and use plug in and use the iMac as a screen only?

    I have an 27 inch apple iMac 2010. Can I upgrade by buying a Mac book pro and use plug in and use the iMac as a screen only?

    Yes your 2010 supports Target Display Mode using MiniDisplay Port input.
    check out FAQ #4 > Target Display Mode: Frequently Asked Questions (FAQ) 

  • I have a fully paid subscription to CC and use of installed programs but I can no longer sign in to CC. It repeatedly says "You've been signed out". I have the need to install another program but I can't sign in.

    I have a fully paid subscription to CC and use of installed programs but I can no longer sign in to CC. It repeatedly says "You've been signed out". I have the need to install another program but I can't sign in.

    Sign Out When Sign In http://forums.adobe.com/thread/1450581?tstart=0 may help
    -and http://helpx.adobe.com/creative-cloud/kb/unable-login-creative-cloud-248.html

  • HT201272 I have always had and used the same Apple ID, so where are the rest of the songs I bought from itunes? I've bought at least 400 songs and I only am being able to download 178. Where are the rest of my purchases?!

    I have always had and used the same Apple ID. I have changed credit card information on my Apple ID account several times though. Does that make a difference when downloading past purchases? I'm very angry at Apple and Itunes because I have been using itunes since 05/2005 and I do not have even close to the amount of songs and albums that I have purchased from itunes. If the credit card info does make a difference even though the account is the same one then itunes needs to make sure to notify users of this because I am not the only one who is wondering this same thing. I have numerous friends who i've talked to about this and they say the same thing, that they too have songs purchased in the past that have disappeared when trying to download past purchased items. It should not make a difference. $12 is $12. Especially since I have ALWAYS used the same account. If itunes does not change their ways, I will not be purchasing songs or anything else for that matter from them ever again. I will go back to buying CDs where I KNOW that it will always be with me and I don't have to deal with this. I will also make sure to find a better more reliable source to download music from and will make sure everyone I know and come in contact with knows what it is and how much better it is than itunes. There should be no experation date on the music I PURCHASE, nor should there be any other little loop holes that allow itunes to rob us of rightfully purchased products. What's the deal itunes?? 

    mannyace wrote:
    Thanks for the response.
    So I basically won't run into any trouble? I
    There should be no issues. Its designed to work like that.  You don't change Apple IDs just because you get a new device.
    mannyace wrote:
    Thanks for the response.
    Is there any chance that the phones can fall out of sync?
    Unlikely. But nothing is impossible.   Though I don;t see how that would happen. As long as both are signed into the Same Apple ID / iCloud Account they will be N'Sync. (Bad Joke)
    mannyace wrote:
    Thanks for the response.
    If I get a message or buy an app or take a photo on the iPhone 5, how do I get those things onto the iPhone 6?
    If you buy an App, you have 2 ways to get it to the iPhone6: If Automatic Downloads is enabled in Settings->iTunes & App Store, it will automatically download to the iPhone 6 when you buy it on the 5 and vice versa if you buy it on the 6, it will download to the 5.
    Alternatively, you can simply go to the App Store App->Updates->Purchased and look for the App there and download it. Purchased Apps will not require payment again. i.e They'll be free to download to the iPhone 6 once purchased.
    SMS Messages will sync over using Continuity as long as they are on the same Wifi network. Otherwise, restoring the iPhone 5 backup to the iPhone 6 will transfer all messages received up until the backup was made onto the iPhone 6.
    Images, can be transferred either through Photo Stream
    My Photo Stream FAQ - Apple Support
    Or any Cloud service you want such as Dropbox, or One Drive.
    mannyace wrote:
    Also, something i forgot to ask initially: Should I update the iPhone 5 to iOS 8 first or does that not matter?
    If you want the Continuity features as explained above you need to update the iPhone 5 to iOS 8. Otherwise its not all that important.

  • I try to open iphoto and it comes up with You have made changes to your photo library using a newer version of iPhoto. Please quit and use the latest version of iPhoto. I have downloaded photo manager and it's telling me to update but it wont update...

    I try to open iphoto and it comes up with You have made changes to your photo library using a newer version of iPhoto. Please quit and use the latest version of iPhoto. I have downloaded photo manager and it's telling me to update but it wont update...

    iPhoto is Apple's included program to manage your photo's and pictures.
    It receives updates over time with Software updates and new machine or iLife purchases.
    When iPhoto gets updated or a newer version is used, it may alter iPhoto support files, but newer iPhoto versions usually always compatible with older files which it then updates.
    If you used a newer iPhoto on your iPhoto support files, then they got altered to the newer format, older iPhoto versions can't read the older format.
    Somewhere along the line you somehow got a older version of iPhoto on your computer, you need to fine the newer version of iPhoto (not this photo manager, sounds like another program)
    Or somewhere along the line you used a newer iPhoto version (like on another Mac) and it altered the iPhoto support files on your older version of iPhoto.
    So the key here is to find the newest version of iPhoto and use that to access your iPhoto support files.
    If you didn't access your iPhoto support files from another Mac, then you should have the newer iPhoto version on your computer.
    Once you find it, and get it in the Dock, you should remove the older iPhoto version from your computer to prevent this from happening again.
    Lastly, if the newer version of iPhoto is somehow gone off your computer, you should be able to get a copy off the latest OS X install disk or iLife using a free program called Pacifist.
    http://www.charlessoft.com/
    Then you need to check for updates for iPhoto in the program itself, the current version is 9.1.2

  • I keep receiving this message "You can't open your current photo library using this version of iPhoto" You have made changes to your photo library using a newer version of iPhoto. Please quit and use the latest version of iPhoto."

    I keep getting this message. What do I do? You have made changes to your photo library using a newer version of iPhoto. Please quit and use the latest version of iPhoto.

    https://itunes.apple.com/ca/app/iphoto/id408981381?l=en&mt=12

Maybe you are looking for