Autofill Applet Form

I'm trying to fill out the form fields in an applet running in a browser from an independent external application. I have no control over the Applet as it is part of a separate application. I've tried screen hopping with the Robot API but this depends on the FIrst input box having keyboard focus when the external. I'd appreciate ideas on how this can be done without screen hopping. Also, how can i make sure the first form element always has keyboard focus.
Thanks

Well I manage to create the form, but I don't know how to make that form disapear/ replace by confimation screen.
In "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { " I could add "Submited Success" at the bottom, But the form is still ther.
I would like the form interface disapear after the button is click, and Label "Submit Succes" is displayed.
My problem is, how to make the form disapear after button is click, as I have no idea on how to do that.
TQ

Similar Messages

  • How can i convert my encrypting file to a applet form to use it in IE?

    Hi, i m a little new in JAVA.
    I searched about encryting methods. And i decide to built a encrypter that reads a string from a textbox and writes the encrypted form to another textbox.. this code is working in eclipse. but i cannot convert this to applet form to use it in internet explorer .. i dont know why this not work. It says : "Applet password notinited" -> How can i solve this problem ???
    Please HELP ME ! Thanks alot..
    package yeni;
    import java.applet.*;
    import java.awt.*;
    import java.lang.*;
    import java.net.*;
    import java.io.*;
    import java.util.*;
    import javax.crypto.*;
    import javax.crypto.spec.*;
    public class password extends java.applet.Applet
         SecretKeySpec keyS;
         SecretKey key;
         SecretKey key_s;
         String encrypted;
         String decrypted;
         KeyGenerator keyGen;
         Mac mac;
         byte[] utf8;
         byte[] digest;
         private Button b_open;
         private Button b_next;
         private TextField t_userID;
         private TextField t_password;
         private TextField re_userID;
         private TextField re_password;
         private Label l_title;
         private String root;
         private int col;
         private String title;
         private String buttontxt;
         private int bgcolor;
         private int fsize;
         private String fface;
         private String errorURL;
         /* Init */
         public void init()
              String att = getParameter("root");
              root = (att == null) ? this.getDocumentBase().toString() : att;
              att = getParameter("textfield");
              col = (att == null) ? 20 : (Integer.valueOf(att).intValue());
              att = getParameter("font_size");
              fsize = (att == null) ? 11 : (Integer.valueOf(att).intValue());
              att = getParameter("font_face");
              fface = (att == null) ? "Arial" : att;
              att = getParameter("color");
              bgcolor = (att == null) ? Color.white.getRGB() : (Integer.parseInt(att, 16));
              att = getParameter("title");
              title = (att == null) ? "" : att;
              att = getParameter("button");
              buttontxt = (att == null) ? "OPEN" : att;
              att = getParameter("wrong");
              errorURL = (att == null) ? "" : att;
              setFont(new Font(fface, Font.PLAIN, fsize));
              setBackground(new Color(bgcolor));
              b_open = new Button(buttontxt);
              b_next = new Button("NEXT");
              t_userID = new TextField(col);
              t_password = new TextField(col);
              re_userID = new TextField(col);
              re_password = new TextField(col);
              l_title = new Label(title);
              t_userID.setBackground(Color.white);
              t_password.setBackground(Color.white);
              t_password.setEchoCharacter('*');
              re_userID.setBackground(Color.YELLOW);
              re_password.setBackground(Color.YELLOW);
    //          re_password.setEchoCharacter('-');
              setLayout(new FlowLayout(FlowLayout.CENTER,3,3));
              if(title.length()>0)
                   add(l_title);
              add(t_userID);
              add(t_password);
              add(b_next);          
              add(b_open);
              add(re_userID);
              add(re_password);
              t_userID.setText("User ID");
              t_password.setText("Password");
              //re_password.hide();
              //re_password.hide();
              show();
         /* Transfer - �ifreleleme */
         void transfer()
              if(t_userID.getText().length()>0)
                   re_userID.setText(t_userID.getText());
              else t_userID.setText("Enter Your USER ID!");
              if(t_password.getText().length()>0)
                   //Calling HMAC Function
                   re_password.setText(HMAC(t_password.getText()));
         /* HMAC Fonksiyonu - �ifreleme */
         public String HMAC(String values){
             String output = "";
             try {
                 //Generate a key for the HMAC-MD5 keyed-hashing algorithm;
                 key =  new SecretKeySpec( "istenen anahtar".getBytes("ASCII"), "HmacMD5");
                 // Create a MAC object using HMAC-MD5 and initialize with key
                 mac = Mac.getInstance("HmacMD5");
                 mac.init(key);
                 // Encode the string into bytes using utf-8 and digest it
                 utf8 = values.getBytes("UTF8");
                 digest = mac.doFinal(utf8);
                 //If desired, convert the digest into a string
                 String digestB64 = new sun.misc.BASE64Encoder().encode(digest);
                 output += digestB64;
             catch(Exception e){}
             return output;
         /* surfto_error Fonksiyonu - Hata durumu */
         void surfto_error()
              if(errorURL.length()>0)
                   try
                        getAppletContext().showDocument(new URL(errorURL),"_self");
                   catch (MalformedURLException e) {}
              else
                   re_password.setText("");
                   showStatus("Invalid password!");
         /* surfto Fonksiyonu - Bilgi Aktar�m� */
         void surfto()
              if(t_password.getText().length()>0)
                   try
                        URL surftoURL = new URL(root+t_password.getText()+".html");
                        InputStream in = surftoURL.openStream();
                        in.close();
                        getAppletContext().showDocument(surftoURL,"_self");
                   catch (MalformedURLException e) { surfto_error(); }
                   catch (SecurityException e) { surfto_error(); }
                   catch (IOException e) { surfto_error(); }
         /* Durum ��leme */
         public boolean handleEvent(Event evt)
              if(evt.id == Event.KEY_PRESS && evt.target == t_password && evt.key==10)
                   surfto();
                   return(true);
              return super.handleEvent(evt);
         /* Eylem ��leme  */
         public boolean action(Event evt, Object arg)
              if (evt.target == b_open)
                   surfto();
                   return true;
              if (evt.target == b_next)
                   transfer();
                   return true;
              return(super.action(evt,arg));
    }

    In method HMAC, you have towards the bottom
    catch(Exception e) {}please change this to
    catch(Exception e)
                e.printStackTrace();
            }Note that using the sun.* classes, including the sun.misc.BASE64Encoder class, requires elevated privileges (see http://forum.java.sun.com/thread.jspa?threadID=483223&messageID=2255882).
    It is not difficult to write your own encoder/decoder class, or borrow one from someone else. Just google on "java base64 encoder".

  • How to increase the size of the applet/ form displayed on the bowser

    kindly guide me how to increase the size of the applet / forms displayed on the browseri.e the width and length of the forms/applet so that i can display all the controls on the form .
    thanks with regards

    i changed the value of width and height in formsweb.cfg file in my devsuite_home/forms/server/formsweb.cfg , i am able to see the result when i compile and run the form in devsuite, whereas the same is not reflected when i run the same form in application server.
    when i tried to change the value of abbovementioned file in oracle_home /forms/server/formsweb.cfg of the application server file , the file does not have the applet wdth and applet height values. in fact this file does not have any applet information..
    pls guide
    thanks with regards.

  • Safari 5.0 AutoFill for Forms not working

    Safari 5.0 has broken the way AutoFill for forms works. I couldn't figure out why it kept entering inaccurate data on forms that I had previously filled out. I have the checkbox next to Other Forms checked (as well as the other two boxes for Address Book and User Names/Passwords). But it seemed to be pulling data from my Address Book INSTEAD of from forms I had previously filled out. To test it, I turned off the Address Book checkbox which resulted in it not AutoFilling anything at all.
    In 4.0 and previous versions, From Forms took priority over from Address Book. That's no longer the case and, in fact, From Forms doesn't seem to be working at all.
    Is there some cache file I should trash, or is this just another 5.0 bug?
    Other observations about 5.0:
    It's visibly slower than 4.0 (on a Mac Intel Core 2 Duo running OS X 10.5.8).
    Some pages refuse to load at all (http://www.radaronline.com/giveaways crashes every time; http://freebieswamp.com/game/index.php and http://tlc.discovery.com/sweepstakes/style-getaway/entryform.html load but their forms don't work; a few other pages just hang)
    Haven't noticed any improvements (and wish I had stuck with 4.0).

    HI,
    Haven't noticed any improvements (and wish I had stuck with 4.0).
    The first link you provided is outdated as far as web standards go. I checked the site with W3C Validator and it came up with numerous errors: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.radaronline.com%2Fgiveaways&c harset=%28detect+automatically%29&doctype=Inline&group=0
    As an aside. Sites with "giveaways" are notorious for malware.
    If it were me, in this case, I would keep Safari 5 for the security and privacy it provides. Reverting to a prior version merely for accessing sweepstakes sites in my opinion is a total waste of time.
    *You can revert to 4.0.5 if you wish but definitely try troubleshooting Safari 5 first.*
    First, go to ~/Library/Caches/com.apple.Safari and move the "cache.db" file to the Trash. ~ (Tilde) represents your Home Folder. Relaunch Safari. *That may make the difference*, if not....
    From the Safari Menu Bar, click Safari / Reset Safari. Select the top 7 buttons and click Reset.
    Relaunch Safari. If it functions as it should, great but if not...
    Go here for trouble shooting 3rd party plugins or input managers which might be causing the problem. Safari: Add-ons may cause Safari to unexpectedly quit or have performance issues
    If it isn't third party plugins, troubleshoot the Safari .plist file.
    Go to the Safari Menu Bar, click Safari/Preferences. Make note of all the preferences under each tab. Quit Safari. Now go to ~/Library/Preferences and move this file com.apple.safari.plist to the Desktop.
    Relaunch Safari and see if that makes a difference. If not, move the .plist file back to the Preferences folder. If Safari functions as it should, move that .plist file to the Trash.
    And if you didn't repair disk permissions after the update was installed, try that.
    Launch Disk Utility. (Applications/Utilities) Select MacintoshHD in the panel on the left, select the FirstAid tab. Click: Repair Disk Permissions. When it's finished from the Menu Bar, Quit Disk Utility and restart your Mac. If you see a long list of "messages" in the permissions window, it's ok. That can be ignored. As long as you see, "Permissions Repair Complete" when it's finished... you're done. Quit Disk Utility and restart your Mac.
    Now if you still want to revert to Safari 4.0.5, that's entirely up to you. Go here for instructions. http://appletoolbox.com/2010/06/downgrade-from-safari-5-0-to-safari-4-0-5/
    If you decide to revert to a prior version of Safari, make sure and backup all your important data first.
    Carolyn

  • How do I set up an autofill for forms, so that when I go to a page with a form it automatically gets filled in?

    I looked in the help section and preferences and there is no way you can fill in your information so that forms will be filled in for you.

    Maybe an add-on works.
    *Autofill Forms: https://addons.mozilla.org/firefox/addon/autofill-forms/

  • How to pass Applet form variables without showing it on top ?

    I am running one applet with some form variables. After submit I want to pass those to .asp file to store into database.
    If I use URL method then all are getting displayed on URL location of browser which I do not want. I want to pass many form variables to another .asp file, so it may not be good also.
    What is the best way of doing it ? Need urgent help about it.

    Well If you create a POST request instead as a GET request the variables will not show up in the URL.
    On tips how to do that you can either check out this thread:
    http://forums.java.sun.com/thread.jsp?forum=31&thread=56388
    or one of these:
    http://search.java.sun.com/Search/java?qt=applet+GET+POST+variables&col=javafrm&rf=0
    Sjur

  • Want to pass Applet form variables without showing it on URL Location

    I am running one applet with some form variables. After submit I want to pass those to .asp file to store into database.
    If I use URL method then all are getting displayed on URL location of browser which I do not want. I want to pass many form variables to another .asp file, so it may not be good also.
    What is the best way of doing it ? Need urgent help about it.

    I tried following code using URL Connection Object, Code is running fine in IE and Appletviewer, but not running in Netscape.
    Following is the code:
    There is an applet with form. After Submit button, The form variables will be send to ASP script where I am storing it into database. In Netscape the server connection is made (blank record is getting created) but data is not passed.
    public void actionPerformed(ActionEvent event) {
    try{
    ByteArrayOutputStream byteStream = new ByteArrayOutputStream(512);
    PrintWriter out = new PrintWriter(byteStream, true);
    String postData = "firstName=manisha";
    out.print(postData);
    out.flush();
    URL dataURL = new URL("http://manisha/appletexamples/confirm-px.asp");
    URLConnection connection = dataURL.openConnection();
    connection.setUseCaches(false);
    connection.setDoOutput(true);
    String lengthString = String.valueOf(byteStream.size());
    connection.setRequestProperty ("Content-Length", lengthString);
    connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
    byteStream.writeTo(connection.getOutputStream());
    BufferedReader in =
    new BufferedReader(new InputStreamReader(connection.getInputStream()));
    String line;
    while((line = in.readLine()) != null) {
    System.out.println("line: " + line);
         } //while
         in.close();
    } //try
    catch(Exception e){}//catch
    }//action performed
    My ASP Code
    <%
    Set conn = Server.CreateObject("ADODB.Connection")
    conn.Open("DATABASE=phptestdb;DSN=phptestdsn")
    %>
    <HTML>
    <HEAD>
    <TITLE> A Sample Program </TITLE>
    </HEAD>
    <BODY>
    <%DIM fname
    fname = ""
    fname = Request("firstName")
    response.write ("fname : " & fname)
    qrystr1 = "insert into applettesttable (fname) values ('" & fname & "')"
    conn.Execute qrystr1
    conn.Close
    Set conn = Nothing
    %>
    </BODY>
    </HTML>

  • Autofill web forms doesn't allow choice of email address

    Using a new MacBook Pro with Lion installed.  I have multiple email addresses and want to use a particular one when filling out personal data on a web form.  Autofill doesn't seem to allow that option.  Is there a fix for this?

    Well that is nice but before all I only had to enter in the first letter and I get a list starting with the first letter and usually the person I need is right there now I have to keep typing? This is not a upgrade in my opinion. IS there an option to just list starting with the first letter? IF not there should be. Is there a way to go back to the last version?
    There is an old saying in engineering, "if it ain't broke, don't fix it."
    I get a little of programers over working a product that works great all ready don't screw with the interface unless you make it a choice for the user. Adobe does this all the time I have to relearn the interface each time a programing has a bright idea.
    Dennis

  • How can I Fill up the applet form from VB code?

    Hi,
    I urgently required help in this issue.
    Please check the below URL :
    http://java.sun.com/applets/jdk/1.4/demo/applets/ArcTest/example1.html
    this is the sample i found on the java example page.
    What I want to do is?
    I want to opened that page in IE from VB. I did it by below code.
    Public WithEvents IE As SHDocVw.InternetExplorer
    Public WithEvents HtmDoc As HTMLDocument
    Private Sub CreateIE()
    Set IE = CreateObject("InternetExplorer.Application")
    IE.Visible = 1
    End Sub
    Private Sub IE_DocumentComplete(ByVal pDisp As Object, URL As Variant)
    Set HtmDoc = IE.document
    End Sub
    Private Sub Navigate(URL)
    IE.Navigate URL
    End Sub
    Private Sub Command1_Click()
    CreateIE
    Navigate "http://java.sun.com/applets/jdk/1.4/demo/applets/ArcTest/example1.html"
    Call SetDocument
    End Sub
    Private Sub SetDocument()
    Set HtmDoc = IE.document
    For i = 0 To HtmDoc.getElementsByTagName("a").length
    List1.AddItem HtmDoc.All(i)
    Next i
    End Sub
    I just want to set the value of that two text box and then I want to click on that button.
    Is there any way that i can do it by getting the java applet content or by some another way?
    I downloaded the Java Activex Bridge. but i didn't found any solutions. I couden't understand that how can I use it.
    Please reply me as soon as possible as I am stuck on it. If possible send me sample project in VB 6.0 also for the same.
    Edited by: Sanket Shah on Feb 25, 2010 2:41 AM
    Edited by: SanketShah on Feb 25, 2010 2:43 AM
    Edited by: SanketShah on Feb 25, 2010 2:44 AM

    I'm certain that VB forums exist. I'm fairly certain that Microsoft would support them, so that's where I would look.
    But I would bet a fair amount of money that they'll tell you "That's a Java problem, ask on a Java forum". Let me just say that you can interface with an applet via Javascript (I haven't done it myself but you could look it up). Then your problem becomes how to execute Javascript from your VB code. That's probably askable on the VB forum.

  • Funtion keys on applet forms

    OS: Windows NT
    Tool: Forms 6i
    Does anyone know what's the keyboard function key to enter a form into query mode. I'm using forms 6i and running them for web during testing. Ctrl+F11 is execute query. Pressing Ctrk+K during runtime list all the funtion keys. I don't see a function key that would place the form in query mode.
    Thx.

    If you are looking for enter query it is
    F11 and to cancel query it is F4
    Hope this helps

  • Autofill form with database data

    I'm trying to create a form that when the page loads, will
              automatically fill with data according to the parameters specified in
              the url. I then want to be able to change fields within the form, and
              submit it, saving the changes to the database.
              I can do the last part, saving to the database via a submit button,
              but is there a way (non-JavaScript) to autofill the form with the
              pertinent data?
              

    You can connect the form to the DB using anODBC connection. This functionality comes as part of Acrobat but the form must be Reader Extended by the full LiveCycle Server version of Reader Extension to allow this in Reader. In your case, if your system is the only on ethat will interact with the DB then this might be a viable solution (but you woudl have to use Acrobat). This solution woudl involve create an ODBC connection in your system then configuring the form to make use of that connection.
    Does that make sense?
    Paul

  • Applet+jar+form?

    I got a java search engine jar file. the boss ask me to write a applet to take user input (search keywords) in a html page and feed the input into that jar then output the search result on that page.
    how can that be done? I mean it sounds to me like to implement a applet form in html and pass the user input to jar and get out put from jar file and display them.
    does anyone have any idea about this?
    Thank you in advance.

    Wait. Search engine jar file? A more likely scenario is that jar is used to implement a search engine in a servlet environment. On the client side there'd just be web forms. So applets wouldn't enter into it at all. (You could have an applet that acted as a web form, but that would be extraneous.)
    Now, maybe someone created a client-side search engine...but this seems counter-intuitive. The important part with a search is the data. You're searching against data of some kind; without the context of the data a search makes little sense. So if it's a client-side search....the question then is what is it exactly that you're searching. Just words on the current page?
    A lot of information is missing here.

  • When using Safari Autofill, and other forms, can information be stored in there if you have not entered any date on a website?

    When in autofill, other forms and edit, is it possible for a website to appear in "other forms", edit, if I have not entered data on their site? How would a site appear there if I have not entered any date on their site?

    Identify and remove adware
    http://www.thesafemac.com/arg/
    or  use Adware Removal Tool.
    http://www.thesafemac.com/art/

  • My autofill stopped working recently.  I looked under preferences and all the necessary boxes are checked.  When I start to fill out a form, the autofill box comes up, but when I click on it, it turns blue and nothing else happens.

    my autofill stopped working recently.  I looked under preferences and all the necessary boxes are checked.  When I start to fill out a form, the autofill box comes up, but when I click on it, it turns blue and nothing else happens.

    Back up all data, then test after each of the following steps that you haven't already tried. Stop when the problem is resolved.
    1. Press the down-arrow key. (Credit to ASC member iNeight.)
    2. Quit and relaunch Safari. Force quit if necessary.
    3. Click in the first field to be filled, and then select
    Edit ▹ AutoFill Form
    from the menu bar. You may have to reload the page in order to do this.
    4.  Select
    Contacts ▹ Preferences ▹ vCard
    and uncheck the box marked
    Enable private me card
    if it's checked.
    5. Select your card in Contacts. Then select
    Card ▹ Make This My Card
    from the menu bar.
    6. In Safari, select
    Safari ▹ Preferences ▹ AutoFill ▹ AutoFill web forms: Using info from my Contacts card
    If the box was already checked, uncheck it and then check it again.
    7. Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
    Select the login keychain from the list on the left side of the Keychain Access window. If your default keychain has a different name, select that.
    If the lock icon in the top left corner of the window shows that the keychain is locked, click to unlock it. You'll be prompted for the keychain password, which is the same as your login password, unless you've changed it.
    Right-click or control-click the login entry in the list. From the menu that pops up, select Change Settings for Keychain "login". In the sheet that opens, uncheck both boxes, if not already unchecked.
    From the menu bar, select
    Keychain Access ▹ Preferences ▹ First Aid
    If the box marked Keep login keychain unlocked is not checked, check it.
    Select
    Keychain Access ▹ Keychain First Aid
    from the menu bar and repair the keychain. Quit Keychain Access.
    8. Run Software Update and install any available updates.

  • Java Applet of Forms

    How can i set properties of Java Applet(Forms) like X,Y,Center,Top,Bottom etc.

    Some properties are exposed though the various Forms parameters in the formsweb.cfg file - width and height for instance.
    For anything else you'd have to write a Pluggable Java Component(PJC) which can get hold of the Applet object and manipulate it.

Maybe you are looking for