Save the form containing components

Hi All,
I am preparing an application which has some swing components on a form. I want to save that form and open it again for future use.
The saving action is similar to save VB or NetBeans form.
The opening action is similar to open VB or NetBeans form.
Can you help me in the same at the earliest.
Thanks and Regards,
Hitesh.

How do I do that ?1- I think, you would have to define your own format of the file. e.g. you can use XML to define the form:
<Form>
    <ContentPane>
        <class>javax.swing.JPanel</class>
        <background>#ffffff</background>
        <layout>java.awt.BorderLayout</layout>
        <Component>
             <class>javax.swing.JButton</class>
             <constraint>java.awt.BorderLayout.NORTH</constraint>
         </Component>
         <Component>
             <class>javax.swing.JTextField</class>
             <constraint>java.awt.BorderLayout.SOUTH</constraint>
         </Component>
    </ContentPane>
</Form>Note: I don't know XML, this is just an example ;-)
-- This would be program independent way i.e. other programs can also recreate the form if they know the format.
-- Also, there are good XML parsers available in java which you can use for parsing.
-- For this you would also need to create objects/form components dynamically and also invoke their methods dynamically.
2- You can directly write the Form object to the file using ObjectOutputStream if your object is Serializable. Then you can read the object back from that file.
Here is something about ObjectStreams: [http://java.sun.com/docs/books/tutorial/essential/io/objectstreams.html]
IMO, first one is better but harder to implement, however second method is very easy.
Thanks!
Note: I have not done this thing before, so, these are just my suggestions and I am not a professional developer (just a student). So, don't blame me if this doesn't work ;-)
Edit: My typing is slow..... but, seeing other suggestions now, I guess I was on the right track.... :)
Edited by: T.B.M on Apr 8, 2009 7:28 PM

Similar Messages

  • How to save the form data into adobe db?

    Hi All,
    How to save the form data into adobe db?
    I have designed one xdp file.
    Through processFormSubmission(), I got the submitted form data as Document obj.
    Then I have called the workflow kickoff program.
    code:
    InvocationRequest request = myFactory.createInvocationRequest ("myprocessname", //Specify the long-lived process name
    "invoke", //Specify the operation name
    params, //Specify input values (HashMap obj)
    false); //Create an asynchronous request
    It successfulyy started the workflow, but the submitted form data is not saved anywhere.
    And also, How get the form data from tables?
    Please provide the solution for the above.
    Thanks in advance.
    Regards,
    Saravanan G

    You need to create a process variable of type IN if you want to be able to pass data to your process. Then the params parameter (HashMap) contains a list of all the IN variables with their content that you want to pass to your process. They key is the name of the variable and the value the content. That way you should get it in your process.
    Now LiveCycle will create a column in the database for every process variable, so the content will be saved in the database just by creating that process variable.
    Jasmin

  • Error while creating task: The server was unable to save the form at this time. Please try again. (SharePoint 2013)

    I get the following error while saving a task inside task list:
    "The server was unable to save the form at this time. Please try again."
    I tried restarting "search service host controller".
    The server has 8 GB RAM and according to task manager, 6.67 GB is being used.
    I logged into the site with user which is the owner of the site. I tried creating tasks from client as well as the SharePoint server itself. Same error is shown in both the cases.
    How do I find information on the exact problem that is causing the error? What are possible solutions?

    Hi robikshrestha,
    This error message often shows when there is low memory that can be used, the workaround restart the “SharePoint Search Hosting Controller” service is to release some memory, and make it work. Whether restart the service release memory
    in your situation?
    Would you please check whether this issue happens all the time in task list, or happens sometimes when the memory is lower to use. If it doesn’t have a large impact, you can restart the server, check the result. have a look at the event
    log and ULS log, see whether there is related information.
    If it happens all the time, would you please use other browsers, whether the results are same? This may be caused by some add-ons in IE, like Free Download Manager I have seen.
    Thanks,
    Qiao Wei
    TechNet Community Support

  • What are the security settings to lock down a form with fillable fields and yet allow someone with Reader to fill in the fields as will as save the form and print it?

    What are the security settings to lock down a form with fillable fields and yet allow someone with Reader to fill in the fields as will as save the form and print it?

    You want to allow someone to open your document and fill out the form (in the fields you have created), but not change or edit the form, right? Here's the answer - assuming you are using Acrobat Pro and someone will be opening the PDF using at least Acrobat Reader 9 and up:
    Tools > Protection > Encrypt < Encrypt with Password
    Answer YES to change the security.
    A new window opens:
         Do NOT select Document Open (or that will require a password to open the document.)
         Select: Permissions (Check the box next to "Restrict editing and printing of the document.")
         Change the following 2 settings from the drop-down box:
              Printing Allowed: Select High Resolution
              Changes Allowed: Select Commenting, filling in form fields, and signing signature fields
              Leave selected: "Enable text access for screen reader devices for the visually impaired"
              Change Permissions Password (insert a strong password)
              Leave all other settings alone in "Options"
              OK - OK
              Re-enter the Permissions Password (the one you entered above)
              OK - OK
              Save the PDF to apply the security [notice that (SECURED0 will appear after the document title]

  • I created a form using acrobat XI pro.  SOME users of the form cannot save the form.  what can i do from my side to 'correct' the issue?

    i created a form using acrobat XI pro.  SOME users of the form cannot save the form.  what can i do from my side to 'correct' the issue?

    Do you know what PDF viewer those users were using? Do you have any more details about what happens when they attempt to save?

  • How can I fill in a form, save the form such that it cannot be further altered, and email it as it was saved?

    How can I fill in a form, save the form such that it cannot be further altered, and email it as it was saved?  I created a form with 5 fields.  It is a form letter that is intended as a receipt for funds received.  I want to fill in the date, name, amount received, etc., save the form with inserted data fields so they can't be further altered, and be able to email it as a complete unalterable PDF document.  What I'm doing now, is filling in the fields, printing it, scanning it, and emailing it as an unalterable document.  The document was created on a Mac using Adobe Acrobat Pro version 10.1.13.  The document is filled in on a PC that only has Adobe reader on it, printed, scanned and emailed as an attachment. There must be a better way! 

    If you have access to a ASP.net Web Server, then the submission could be FLATTENED with FDFToolkit.net and emailed without client-side email software by only using Adobe Reader.
    For more information check out the following websites:
    http://www.pdfemail.net/examples/
    http://www.fdftoolkit.net/examples/

  • Reader-enabled form from Acrobat is retaining interactive form fields when user saves the form

    This is an issue that has only recently come up. In the past it was not a problem to take a pdf, add interactive form fields to it in LiveCycle, then open the form in Acrobat and enable usage rights for Reader users.
    This allowed Reader users to fill out the form and save the results. With the most recent versions of Acrobat and Reader the user saves the form and the data AND the interactive form fields are saved in the resulting file - meaning that the data is still there to be changed. Clearly not what we want and not what Acrobat and Reader were doing previously.
    The form does properly display "You can save data typed in this form" when opened in Reader.
    I have got no response to this issue in the LiveCycle forum, and nothing shows up in a search. I would very much like to fix this, as it is affecting our entire library of pdf forms.

    In most instances the form is linked on the website, so the original form will cannot be overwritten.
    In some cases we have to supply an interactive pdf for a department that they will then distribute by email to various groups who are expected to fill the form out on submit on an ongoing basis. That is what I was meaning by the user filling out the form, printing it, and then being prompted to save changes.
    The bigger issue is that most of our users expect to take a form hosted on the website, fill it out, and then save a pdf copy of their responses for reference. The reference copy is retaining the interactive fields rather than printing as a static pdf.
    If I could force the action of printing as a pdf (rather than saving as a pdf) on submission I think that would solve the issue. The script for most of the forms in the library is xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0); and I am not aware of a way to force the print to only be to the pdf print driver.

  • Adobe Reader XI did not save the form data (unlike previous versions). Any way to recover file?

    Adobe Reader XI did not save the form data (unlike previous versions). Any way to recover filled form with data from temp locations?
    I was not aware that ctrl+s no longer works in reader and closed the PDF after savign it(with ctrl+s). However ,the data is lost and there seems to be no way to recover it.
    I cannot find any temp files created by Reader on my system.
    Also to my surprize(and shock), the reader did not even show a warning before closing the PDF. Does anybody know if/where can I recover the file from?
    Guys, Please reply ASAP if you have got any sort of solution!

    Hi Pat,
    Are you using Adobe Reader XI? And not Acrobat. It does not ask me to save the form if there are unsaved changes.
    I have used previous versions of reader for saving this form data and it did allow me to save it with ctrl+s. And those versions did prompt me to save the changes before closing.
    I guess I should not have updated the reader.

  • The server was unable to save the form at this time. Please try again - tried the trust standards...

    2013 standard sharepoint server.  Content DBs were on a Trial enterprise server and copied over to standard server. All was good on trial server.
    there are 8 sites on server, 2 of the sites cannot create or edit items, they get "The server was unable to save the form at this time. Please try again"
    googling around i tried everything. restarted search host controller, checked ram usage (8gb free), manage content types, iisresets, edit the web.config file ( add things for ram, search host, etc), no alternate access mappings, .net HTTP activation, rebooted
    server... I'm sure i missed some.
    The server is new install, all but the August HF CUs. Trial server the content DBs came from is at same level.
    It is not a server level issue as the other 6 sites are fine. its something with just 2 sites.
    kinda stuck here...
    Thanks,
       Scott<-

    With the USL Logs were hard to track down what was happening, though I think it was too do with /_vti_bin/client.svc/ProcessQuery.
    I did the Enable/Disable Anonymous Access on the Directory with no luck.
    Brought up Fiddler and Saw that I was getting 401 and 500 Errors on
    GET http://team.intranet.eandm.com/it/_vti_bin/client.svc/ProcessQuery HTTP/1.1
    So it had something to do with Permissions. I checked the Authentication and the sites that worked had Forms Auth Enabled, and the ones that didn't, didn't have forms Auth enabled.  Enabling it manually was no go.
    I then went though the web.config on the working and non-working sites and there were some differences.   The Authentication was Forms on the working site, Windows on the nonworking. There was many things not present. httpModules section was missing,
    Many of the Microsoft Identity /Authentication lines etc. 
    So I Basically took the web.config from the working site and copied it to the non-working site preserving the following line from the original web.config:
    <machineKey validationKey="{key}" decryptionKey="{key}" validation="{hash}" />
    After that I had Security Issues, Though I think this was Caused by the July 2014 CU making everything use the Microsoft Identity parts, where as the server I was porting form had the sites created before the July 2014 CU. (though both were at the same level)
    Even though all of the users were present in the site security, I had to Drop and re-add them to every site/and list with special Perms. 
    With the Security Fixed, I no longer received the Error "The server was unable to save the form at this time. Please try again"
    Knock on wood its all functioning fine. 

  • The server was unable to save the form at this time. Please try again

    Having created a new custom list (even with only a text field) I am unable add new items to the list - the error message is Unexpected
    response from server. The status code of response is '0'. The status text of response is ''. when in 'quick edit'.
    If I try to add or modify an item in the list by clicking 'add new item' I get "The
    server was unable to save the form at this time. Please try again."
    I have restarted the Sharepoint Search Host Controller server but to no avail. I have 24Gb RAM for this server so it's not a
    memory issue (8Gb available). I have also tried from various browsers including Chrome and Safari - still the same error message.
    This error only occurs on lists. I can edit document properties in a library and have no problems with calendar entries.
    There are no entries in the event viewer, so where do I need to begin looking to find out what is (or rather is not) happening?

    One thing I noticed in SP 2013 is that if your list has unique permissions and a user/group has permissions only on that list and has limited or no access at the site level, then you run into this error: "The server was unable to save the form at this time.
    Please try again."
    This can be resolved by either giving that user/group atleast read access at the site level or in my case I had to create a new permission set (since we cant update limited access permission set) which is same as limited access but with the additional permission
    of "Use Remote Interfaces  -  Use SOAP, Web DAV, the Client Object Model or SharePoint Designer interfaces to access the Web site."
    I am not sure if this is a bug or as per design, but not allowing a user who has needed permissions at the list level but limited access at site level doesnt seem right. Never ran into this issue in prior version of SharePoint. I tested and this additional
    permission doesnt seem to violate any security at site level. But implement this at your risk. No guarantees provided and not responsible for any issues with this implementation if any.

  • I created a form for our band parents to fill out.  How are they able to save the forms as pdfs?

    I created a form for our band parents to fill out.  How are they able to save the forms as pdfs and be able to go back and view them?  I see the Save Submission-Enabled PDF on the Distribution page but there is no option when they go in to the first page of the form to save.
    Thank you very much for your help.

    If you are distributing a PDF using the save submission enabled pdf option, then respondents can save it using the Adobe Reader. They save it just like any other file - File menu -> save (or save icon on toolbar).
    Randy

  • One PDF form i can use form a businesspartner is available to save, but i I get a version that does not allow me to save the form filled out.

    3e

    Hello,
    Your form author needs to read extend the form using Adobe Acrobat, then you should be able to fill and save the form in Reader. For more information, please see this http://www.adobepress.com/articles/article.asp?p=2158443&seqNum=3
    ~Deepak

  • Error:- The server was unable to save the form at this time. Please try again.

    Hi,
    I have SP 2013 intranet sites. 
    I am trying to edit the list item in site and getting the error "The server was unable to save the form at this time. Please try again."
    I read many article on this forum. to chck web.config file, to restart
    “SharePoint Search Hosting Controller” But no help.
    Still i am getting this. what could be the reason now.
    Please provide the resolution. I am trying to resolve this from last two days. 
    Thanks,
    Rakesh

    Normally, there's something wrong with the form responsible for editing list items. Is it customized? If not, you could use the free SharePoint Designer tool to delete the current form, create a new one (wait some time before caching issues are solved)
    and you should be good to go. If it is customized, contact the team responsible for managing it.
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • Excel cannot open the new form. The Form contains schema validation errors.

    i am running the approval workflow on a document library, while trying to open Excel
    file i get the error.
    Excel cannot open the new form. The Form contains schema validation errors.
    Detailed error:
    Element '{http://schemas.microsoft.com/office/infopath/2009/WSSList/dataFields}Body' is
    unexpected according to content model of parent element '{http://schemas.microsoft.com/office/infopath/2009/WSSList/dataFields}SharePointListItem_RW'.<o:p></o:p>
    Expecting: {http://schemas.microsoft.com/office/infopath/2009/WSSList/dataFields}WorkflowLink,
    {http://schemas.microsoft.com/office/inf....
    neeraj

    Hi,
    According to your description, my understanding is that when you are running approval workflow and opening the Excel file, then it will occur the error above.
    For a better troubleshooting, I suggest you can try to create a new normal excel file and then run the workflow and open the file to test if it works. It will help to figure out if this is the file itself issue or the SharePoint issue.
    Also, please provide some more detailed information such as screen capture, it will easier to find the root cause of the issue.
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Can't find instructions for setting a PDF form to allow users to type in the fields and save the form.  Thanks

    Can't find instructions for setting a PDF form to allow users to type in the fields and save the form.  Thanks

    Hi,
    Have a look at this page Acrobat refers to them as "Reader Extended PDF", Adobe Acrobat X Pro * Enable Reader users to save form data
    Regards
    Bruce

Maybe you are looking for

  • BB Desktop Software causes Blue Screen at Windows XP

    Hi, I'm using BB Desktop Software 6.1.0.35 at Windows XP over Lenovo X201 laptop. When I try to sync the adressbook or calendar between my BB(Storm II 9520) and my laptop, it often causes blue screen at my laptop. I tried to uninstall and

  • Acrobat Pro XI transposes numbers for month and day in dates when saving optimized pdf to Excel spreadsheet.

    Using Adobe Acrobat Pro XI and Excel 14.3.8 on a mac.  Saved PDF as "optimized PDF" then "save as other" > spreadsheet > Microsoft Excel Workbook. Problem: numbers in some random dates are  transposed so that month and day are reversed.  No particula

  • Nexus 7010 with N7K-SUP2E loopback 0

    Hi, I can't telnet or ssh to the loopback0 interface on the 7k... When I telnet it opens the session but doesn't give me the username or password prompt. [root@telus-swing-test ~]# telnet 10.133.32.1 Trying 10.133.32.1... Connected to 10.133.32.1. Es

  • Setting frame size to 640 by 360

    Hello I am trying to edit video that is 640 by 360 in size but Premiere seems to only want to have it in 720 by 480. This results in a thick black box around my video that is very annoying. Is there any way to fix this? I do not want to upscale the v

  • What's the best way to model the following requirements in a data model?

    I need a data model to represent the following scenario but i just can't get my head around it. Class A has many Class B's. Class B's can have many Class C's and vice versa. So ultimately the relationship for the above 3 classes is as follows: Class