Serialization Clarification

I am creating a wizard application that allows the user to enter a fair amount of data then run a simulation based on that data.
Now, I want to save all of the information the user puts in via sliders, textfields, radio buttons, check boxes, Jtables, graphs, ect. I've been trying to figure out the best way to do this and I think serialization may help me but I'm not sure. All of the user input is done via Swing components.
Now the way I'm thinking I should do this is:
1. create a class that can get all of the user input values from the Swing components. (can also set the swing components)
2. make that class serializable (ie I get an array or a table model)
3. write that class out.
4. be able to load that class back in and have it set all of the swing components.
Where I get a little confused here is that most Swing components are serializable so should I just be getting and setting the components themselves? or their values? Because if I got and set the components themselves, couldn't I then just get each JPanel that contains all of the components and reload the JPanel? Would I lose the values for each component?
I'm a bit confused and would greatly appreciate a point in the right direction.

Thanks, this is proving to be a very enlightening expierence.
I started with a confusion about synchronization, and that is cleared up a bit now, but now I'm beginning to think I'm going about this wrong?
Here's the situation:
I've got a Swing GUI. That is it. The components are in place, nothing further. No Listeners yet.
The GUI is designed to be a wizard that guides the user through entering some information through various components(JTextfield, JSlider, JTable, ect.)
At the end of the wizard, the program uses the information the user entered to simulate/model what could happen.
The program then displays the output.
What would be the best way to save all of the user entered information?
With that, and reading a bit about MVC, my impression is that:
M = user input + other hidden values calculated from user input and all of the logic
V = GUI components
C = listeners
I'm not really sure that the above is the right idea either? It seems to make sense that the Model is seperate from everything and can operate without the GUI. Then the GUI is just a place for the user to enter information. And the controller tells the model when to do things based on changes in the view or tells the view to change based on changes in the model correct?
So if that's right, then I think where I am getting lost is what is the best way to save the model? So step by step:
1: initialize the model
2: have controller update the view with the initial values
3. change a value in the view
4. contoller changes that value in the model
5. write the model data to a file
6. load the model data.
7. controller updates view from new model values.
The problem with the above then would be that the swing components have listeners that make updating the model from the view easy, but then would I have to register some sort of listener on the model to update the view(swing components)?
Sorry for the long messages but it helps me think through things and hopefully helps to point out any errors in my thoughts.
Thanks again for all the help, this is really helping me to understand.

Similar Messages

  • Blog Clarification: Role of BI developer to get Deltas functional (part 1)

    Hi,
    I will appreciate some clarification on the following blog that I reviewed:
    /people/swapna.gollakota/blog/2007/12/27/how-does-a-datasource-communicates-delta-with-bw  
    This blog seems to be suggesting that as a BI developer, you need to know the DELTA TYPEs for each datasource (selected in R3) and with that knowledge, you will be in a better position to choose Update types in ODS/DSO Overwrite or Addition, in the BW/BI environment.
    At least that is what I came up with from the review.
    1. For each datasource you activate as a BW developer in the BW environment, do you really need to go to R3 and study this datasource through the table RODELTAM to see the datasource type e.g. ABR, ABR1, etc and all the settings such as serialization =1 or 2?
    2. I thought these datasouces, e.g. 2LIS_02_HDR are SAP delivered, ready to be used, isnu2019t it?
    So, I understood that a decision will have to be made between ABR and ABR1 as the delta type.
    i. whose responsibility is it to make such decisions?
    ii. The R3 folks or the BW developer?
    iii. What influences such decision making?
    iv. In this table(RODELTAM), on R3, I saw several u201CXu201Ds under different columns, who sets these?
    3. There were also discussions as to whether a datasource supports DSO/Cube or not?
    Does this support the argument to study a datasource on R3 side in the table RODELTAM before using it?
    Thanks

    1. For each datasource you activate as a BW developer in the BW environment, do you really need to go to R3 and study this datasource through the table RODELTAM to see the datasource type e.g. ABR, ABR1, etc and all the settings such as serialization =1 or 2?
    If you are a newbie and using it for the first time ofcourse you have to.But I would simply use RSA2 transaction than those tables.
    2. I thought these datasouces, e.g. 2LIS_02_HDR are SAP delivered, ready to be used, isnu2019t it?
    So, I understood that a decision will have to be made between ABR and ABR1 as the delta type.
    i. whose responsibility is it to make such decisions?
    ii. The R3 folks or the BW developer?
    iii. What influences such decision making?
    iv. In this table(RODELTAM), on R3, I saw several u201CXu201Ds under different columns, who sets these?
    Ofcourse its BW developer who deals with BW related things.
    iii. What influences such decision making?
    Your datamodel.
    3. There were also discussions as to whether a datasource supports DSO/Cube or not?
    Does this support the argument to study a datasource on R3 side in the table RODELTAM before using it?
    Datasource supports DSO/Cube, thats the whole point for determining the type of delta.
    Hope this helps.

  • Need some clarifications on Quality-of-services

    Hi Everybody.
                       I need some clarification on Quality-of-services.the question is which one is better in Quality-of-services (Exactly-Once or Exactly-Once-In-order)?why?wht is the differenc between them?

    Hi Narayana
    refer the below Urls
    make the QOS of file as EO or EOIO and then use this blog,
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    It depends upon the Adapter,Can you please spicific
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/41/b714fe5ffc11d5b3ea0050da403d6a/content.htm
    Check these blogs written on QoS:
    XI Asynchronous Message Processing: Understanding XI Queues
    How to deal with stuck EOIO messages in the XI 3.0 Adapter Framework
    EO = Exactly Once ( Used in Asynchronous Communication)
    EOIO = Exactly Once In Order ( Used in Asynchronous Communication)
    BE = Best Effort ( Used in Synchronous Communication)
    Best Effort --> Used for Synchronous Calls.
    EO and EOIO --> Asynchronous Calls.
    EOIO --> Asynchronous with Sequential Processing Guranteed.
    http://help.sap.com/saphelp_nw04/helpdata/en/41/b714fe5ffc11d5b3ea0050da403d6a/frameset.htm
    For the QOS, u can refer the following library links .
    http://help.sap.com/saphelp_nw04/helpdata/en/41/b714fe5ffc11d5b3ea0050da403d6a/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/ae/d03341771b4c0de10000000a1550b0/frameset.htm
    For receiver channels QoS BE (Best Effort) will result in a
    synchronous call (sRFC) , QoS EO (Exactly Once) will create a
    transactional call (tRFC) to the BC. For sender channels a synchronous
    call (sRFC) will result in a message with QoS BE, a transactional call
    (tRFC) will result in a message with QoS EO.
    QoS EOIO is not supported by the BC-Adapter.
    SAP XI term Quality of service describing how the transmission and process-ing of messages is to be handled. Possible values are:
    BE = BestEffort (synchronous call, no transactional guarantees for transmission and processing)
    EO = ExactlyOnce (asynchronous call, guarantee for local transactional handling, exactly-once transmission and exactly-once processing)
    EOIO = ExactlyOnceInOrder (as for EO but with serialization guarantee on a given queue name).
    <b>Pls reward if useful</b>

  • WebLogic 6.1 SP2 stateful EJB handle serialization problem

    I try to serialize and later deserialize the handle of a stateful
    session bean in WebLogic 6.1 SP2. This works on the client, but not on
    the server. In WebLogic 6.1 SP1, it worked on both server and client.
    The test code:
    try {
    InitialContext context = new InitialContext();
    InfSessionHome sessionHome = (InfSessionHome)
    InfEJBUtil.getInfEJBHome
    (context, InfJNDINames.INFSESSION_EJBHOME,
    InfSessionHome.class);
    infSession1 = sessionHome.create();
    // serialize
    ObjectOutputStream objector = new ObjectOutputStream(byteStream);
    objector.writeObject(infSession1.getHandle());
    objector.flush();
    objector.close();
    byte[] ejbKeyBytes = byteStream.toByteArray();
    // deserialize
    ByteArrayInputStream byteInStream = new
    ByteArrayInputStream(ejbKeyBytes);
    ObjectInputStream objStream = new ObjectInputStream(byteInStream);
    Handle ejbHandle = (Handle) objStream.readObject();
    objStream.close();
    InfSession infSession2 = (InfSession) ejbHandle.getEJBObject();
    if (!infSession2.equals(infSession1)) {
    throw new IllegalStateException("not equal: " + infSession2);
    } catch (Exception e) {
    e.printStackTrace();
    I get the following stack trace in the readObject() call:
    java.io.InvalidClassException:
    weblogic.rmi.internal.LocalServerRefMissing no-arg constructor for
    class
    at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1221)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
    at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2263)
    at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
    at weblogic.rmi.internal.StubInfo.readObject(StubInfo.java:73)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.io.ObjectInputStream.invokeObjectReader(ObjectInputStream.java:2214)
    at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
    at weblogic.ejb20.internal.HandleImpl.readExternal(HandleImpl.java:89)
    at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1212)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
    I suppose that WebLogic uses a different handle on the server
    (LocalServerRef class, handle local to it's EJB) than on the client.
    I took the routine from Apache SOAP 2.2 StatefulEJBProvider. So I
    suppose that more people are running into the same problem.
    Does anybody know of a workaround?
    Tom

    Just a small addition/clarification to what Cameron said on serialization.
    - The no argument constructor is required in the first non-serializable class in the object hierarchy for de-serialization process. If your class extends form Object class(which has a no arg constructor), you need not have a no-arg constructor. refere to http://64.49.216.133/faq/view.jsp?EID=251942 for more details.
    - Also I suggest using the api
    isIdentical(...)
    instead of equals method in the code if you are trying to establish whether the two objects represent the same EJBObject or not
    - Rajeev
    Cameron Purdy <[email protected]> wrote in message news:[email protected]...
    A no-argument constructor is required for a class to be deserialized. It
    sounds like a BEA bug from the stack trace, but make sure you don't have
    something extra that you are serializing on something of yours that should
    be transient. (It's hard to imagine how, but you never know ...)
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    Clustering Weblogic? You're either using Coherence, or you should be!
    Download a Tangosol Coherence eval today at http://www.tangosol.com/
    "Tom Gerber" <[email protected]> wrote in message
    news:[email protected]...
    I try to serialize and later deserialize the handle of a stateful
    session bean in WebLogic 6.1 SP2. This works on the client, but not on
    the server. In WebLogic 6.1 SP1, it worked on both server and client.
    The test code:
    try {
    InitialContext context = new InitialContext();
    InfSessionHome sessionHome = (InfSessionHome)
    InfEJBUtil.getInfEJBHome
    (context, InfJNDINames.INFSESSION_EJBHOME,
    InfSessionHome.class);
    infSession1 = sessionHome.create();
    // serialize
    ObjectOutputStream objector = new ObjectOutputStream(byteStream);
    objector.writeObject(infSession1.getHandle());
    objector.flush();
    objector.close();
    byte[] ejbKeyBytes = byteStream.toByteArray();
    // deserialize
    ByteArrayInputStream byteInStream = new
    ByteArrayInputStream(ejbKeyBytes);
    ObjectInputStream objStream = new ObjectInputStream(byteInStream);
    Handle ejbHandle = (Handle) objStream.readObject();
    objStream.close();
    InfSession infSession2 = (InfSession) ejbHandle.getEJBObject();
    if (!infSession2.equals(infSession1)) {
    throw new IllegalStateException("not equal: " + infSession2);
    } catch (Exception e) {
    e.printStackTrace();
    I get the following stack trace in the readObject() call:
    java.io.InvalidClassException:
    weblogic.rmi.internal.LocalServerRefMissing no-arg constructor for
    class
    atjava.io.ObjectInputStream.inputObject(ObjectInputStream.java:1221)
    atjava.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
    atjava.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2263)
    atjava.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
    at weblogic.rmi.internal.StubInfo.readObject(StubInfo.java:73)
    at java.lang.reflect.Method.invoke(Native Method)
    atjava.io.ObjectInputStream.invokeObjectReader(ObjectInputStream.java:2214)
    atjava.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)
    atjava.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
    atjava.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
    atweblogic.ejb20.internal.HandleImpl.readExternal(HandleImpl.java:89)
    atjava.io.ObjectInputStream.inputObject(ObjectInputStream.java:1212)
    atjava.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
    atjava.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
    I suppose that WebLogic uses a different handle on the server
    (LocalServerRef class, handle local to it's EJB) than on the client.
    I took the routine from Apache SOAP 2.2 StatefulEJBProvider. So I
    suppose that more people are running into the same problem.
    Does anybody know of a workaround?
    Tom
    [att1.html]

  • Serialization error while invoking a Java web service

    Hi,
    I've a requirement where I need to create a Java web service, which returns a collection (a set of records).
    The way I've created a web service is by having a Java Class, which internally calls a Pl/sql package returning Ref cursors and a bean Class, which wraps the method of the Java Class, to return the collection. I could create the web service successfully and could invoke the end point. The end point looks like this: http://localhost:8988/MyJavaWebService-New_JWS-context-root/MyWebService_finalSoapHttpPort
    The method exposed for the web service in my Java class is of type ArrayList, to fetch the collection element.
    After giving the input at the end point, while I say invoke, for the web service, I get the following error:
    <env:Envelope
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ns0="http://mypkg/types/"
    xmlns:ns1="http://www.oracle.com/webservices/internal/literal">
    <env:Body>
    <env:Fault>
    <faultcode>env:Server</faultcode>
    <faultstring>Internal Server Error (serialization error: no serializer is registered for (class mypkg.EmpBean, null))</faultstring>
    </env:Fault>
    </env:Body>
    </env:Envelope>
    I've tried making my exposed method of type Vector as well and re-generated the web service. But still I face the same issue at invocation.
    Can anybody help me out and hint me on how I should proceed? I'm not sure if my approach is correct and so please correct me if I'm wrong.
    Thanks in Advance,
    Gayathri

    Hi,
    do you use 10.1.2 or 10.1.3?
    Take a look at:
    Re: How to create a web service with ArrayList or Collection

  • Import org.apache.xml.serialize.*;

    .java:66: package org.apache.xml.serialize does not exist
    import org.apache.xml.serialize.*;
    ^
    i am getting this error while running a java program, which i downloaded from a open source.
    i am using J Creator.
    i suppose i need to add a class path or package.
    can anybody tell me how to do this.
    and where can i find that package.
    if i can't find that in my system, where can i get it on net.

    .java:66: package org.apache.xml.serialize does notThe org.apache.xml.serialize.* package is part of Xerces:
    http://xml.apache.org/xerces-j/
    http://xml.apache.org/xerces2-j/index.html

  • Domain Guideance and Clarification using SVN and an Export suggestion

    Hello Oracle SQL Data Modeler Support,
    Apologies if this has been documented somehwere and I have missed reading it, but have gone through the User Guide and cannot find the clarification I want regarding domains.
    1) WHAT IS BEST PRACTICE TO SAVE WHEN USING SVN
    From the forum I have picked up that the domains file is in the following directory:
    ~\datamodeler\datamodeler\types
    File name is 'defaultdomains.xml'
    When I come to save the file using SVN I get 'Choose versioned folder for storing system types'
    I assume this is where the domains file is stored.
    I require the Domains to be avialable centrally to all Designs I create, what should I do?
    a) Set the folder to ~\datamodeler\datamodeler\types
    b) Create a design called 'Domains' and store it in this folder
    c) Any thing you may suggest
    2) EXPORT OF DOMAIN FILE SUGGESTION
    This should be a quick win for you, can you please add an Export Domains function, seems this needs to do no more than make a copy of the defaultdomains.xml file and create it in a specified export directory.
    Will avoid having to go through the forum to pick up that the defaultdomains.xml file needs to be copied and transfered over for new SQL Data Modeler installations.

    Hello,
    I require the Domains to be avialable centrally to all Designs I create, what should I do?Default location is fine if SVN is not used and if all designs are used only on that computer.
    If versioning is used then it's better to have separate directory for domains and this directory shouldn't be part of any design's directory - i.e. for designs you can have directories c:\des_1, c:\des_2 ...c:\des_n - one directory per each design and that directory will contain design DMD file and design folder. For domains you can have directory c:\DM_Sys_types and you need to set this directory in "Tools>Preferences>Data Modeler>system types directory" - logical types, RDBMS sites and scripts also will be stored there.
    Philip

  • Return Code = 19 , Adobe Serialization

    Hey all. I downloaded Creative Suite 6 for Windows last year from the University of Maryland Terpware service and need to serialize it. They offer these instructions:
    Download the 2 files, prov.xml and adobe_prtk
    Save files to an easy found location
    Open command prompt: Win – Click start menu, type cmd into search box, right click on cmd and click run as administrator
    Navigate to file location
    put in the following command:   adobe_prtk --tool=VolumeSerialize --stream --provfile=prov.xml
    Your CS6 package should now be active
    However, when I input the command it offers this response:
              Copyright 2014 Adobe Systems Incorporated
              All rights reserved.
    Return Code = 19
    And the Serialization is incomplete. I've tried placing the two files into a folder and moving it to System32, but no luck? How can I rectify this? Thanks.

    Not sure if you have generated the prov.xml file for CS 6 using unique product identification (LEID). Please try generating the prov file using below command.
    adobe_prtk --tool=Serialize --leid=LEID --serial=serialNum --adobeid=AdobeID
    You may visit the link below for more information on this.
    http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/creativesuite/pdfs/AdobeProvisionin gToolkitEnterpriseEditionTechN…
    Let us know in case you would need any further assistance on this.
    Thanks,
    Ashish

  • CS6, AAMEE 3.1 - serialization file still prompts to sign in

    So I've had the same issue I've seen other's dealing with - pretty much exactly the same as http://forums.adobe.com/message/4467285.  I've placed AAMEE 3.1 trial packages of my volume-licensed suite into a master image and deployed it to other computers (using WDS).  I created the serialization file with AAMEE 3.1 and have tried to run those on the computers with the trial packages.  I am running:
    AdobeSerialization.exe --tool=VolumeSerialize
    The prov.xml file is in the same folder, but just for the sake of being thorough I added the --provfilie=[path] bit.  I also saw a reference to a "--stream" parameter.  I have no idea what it does but I tried it to.  All of these attempts result in a result code of 0 and the programs in the suite open.  However, the program immediately requests that the user signs in with an Adobe ID.  It's ridiculous because it reports that I now have approximately 90 years until the software stops working.  This is super obnoxious that my users have to dismiss this message each time they wish to load an Adobe product.  What am I missing here?  How can I just make my programs run with no pop-ups like they always used to?  Thanks.

    Hi I have the same problem in that after using the previously created prov file, the software insists that I sign in with an Adobe ID, and like tomferratt, I do not intend to ask my uses to dismiss this message everytime they wish to use your products, I have tried this so called fix you have mentioned above but to no avail, surely there must be an easier way to license your products for users who do not, nor ever will be able to connect to the internet. It seems that Adobe are trying to dictate that all users who have the misfortune to require their products to do a job need to be internet connected, well in the real world this is not an option for everyone, so please please please come up with a solution that is easy and stress free for us poor users who cannot connect to the intenet from our office enviroment.

  • BI Java Installation: Clarification Needed!

    I'm wondering if someone could help clear this up for me:
    We have installed NW2004s SPS08 on Solaris with only the usage type EP (AS Java/EP). Awhile back I was tasked with connecting our BW ABAP system to our Portal ("Integration into the Portal" - transaction SPRO etc).
    After starting this task I noticed I was missing things that the instructions were telling me to configure; i.e. Items that were related to BI that weren't in the Portal such as certain roles, the BI Repository Manager etc.
    Reading around, it seemed like I need to install the BI usage type.
    I have now been tasked with another installation of the Portal (NW2004s SR1 this time), but am trying to head off the problems I'm experiencing trying to connect the Portal to our BW ABAP system. This will be a Java only installation. I've read that BI-Java requires EP and AS Java, and that if I install the BI-Java usage type, EP and AS-Java will be installed automatically.
    My question is, if I do the BI-Java installation and it automatically installs EP/AS-Java, will the Portal still act the same way as it does in my EP/AS-Java only installation I already have? We have many plans to use the Portal as an entry point for all of our backend systems, so if the Portal's capabilities are not what we see already (in our first installation of just EP/AS-Java) then we will have problems.
    Any clarification is greatly appreciated and I will award points accordingly.
    THANKS!
    Beau.

    I think that's what I needed to know.
    I was actually wondering about DI as well. Our developers are having problems deploying .EAR files to our original EP-only install. They can deploy .PAR files with no problems, but .EAR files always error out. Maybe having DI will solve this problem as well? I'm a little concerned about the hardware capacity of this box with having BI, EP and DI all installed on it. I had contacted SAP about installing DI a while back and basically they had told me to install it on a seperate server, by itself. We're running a Sun Enterprise 420R, 4G of memory and a 450 mhz processor for this new installation. Do you think this box is capable of handle EP, BI and DI (AS-JAVA)?
    Thanks for your help!

  • Will 2D objects in java.awt.geom.* be Serializable in next version of Java?

    I am pretty frustrated about having to write my own Serializable classes. I'm not sure if this is the right place to ask, but will the next version of Java supports Serializable 2D objects?
    Further, I was trying to write my own class to extend java.awt.geom.GeneralPath to become Serializable, but it's declared "final". What should I do? (I had no problems with Rectangle2D.Double, Line2D.Double, etc.)
    Any help is greatly appreciated.
    Selwyn

    Your code for serializing the state of the General path forgets two things:
    1. the winding rule
    2. the segments types!
    You could use a vector, but I just directly wrote to the file:
    private void writeObject(ObjectOutputStream oos) throws IOException
    {     out.defaultWriteObject();
         //write state of transient GeneralPath _gp;
         out.writeInt(_gp.getWindingRule());
         float[] coord = new float[6];
         PathIterator i = _gp.getPathIterator(null);
         while(!i.isDone())
         {     int seg = i.currentSegment(coords);
              writeInt(seg);
              //switch on seg, writing correct # of floats from coords
              i.next();
         out.writeInt(-1);     //sentinel for end-of-data: SEG_LINETO etc are [0,4]
    private void readObject(ObjectInputStream in)
    throws IOException, ClassNotFoundException
    {     in.defaultReadObject();
         int rule = in.readInt();
         _gp = new GeneralPath(rule);
         //etc...
    }3. I'm just winging this code -- haven't tested it
    --Nax                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Web Application and Serialization

    Hi, i have a problem with a web application that is running on an Application server (BEA WebLogic 7.0). I have only the war file of the web application and i must know if in this war there is a class that is not serializable.
    How can i find it ? Is there a tool that can help me to find not serializable classes ?
    Thanks.
    claudiozx2006

    One way to do that is to decompile Java classes with Java decompiler and see which one doesn't implement Serializable interface. Here is a link to a good decompiler: http://www.kpdus.com/jad.html

  • How to Serialize a JPanel which is inside a JApplet

    Hi..
    I have a JApplet where i have a JPanel which contains some JLabels and JTextFields,now i have to Serialize that full Panel so that i can retrived it later on with the labels and textfields placed in the same order,for that i tried serializing the full panel on to a file but it is giving me NotSerializeException,i dont know how to tackel it..
    public SaveTemplate(JPanel com) {
    try {
    ObjectOutputStream os=new ObjectOutputStream(new FileOutputStream("Temp1.temp"));
    os.writeObject(com);
    catch(Exception e) {
    e.printStackTrace();
    This is the code..plz help me with that..

    Actually its forming a Template which client will generate and that has to saved on the serverside..So what i thought that once when the client has designed a template,i can save the full template which is a panel into a file and later on when he want to open the template i just have to read the file and create an object of JPanel and add to the frame,so i dont need to apply much effort for that...But now serialization in Applet is giving problem.

  • Clarifications in Asset Accounting

    Dear Experts,
    Please clarify below questions.
    1) What is the difference between Depreciation Area and Depreciation Key?
    2) What is the importance of Recalculate value button in Asset Accounting?
    3) Suppose I have 1000 assets, if I want to run depreciation only for 200 assets how can I do that?
    4) If suppose I have 5 Depreciation areas, I am able to see the book depreciation values only, where I
        can see the other depreciation values? If we can’t see for which purpose we are using other
        depreciation areas?
    5) Vendor and Customer balances get update regularly or once in a month or year?
    6) Where we have to create number ranges either in Production or Development Environment?
    7) How can we transfer GLs from one environment to another?
    Full points will be assigned as way of thanks
    Regards,
    Vineela

    Hi Krishna,
    Thanks for your reply,But still I need some more clarifications please respond........
    2) What is the importance of Recalculate value button in Asset Accounting?-
    (A)recalculates depr when asset parameters are changed
    Where it will be there as it(recalculate button) is not there in AFAB
    3) Suppose I have 1000 assets, if I want to run depreciation only for 200 assets how can I do that?
    (A)select those 200 and run depreciation
    Here Assets Selection option is there only in test run not there in update run.
    4) If suppose I have 5 Depreciation areas, I am able to see the book depreciation values only, where I can see the other depreciation values? If we can’t see for which purpose we are using other depreciation areas? (A)use AW01N- you cans ee all dep areas
    In AW01N only book depreciation values is displayed,how can I see other depreciation area values
    Regards
    Vineela
    Edited by: Vineela Siri on Apr 9, 2008 7:22 AM

  • Re: [iPlanet-JATO] jato classes serializable

    Unless Todd, Mike, or Matt have slick answer to make it work, my only
    solution would be to switch from using the objects themselves and
    reference by name instead. I don't know exactly what your Utility class
    is doing or how the fields use the Utility class, so I can not be
    specific in what you should do.
    I fear that I may be taking on too much work by asking, but maybe you
    could send me the Utility class (send to me directly as Yahoo Groups
    doesnot allow attachments: craig.conover@s...).
    I'll take a quick glance at it. Maybe I can make some suggestions to
    minimize your migration efforts.
    craig
    Seetharam, Prashanth wrote:
    In ND, we had a utility class written whose member variables were visual
    objects. This utility object is used to display or not display its elements
    depending on user action. The utility object was being put into session.
    It could have been implemented in a different way, by storing visual object
    names instead of objects themselves. But when we migrated, we tried to keep
    re-coding to the minimum and ended up replacing ND visual objects
    withcorresponding jato visual objects and ran into this problem.
    Since all the jato visual objects extend from DisplayFieldBase which inturn
    extends from ViewBase, i started looking at ViewBase and did not understand
    why the variable was made transient. Hence the question.
    Thanks,
    Prashanth Seetharam
    -----Original Message-----
    From:     Craig V. Conover [SMTP:<a href="/group/SunONE-JATO/post?protectID=219212113009229091025149066024064239039098031198039130252055210">craig.conover@s...</a>]
    Sent:     Tuesday, December 11, 2001 2:43 PM
    Subject:     Re: [iPlanet-JATO] jato classes serializable
    What is your requirement that these be serializable?
    The views do not store any values, that is what the model is for, and
    they are created lazily as needed.
    Is there something you were doing in ND that required it. It is very
    likely that you do not need to do it anymore with JATO.
    If you are using JATO1.0, you are highly encouraged to start using JATO
    1.2. If you are using the iMT, it has an upgrade tool for 1.x to 1.2.
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    I'll leave the transient parentViewBean to Todd or Mike to justify. But,
    again, what is the need for it to be serialized?
    c
    Seetharam, Prashanth wrote:
    I am using jato1.0 and found that jato classes (especially the visual
    objects like StaticTextField) are not serializable.
    Is this change made in jato1.1? It will be good to have this feature as
    ND
    visual objects were serializable.
    Also in com.iplanet.jato.view.ViewBase.java, why has this variable been
    made
    transient?
         private transient ViewBean parentViewBean;
    Thanks,
    Prashanth Seetharam
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp

    Unless Todd, Mike, or Matt have slick answer to make it work, my only
    solution would be to switch from using the objects themselves and
    reference by name instead. I don't know exactly what your Utility class
    is doing or how the fields use the Utility class, so I can not be
    specific in what you should do.
    I fear that I may be taking on too much work by asking, but maybe you
    could send me the Utility class (send to me directly as Yahoo Groups
    doesnot allow attachments: craig.conover@s...).
    I'll take a quick glance at it. Maybe I can make some suggestions to
    minimize your migration efforts.
    craig
    Seetharam, Prashanth wrote:
    In ND, we had a utility class written whose member variables were visual
    objects. This utility object is used to display or not display its elements
    depending on user action. The utility object was being put into session.
    It could have been implemented in a different way, by storing visual object
    names instead of objects themselves. But when we migrated, we tried to keep
    re-coding to the minimum and ended up replacing ND visual objects
    withcorresponding jato visual objects and ran into this problem.
    Since all the jato visual objects extend from DisplayFieldBase which inturn
    extends from ViewBase, i started looking at ViewBase and did not understand
    why the variable was made transient. Hence the question.
    Thanks,
    Prashanth Seetharam
    -----Original Message-----
    From:     Craig V. Conover [SMTP:<a href="/group/SunONE-JATO/post?protectID=219212113009229091025149066024064239039098031198039130252055210">craig.conover@s...</a>]
    Sent:     Tuesday, December 11, 2001 2:43 PM
    Subject:     Re: [iPlanet-JATO] jato classes serializable
    What is your requirement that these be serializable?
    The views do not store any values, that is what the model is for, and
    they are created lazily as needed.
    Is there something you were doing in ND that required it. It is very
    likely that you do not need to do it anymore with JATO.
    If you are using JATO1.0, you are highly encouraged to start using JATO
    1.2. If you are using the iMT, it has an upgrade tool for 1.x to 1.2.
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    I'll leave the transient parentViewBean to Todd or Mike to justify. But,
    again, what is the need for it to be serialized?
    c
    Seetharam, Prashanth wrote:
    I am using jato1.0 and found that jato classes (especially the visual
    objects like StaticTextField) are not serializable.
    Is this change made in jato1.1? It will be good to have this feature as
    ND
    visual objects were serializable.
    Also in com.iplanet.jato.view.ViewBase.java, why has this variable been
    made
    transient?
         private transient ViewBean parentViewBean;
    Thanks,
    Prashanth Seetharam
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp

Maybe you are looking for

  • How can I erase the last char of string

    I have a string tha is printing as following 129.111.13.1. I want to erase the last "." can somebody helpme? Thanks

  • My ipad2 no longer lists songs alphabetically, is there a way to correct this?

    My ipad2 no longer lists songs alphabetically.  If I know the name of a song, but not the artist...I can't find it,  is this a problem for others?  Is there a way to correct this?  If I look for a song that begins with an A....Adele pops up...Help?

  • Need suggestion for searching words in a document

    Is there any option to search the words in a document, where I want to make a user designed words or phrases saved itself in a PDF docment. For e.g I need to search the data with words like Salary, Compensation, Remuneration, etc in an annual report

  • Function returning SQL query for mutiple series in a chart

    Hi, I would like to know if there is a way to specify a single PL/SQL function returning the queries for multiple series in a 2D Line Flash Chart. I have multiple series in my chart that has different values in the where clause. I can write a PL/SQL

  • Transferring images from a CF card

    Does anyone know if it is possible to transfer a bunch of pictures from a CF card to an iphone? If it is possible what is the easiest way to do it? I'm also wondering if anyone knows of an app that will let someone view RAW images from a digital came