How to manipulate instances?

Hi,
I am having trouble manipulating instances of xml loaded
pictures. I want to change their x and y position and tween them
etc. I have loaded them onto the stage from an xml file, and given
them all individual names but the most I can do now is either move
them all together, spread them evenly on an x or y axis, or remove
one of them using getChildByName. What I can't do is what I want to
do, which is place 20 or so images in an exact place, ie. a square.
My main difficulty seems to be that I don't know how to reference
an individual xml node and move it. Any suggestions very welcome.
Thanks

Hi,
Thanks for your response, that's all quite clear. Yes, I am
using a loop. My issue is that they all load to the same place
unless I set the x and y incrementally. I don't know how to set the
x and y by referring to their instance names. This would be a good
start. However, ultimately what I want is for them to load to the
same point then tween out to a square. Here is the code I have been
using:
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
var imageLoader:Loader;
var xml:XML;
var xmlList:XMLList;
var xmlLoader:URLLoader = new URLLoader();
var xTween:Tween;
var yTween:Tween;
xmlLoader.load(new URLRequest ("data/images.xml"));
xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
function xmlLoaded(event:Event):void
xml = XML(event.target.data);
xmlList = xml.children();
for(var i:int = 0; i < xmlList.length(); i++)
imageLoader = new Loader();
imageLoader.load(new URLRequest(xmlList
.attribute("mini-thumb")));
imageLoader.name = xmlList.attribute("source");
addChild(imageLoader)
xTween = new Tween(imageLoader, "x", Strong.easeOut,60,60 +
i * 40,2,true)
yTween = new Tween(imageLoader, "y", Strong.easeOut,100,100
+ i * 40,2,true)
}

Similar Messages

  • How to manipulate XML?

    Hi guys
    I have this XML returned to my app:
    <menu>
    <categoria nome="cat1">
    <item>item 1</item>
    <item>item 2</item>
    <item>item 3</item>
    </categoria>
    <categoria nome="cat2">
    <item>item 1b</item>
    <item>item 2b</item>
    <item>item 3b</item>
    </categoria>
    <categoria nome="cat3">
    <item>item 1c</item>
    <item>item 2c</item>
    <item>item 3c</item>
    </categoria>
    </menu>
    this is retrieved by an HTTPService
    <mx:HTTPService id="xmlMenu" url="data/menu.xml"
    method="POST" useProxy="false" result="handler()"
    resultFormat="e4x" />
    How to manipulate the XML data in then result handler using
    action script?
    - show nodes length
    - get the atribute of node categoria
    - get to the values of node item
    i've tried
    xmlMenu.lastResult.menu.length.toString()
    xmlMenu.lastResult.menu.categoria[0].length.toString()
    xmlMenu.lastResult.menu.categoria[0].@nome
    xmlMenu.lastResult.menu.categoria[0].item[0]
    nothing happens

    A better way to get the result is:
    <mx:HTTPService ..result="handler(event)"
    and in the handler:
    private function handler(oEvent:ResultEvent):void //might
    need to import ResultEvent
    var xmlMenu:XML = oEvent.result;
    trace(xmlMenu.toXMLString())
    Now you can use the e4x expressions;
    trace(xmlMenu.categoria[0].item[0]); //ashould trace "item 1"
    Tracy

  • How to increase instance size in oracle bpm 10.3.1

    Hi,
    anyone please help me how to change instance size in oracle bpm 10.3.1 whenver i amm attaching maximum size file it is giving error
    Caused by: fuego.server.exception.MaxInstanceSizeRuntimeException: Max instance size exceeded.
    Current size is 69033, whereas the maximum size is 16384. This occurs with instance 'Process1' at activity 'Interactive[Interactive1]' of process '/Process#Default-1.0'
    Edited by: user12171025 on Nov 16, 2009 10:13 PM

    Hi,
    In the engine configuration in the Execution tab set the Maximum Instance Size that by default is 16Kb.
    If you are going to have large values for the instance size probably you have to consider to define the instance variable as separated
    Regards

  • How to create instance in linux

    Hi guys
    how to create instance in linux? I know that in order to create a instance in window, we can use oradim cmd. But what about linux?

    user11148588 wrote:
    hi
    after i performed DR. DBCA does not show the recovery database. can anyone advise me what i should do in order for DBCA to display the database?DBCA gets its knowledge of existing databases from the oratab file. Did you create an entry there? Most *nix OS's will have it in the /etc directory; if I remember correctly it will be in /var/opt on Solaris.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to destroy instance - navigation

    how to destroy instance ?
    eg
    class screen1
    runprgm() {
    screen2 s2 = new screen2()
    class screen2
    frame.removeall();
    //do all database work
    //load all components
    frame.add (components);
    button_click() {
    screen3 s3 = new screen3();
    now screen2 is loaded..
    class screen3
    frame.removeall();
    //do all database work
    //load all components
    frame.add (components)
    now on the button_click on screen2 to screen3 i want to remove the memory occupied by screen1. ?
    one more question
    when there is a back button, what is the normal way of programming (create an instance again) or any other caching mechanism is there ?

    to free the memory you got to kill the reference to the object
    screen1 s1  = new screen1();   //memory is allocated to the object s1
    s1 = null;  //the reference to the object s1 is killedfrom time to time the garbage collector will show in and release all the memory that stores object without any references.
    Of course you can call the garbage collector yourself if you like that better.
    For Your question with the 'back button'. I would say: it depends...
    If you got enough free memory just keep the objects you want to have in your history. If you don't have enough memory... well it seems like you have to think about something else to store your data: database, filesystem, (have a look at the Object.toString() method), compress your data,...
    hope this helps

  • We're running Windows server 2003 32bit and want to migrate to Windows server 2012R2 64bit, can someone provide a step by step procedure on how to migrate instances on ADAM to AD LDS?

    I have no experience in dealing with servers, but my senior has asked me to investigate on how to migrate instances on ADAM (windows server 2003 32bit) to AD LDS (Windows server 2012R2 64 bit) as in place upgrade is not an option as we're running a 32bit
    Server and want to migrate to a 64bit Server. can someone please give me a Walkthrough on how to do this.
    Thanks in advance.

    Hi,
    it'd be of great help if you could give me a step by step process of replication.
    There is no step-by-step article/guide of replication process, replication between AD LDS instances of the same configuration set is an automatic process.
    All we need to make sure is to create a replica of the existing instance, and there is no network/security obstacle preventing the replication.
    Please note that we need to install AD LDS from Server manager on Windows Server 2012 and 2012 R2.
    More information for you:
    Understanding AD LDS Replication and Configuration Sets
    http://technet.microsoft.com/en-us/library/cc770465.aspx
    Best Regards,
    Amy

  • How to change INSTANCE profile parameter?

    HI,
    How to change INSTANCE PROFILE PARAMETER for permanent???
    any step by step or note?
    Thanks,

    Alf,
    Its is recommended to do parameter changes through RZ10. Check the parameter in RZ11 and if you see a check mark against DynamicallySwitchable, you dont have to reboot else it requires a reboot. All the changes you made through RZ10 is permanent. You can do it through OS level but its not a good practice. If you do it through RZ10 it is logged.
    Thanks
    Prince Jose

  • How to manipulate items between instances?

    We have a big group of items that start the process as a group as one instance, but during the process they might split into many independent groups that should continue separately, but at several points some of the groups can be joined to one big group and continue together until next split, some of the items from different groups might go back to a certain point and continue the flow from there. This split and rejoin between the groups can happen many times during the instance live.
    We would like to avoid creating many global activities (for each split and join) and also avoid creating conditional transaction from each activity to every other.
    We have been thinking using the grab activity option, but we need something automatic that will fulfill this due to program logic and not due to supervisor's/admin's actions.
    Is there an activity or instance manipulation actions that we can use?
    Thanks a lot in Advance.
    Ilana.

    Hi,
    You mentioned:
    . . . But In my case each instance would go throw a different path. . . .Could you go into a little more detail when you get a chance? Not trying to push you towards this solution (ok - I guess I am a little), but coming out of the Multiple (Split-N) activity you can handle this situation pretty easily using different conditional transitions. Have your Mulitiple activity flow to an Automatic activity. Your multiple conditional transitions would come out of the Automatic activity. Another approach is to dynamically invoke a subprocess directly from the unconditional coming out of the Multiple. Based on logic, the different copies coming out of the Multiple would automatically invoke different subprocesses based on runtime differences (e.g. different loan types, different claim types, different order types).
    Where you have:
    . . . Additional problem is that some of the splited instances might reach the end before the others will even continue. . . .The Multiple's join activity acts as a marshalling point for the copies spawned by the Mulitple activity. A lot of times, we'll store the information (e.g. successfully on-boarded client) in a relational database. That way you can easily see the spawned copies that have completed the Muliple / Join circuit and those that have yet to do so.
    The natural rejoining / marshalling point for the spawned copies is the Multiple's Join activity.
    I got a little lost where you had:
    . . . Is it possible to rejoin instances that were splited at different stages at the process? . . . Could you clarify what you mean by this? Instances rejoin at the Multiple activity's corresponding Join activity.
    Dan

  • How to manipulate a javascript object in java?

    Hi, I am fiddling with the java scripting interface. As I understand the rhino engine is packaged with the jdk but what I don't understand is how does one reconcile the objects one gets from their engine (e.g. sun.org.mozilla.javascript.internal.ScriptableObject) versus the ones in the rhino api (e.g. org.mozilla.javascript.ScriptableObject)?
    Is the one in the jdk heavily modified or wrappered up to suit their javax.scripting interface?
    More specifically, how do I manipulate javascript objects from java?
    e.g. suppose I have this java code:
    ScriptEngineManager mgr = new ScriptEngineManager();
    ScriptEngine js = mgr.getEngineByName("js");
    jsEngine.eval("var foo = { x : 1, y : 'hello', z : false };");
    Object o = jsEngine.get("foo");Now o is instanceof sun.org.mozilla.javascript.internal.NativeObject, which is a subclass of a bunch of other classes in the s.o.m.j.i namespace. Being internal I can't use these directly.
    Looking at the Rhino API obviously you normally get a org.mozilla.javascript.ScriptableObject and can call the .get() .getIds() methods. But I don't know how to translate the objects I am getting in my actual java code which uses the jdk engine into org.mozilla.javascript objects.
    Is this even possible? Am I misunderstanding something completely? Should I just be using the rhino js jar and not the javax.scripting interface? If so, for what reason is the javax.scripting interface implemented?

    Assuming that you DO want a deep copy, begin with a constructor that takes another hand.
    public Hand( Hand h ) { ...Then for each instance variable, within that constructor:
    this.instVar0 = h.instVar0;
    this.instVar1 = h.instVar1;
    . . .And last, for every reference, make sure there is a constructor (or copy method for arrays) that itself makes a deep copy:
    this.ref0 = new Ref0Type( h.ref0 );

  • Objects made from objects - how to manipulate?

    Hello all - my first post here and new to OOP from procedural
    I am trying to construct an object ("Box") from 2 Things. The Things have a colour and can be on or off.
    I can construct the Box from a RED Thing and a BLUE Thing, and initialise them as being on, but....
    How do I manipulate the Things in the Box once constructed?
    I don't know how to address the Thing methods from the Box Class... please could someone help as I am sure this is really simple - I just can't find the answer in any of my books!
    public class Thing {
         boolean on;
         String colour;
    public Thing(String s) {
         colour = s;
         on = false;
    // this main is just to test this class
    public static void main (String[] args){
         Thing test = new Thing("TEST");
         test.turnOn();
         test.getState();
         try {
              System.out.println ("Pause.....");
              Thread.sleep(1000);
         catch (Exception e) {
              System.out.println ("CarCrash!");
         test.turnOff();
         test.getState();
    public void turnOn() {
         on = true;
    public void turnOff() {
         on = false;
    public void getState() {
         if (on) {
              System.out.println (colour + ": ON");
         else {
              System.out.println (colour + ": OFF");
    and here is the box class...
    public class Box {
    public Box() {
         Thing thingOne = new Thing ("RED");
         Thing thingTwo = new Thing ("BLUE");
         thingOne.turnOn();
         thingTwo.turnOn();
    public void getBoxState() {
         System.out.println (thingOne.getState());
         System.out.println (thingTwo.getState());
    public static void main (String[] args) {
         Box boxOne = new Box();
         boxOne.getBoxState(); // does not compile - this is the crux of the matter...
    }

    NickM999 wrote:
    I've simplified Box to get to the root of the problem:
    Nice.
    public class Box {
        public Box() {
             Thing thingOne = new Thing ("RED");
             Thing thingTwo = new Thing ("BLUE");
             thingOne.turnOn();
             thingTwo.turnOn();
        public static void main (String[] args) {
             Box boxOne = new Box();
             thingOne.getState();   <--- this is the problem...(line 22)
    }Box.java:22: cannot find symbol
    symbol : variable thingOne
    location: class Box
    thingOne.getState();
    ^
    1 error
    You've got much worse problems than you think.
    If you look at your constructor, you create two instances of Thing. The variables that point to them are local to the constructor, so as so as you leave that method those objects are eligible for garbage collection.
    I'd like to create a number of Box instances (all with the same Things (Red/Blue) in them), then manipuate the Things within each box
    example: Box 1 - Red Thing ON, Blue Thing OFF... Box 2 - Red Thing OFF, Blue Thing OFF... Box 2 - Red Thing ON, Blue Thing Off... and so on.
    I also tried to address the methods in Thing as boxOne.thingOne.turnOff();
    Is there a better design?
    Thanks for your time!Here's what I'd recommend: don't expose those objects in public. Give clients an interface that they can use to get at them in a way that YOU can control internally.
    You should follow the Java Beans conventions for Thing:
    public class Thing
        boolean on;
        public boolean isOn() { return on; }
        public void setOn(boolean state) { on = state; }
    }Since the state is really two flags, not one, I'd create a State object that would hold the variables. Less atomic that way. The more you can encapsulate in objects the better.
    public class Box {
        private Thing thingOne;
        private Thing thingTwo;
        public Box() {
             thingOne = new Thing ("RED");
             thingTwo = new Thing ("BLUE");
             thingOne.turnOn();
             thingTwo.turnOn();
        public boolean getThingOne() { return thingOne.getState(); }
        // same thing for thing two.
        public setThingOne(boolean isOn)
            if (isOn)
                thingOne.turnOn();  //  I assume you have these methods.
            else
                thingOne.turnOff();
        public static void main (String[] args) {
             Box boxOne = new Box();
             thingOne.getState();   <--- this is the problem...(line 22)
    }

  • How to manipulate and use cell phone operating systems

    I have recently been messinga round with Netbeans 5.0 beta 2 with the MIDP pack. I am really enjoying it, but I am confused on something.
    I have an idea for a program that I want to create, but I want to be able to use it in an actual operating system. For instance, cingular, verizon, etc. all have phones that have operating systems on them. I don't know if they are operating systems as much as user interfaces. I want to know how I would be able to program an application for these systems specifically. Is there a way that you can access the code for these or anything like that? I really don't know how to ask this because I do not know much about the cell phone systems. Could somebody please inform me. Thank you.

    I hate that word only.
    There is no "ONLY" in the world of software. :P, well, I don't like the word "manipulate" either, so any disencourigement would be on it's place ;)
    There are ways to get to the lower level stuff but I
    believe that most Java developers would discourage
    it. The problem with it is that writing for that
    level means that the os is stable. Which is not the
    case. What would that have to do with anything? Palm OS, Symbian, an windows mobile (and even linux), are all stable. The other devices, simply don't have an OS, or at least, don't have an open OS where you can do stuff with. That's the real problem.
    Sure the os that the system uses may be
    excellent. But the next version of the hardware
    might not have the same underlying os. Try writing a
    program for a palm pro and running it on a new palm.
    Backwards compatible is not always there. Since the
    e rate of output from hardware developers is not
    slowing I'd avoid this. That's why you sould keep to api's. They ensure compatibility. Sure it might low stuff down sometimes, but who cares?
    Having said that. There is nothing like writing some
    low level code that pushes the edges of the hardware
    in directions even the os builders didn't think to
    go. Mind you java might not be the tool to do that.Very true, but this is out side of the scope of this forum, and therefor irrelevant.
    If you really want to do low level code, buy a nice cpu, make your own PCB and start programming without any api's, or even do it in assembler!

  • How to manipulate multiple records in side the cursor

    DECLARE
    CURSOR C1 IS
         SELECT ITEM_CODE,AVERAGE_COST,STORE_CODE
    FROM IM_GOODS_RECIEVE_DETAILS
    WHERE DOC_CODE = :IM_GOODS_RECIEVE_DETAILS.DOC_CODE;
    LOC_DOC_CODE VARCHAR2(10);
    LOC_ITEM_CODE VARCHAR2(30);
    LOC_ITEM_QUANTITY NUMBER(12,3);
    LOC_TOTAL_COST NUMBER(12,3);
    LOC_AVERAGE_COST NUMBER(12,3);
    BEGIN
    FOR R IN C1
    LOOP
    -- THIS FOR ISSUED ITEMS QUANTITY     
    SELECT B.ITEM_CODE,NVL(ITEM_QUANTITY,0),A.DOC_CODE,AVERAGE_COST,TOTAL_COST
    INTO LOC_ITEM_CODE,LOC_ITEM_QUANTITY,LOC_DOC_CODE,LOC_AVERAGE_COST,LOC_TOTAL_COST
    FROM IM_TRANS_ISSUE_HEADER A,IM_TRANS_ISSUE_DETAILS B
    WHERE A.DOC_CODE = B.DOC_CODE
    AND B.DEL_STORE = R.STORE_CODE
    AND ITEM_CODE = R.ITEM_CODE
    AND DOC_DATE BETWEEN :IM_GOODS_RECIEVE_HEADER.DOC_DATE AND :EXPENSES_TAB.EXP_DATE
    ORDER BY
    B.ITEM_CODE;
    SHOW_MESSAGE('LOC_DOC_CODE'||' '||LOC_DOC_CODE);
    SHOW_MESSAGE('ITEM_CODE ->' ||' '||LOC_ITEM_CODE);
    SHOW_MESSAGE('LOC_ITEM_QUANTITY'||' '||LOC_ITEM_QUANTITY);
    SHOW_MESSAGE('LOC_AVERAGE_COST'||' '||LOC_AVERAGE_COST);
    SHOW_MESSAGE('LOC_TOTAL_COST '||' '||LOC_TOTAL_COST );     
         UPDATE IM_TRANS_ISSUE_DETAILS
    SET AVERAGE_COST = :NEW_AVERAGE_COST,TOTAL_COST = :NEW_AVERAGE_COST * LOC_ITEM_QUANTITY
         WHERE DOC_CODE = LOC_DOC_CODE
    AND ITEM_CODE = LOC_ITEM_CODE ;
    END LOOP;
    COMMIT;
    SHOW_MESSAGE('The New Cost Price updated !!!');
    END;
    This script it will work if the select statment inside the loop return one record , but if it return more than one record it will give error
    how can i hanlde the above select statment
    waiting for your valuable answer with example please .
    my email : [email protected]
    Best regards
    Jamil Alshaibani

    it has been answered as the following :
    DECLARE
    CURSOR C1 IS
    SELECT ITEM_CODE,AVERAGE_COST,STORE_CODE
    FROM IM_GOODS_RECIEVE_DETAILS
    WHERE DOC_CODE = :IM_GOODS_RECIEVE_DETAILS.DOC_CODE;
    LOC_DOC_CODE VARCHAR2(10);
    LOC_ITEM_CODE VARCHAR2(30);
    LOC_ITEM_QUANTITY NUMBER(12,3);
    LOC_TOTAL_COST NUMBER(12,3);
    LOC_AVERAGE_COST NUMBER(12,3);
    BEGIN
    FOR R IN C1
    LOOP
    -- THIS FOR ISSUED ITEMS QUANTITY, it will work if there is only one record,
    -- but if the select statment below return more than one record it will give
    -- error how can I manipulate all the records in the IM_TRANS_ISSUE_DETAILS table
    FOR R2 IN (
    SELECT B.ITEM_CODE as LOC_ITEM_CODE, NVL(ITEM_QUANTITY,0) as LOC_ITEM_QUANTITY,
    A.DOC_CODE as LOC_DOC_CODE, AVERAGE_COST as LOC_AVERAGE_COST,
    TOTAL_COST as LOC_TOTAL_COST
    -- INTO LOC_ITEM_CODE,LOC_ITEM_QUANTITY,LOC_DOC_CODE,LOC_AVERAGE_COST,LOC_TOTAL_COST
    FROM IM_TRANS_ISSUE_HEADER A,IM_TRANS_ISSUE_DETAILS B
    WHERE A.DOC_CODE = B.DOC_CODE
    AND B.DEL_STORE = R.STORE_CODE
    AND ITEM_CODE = R.ITEM_CODE
    AND DOC_DATE BETWEEN :IM_GOODS_RECIEVE_HEADER.DOC_DATE
    AND :EXPENSES_TAB.EXP_DATE
    ORDER BY B.ITEM_CODE )
    LOOP
    SHOW_MESSAGE('LOC_DOC_CODE' ||' '||R2. LOC_DOC_CODE);
    SHOW_MESSAGE('ITEM_CODE ->' ||' '||R2. LOC_ITEM_CODE);
    SHOW_MESSAGE('LOC_ITEM_QUANTITY'||' '||R2. LOC_ITEM_QUANTITY);
    SHOW_MESSAGE('LOC_AVERAGE_COST' ||' '||R2. LOC_AVERAGE_COST);
    SHOW_MESSAGE('LOC_TOTAL_COST ' ||' '||R2. LOC_TOTAL_COST );
    UPDATE IM_TRANS_ISSUE_DETAILS
    SET AVERAGE_COST = :AVERAGE_COST,
    TOTAL_COST = :AVERAGE_COST * R2. LOC_ITEM_QUANTITY
    WHERE DOC_CODE = R2. LOC_DOC_CODE
    AND ITEM_CODE = R2. LOC_ITEM_CODE ;
    END LOOP;
    END LOOP;
    COMMIT;
    SHOW_MESSAGE('The New Cost Price updated !!!');
    END;

  • SQL Server Utility - How to Remove Instance that No Longer Exists on Server

    I had a default instance that I had installed for an application.  But then I was told they wanted it as a named instance.  I had added the default instance to the UCP (SQL Server Utility).  I have uninstalled the default instance forgetting
    that I had added it to the UCP.  Now when I try to remove the managed instance I get the following error:
    The action has failed.  Step failed.  The SQL Server connection does not correstpond to this managed instance object.  (Microsoft.Sqlserver.Management.Utility)
    How do I remove the managed instance from the UCP?  Do I need to go into a table in database sysutility_mdw and delete something?
    select * from msdb.dbo.sysutility_ucp_managed_instances
    where instance_id=57
    Maybe delete from table msdb.dbo.sysutility_ucp_managed_instances?
    Or maybe table sysutility_ucp_managed_instances_internal?
    lcerni

    I ran this
    EXEC msdb.dbo.sp_sysutility_ucp_remove_mi @instance_id=57
    And it fixed the issue.
    lcerni

  • How to get instance of all components in a frame  dynamically

    Hai ,
    I want to know how to get the instance names and values of components on a frame . if any body knows anything on this
    Please help me
    Advance Thanks

    Hai ..
    Thanks for guiding me here i had copied my example code i am getting name value null
    import javax.swing.*;
    import java.awt.*;
    import java.util.*;
    * @author  naveen
    public class Test extends javax.swing.JFrame {
        /** Creates new form RaviTest */
        public RaviTest() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        private void initComponents() {
            jTextField1 = new javax.swing.JTextField();
            jTextField2 = new javax.swing.JTextField();
            jButton1 = new javax.swing.JButton();
            getContentPane().setLayout(null);
            addWindowListener(new java.awt.event.WindowAdapter() {
                public void windowClosing(java.awt.event.WindowEvent evt) {
                    exitForm(evt);
            getContentPane().add(jTextField1);
            jTextField1.setBounds(180, 60, 100, 20);
            getContentPane().add(jTextField2);
            jTextField2.setBounds(180, 90, 90, 20);
            jButton1.setText("jButton1");
            jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton1ActionPerformed(evt);
            getContentPane().add(jButton1);
            jButton1.setBounds(170, 140, 81, 26);
            pack();
        private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
            // Add your handling code here:
            Component[] comp=this.getContentPane().getComponents();
            for(int i=0;i<comp.length;i++)
                if(comp[i] instanceof JTextField)
                    getT((JTextField)comp);
    public void getT(JTextField jt)
    System.out.print("name "+jt.getName());
    System.out.println("value "+jt.getText());
    /** Exit the Application */
    private void exitForm(java.awt.event.WindowEvent evt) {
    System.exit(0);
    * @param args the command line arguments
    public static void main(String args[]) {
    new RaviTest().show();
    // Variables declaration - do not modify
    private javax.swing.JButton jButton1;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JTextField jTextField2;
    // End of variables declaration
    OUTPUT AS :
    if we enter some text in text box and press the button we get like this
    name null value ABCD
    name null value EFGH
    may be some components will have name but if they names are not set
    then we get null value
    what i want is at that i want the jTextField1.. as name(ie.. object name) when the name is not set how to do it

  • Urgent - How to create instance of Business Object in workflow at runtime

    Hi all,
       I have a requirement as follows...
    1) I have a Business Object ISUPOD in which the Key field is Pointof Delivery
    2) I am getting the value for Pointof Delivery in the step-2 of my workflow.
    3) Now I want to create a instance for the Business Object using this key field value in my Workflow at runtime and use the instance in the following steps.
    How can I do this ???
    Thanks,
    Sivagami

    Hi Ravi,
      Thanks for the solution...
      There is also a wizard that will generate an activity to do this. We have to just go to Wizards->Include "Create Object Reference" which will create the task  with the BO & Method referred by you.
    Thanks,
    Sivagami

Maybe you are looking for