Example for add(component,object)

Hi,
I have a program and am trying to understand that. it is constructing a jpanel. I need to know what this means.
panel.add(panelA,"4,4,4,10");
what is 4,4,4,10
could any one give me a small example of how to use add(component,objet)
Appreciate all your help
Thanks

Not sure what that is about. Its not normal syntax.
Read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html]How to Use Layout Managers for better examples and explanations of adding Components to Containers.

Similar Messages

  • BADI for ME22n - Component Object List

    Hi ,
    I am working with transaction ME22n. When the item category is L. The material data tab shows a button called Components (Object List). On clicking this button i am taken to another screen which has childeren material items and the related data. I need to capture the values on this screen and compare them with the database values to identify any changes.
    I am working with BADI ME_PROCESS_PO_CUST , method CHECK and OPEN. Please tell me in which method parameter those screen values are stored and i can fetch them.
    Also please suggest me any other approach possible which i can use to capture the screen field values in the component screen.
    Any help would be deeply appreciated.
    Thanks in advance.
    Moderator message : Duplicate post locked. Continue with thread [BADI for ME22n - Component Object List|BADI for ME22n - Component Object List]
    Edited by: Vinod Kumar on Aug 9, 2011 12:25 PM

    Hi,
    Please check this thread
    User exit for component data in ME21n/ME22n
    Thanks

  • Examples for RAS/BOE/Viewer SDK for Business Objects XI 3.1 (12.0)

    Hi, I am a newbie in Business Objects.
    I am trying to find some examples on how to view reports on separate Application server (JBoss) and retrieve reports from Business Objects server. Us I understood from forums/guides I need to use Viewer SDK or (BOE/RAS SDK).
    However I cannot find any examples for above mentioned SDKs to start from something.
    OIne of the places I came across is here: http://devlibrary.businessobjects.com/businessobjectsxi/en/en/Viewers_SDK/default.htm indeed it is only for v11, as well as others places I came across.
    Can anyone guide me with this?
    Thank you!

    Hello.
    Java samples can be found at the following location:
    http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessObjectsSDKSampleApplications
    Specifically, Business Objects Enterprise (including the Viewers SDK) samples can be found at the following location:
    http://wiki.sdn.sap.com/wiki/display/BOBJ/JavaBusinessObjectsEnterpriseSDKSamples
    RAS SDK samples can be found at the following location:
    http://wiki.sdn.sap.com/wiki/display/BOBJ/JavaRASSDK+Samples
    Hope this helps.
    Regards.
    - Robert

  • What name Properties in Bussiness Partner Object for add fields TypWTRepr

    What name Properties in Bussiness Partner Object for add fields OCRD.TypWTReprt

    DDE,
    I do not see that there is a property exposed by the SDK for this in Business One 2005A SP01.  Apologies ...
    Eddy

  • [svn:osmf:] 9988: Add example for a preloaded SerialElement.

    Revision: 9988
    Author:   [email protected]
    Date:     2009-09-03 10:13:16 -0700 (Thu, 03 Sep 2009)
    Log Message:
    Add example for a preloaded SerialElement.  Disable autoRewind.  Fix bug in display of durations across tests.
    Modified Paths:
        osmf/trunk/apps/samples/framework/ExamplePlayer/org/openvideoplayer/examples/AllExamples. as
        osmf/trunk/apps/samples/framework/ExamplePlayer/org/openvideoplayer/view/MainWindow.as

  • Add component in task list

    Hello All,
    I have an issue with adding component in task list (for example task list number EIMN-68) via transaction IA05.
    When I try to add component to operation, I get the message *
    Standard BOM PAEIMN-68  4 already exists
    Message no. 29771
    Diagnosis
    You want to create a standard BOM for standard object PAEIMN-68 with usage .
    A BOM already exists for this standard object and usage. You cannot extend a standard a standard BOM.
    Procedure
    Check whether the standard BOM is suitable for standard object PAEIMN-68 and usage . If it is not, you need to create the BOM for another standard object.
    Is there any special way to create material master for such components.Whats the solution.
    Please help
    Cheers
    Sunny

    Hi Pithan, how are you..
    I want to add components.
    Just now I was able to add components. I explain how:
    When i added component number in operation, and press enter, system gave me the error that standard bom already exist. In the same screen I changed the BOM usage to 3 as universal usage. After this usage only, system allowed me to add components. No other bom usage allowed me to do so.
    Also, why system took me to BOM screen if I just want to add components.
    I wait for your reply.
    thanks and regards
    Sunny

  • Defining non-Component objects with size and location using Swing

    I am attempting to write a program which will be able to manipulate (display, move, resize) objects in a Swing window which are not necessarily components. These "Window"s are defined by a Window interface which defines a Window as any object which has a size and a location (effectively a rectangular area). This would ideally allow me to perform operations such as drawing an arbitrary picture on a Jpanel, for example, wrap that drawing in a rectangular area, and then be able to resize it/move it about as a separate panel. In order to do this I believe I would have to override the paint() method, although I'm not completely sure. If anyone has any suggestions of a proper way to override the method or know a proper way to attack this problem, I would greatly appreciate it.
    Thanks,
    Adrian

    It's hard to say since it's not quite clear what you're doing but:
    1) if these objects are not necessarily components, that's fine, but you're not trying to add them to the basic GUI framework, are you? If you want to do something like this, then probably the best thing is to have a particular component that knows how to handle these objects, and then have a clean separation between components and non-components at that level. So this component would maintain and display a collection of those non-component objects, but no other component would be expected to know anything about them, and the non-component objects wouldn't know about any components at all.
    2) it might be helpful to give all the non-component objects a method that looks like this:
    void drawSelf(Graphics g);and that this method would tell the object to draw itself on that Graphics object. The object might also have an "offset" value, essentially an x,y position, and it would draw itself relative to that position.

  • Create a business object for a Maintenance object

    Hello,
    I want to create a business object for a maintenance object to change all XML attributes to XML elements.
    Should I have to change the whole XML Schema from attributes to elements one by one?
    For example, I create the business object CM_Person_BO for the maintenance object Person, and use the business object to add user in a more standard way.
    But it is a quite large job to rewrite the whole schema for the maintenance object Person, which has following elements, which are PersonIdentifiers, PersonNames, PersonPhones, PersonCharacteristics, Person and SeasAddress.
    Is there any easy way to do it?
    Thanks,
    Kerr

    Should I have to change the whole XML Schema from attributes to elements one by one?
    Is there any easy way to do it?Unfortunately not, you will have to define the schema containing each field/element, once. The primary objective is that you should create a scaled down version of the BO having only the required fields or subset of available fields, you may not need all the fields of a MO. This increases performance as the IO is performed only for specified fields in the BO.
    You can define separate Data Areas for each Person object's context, i.e. Identifiers, Names, Phones, etc. and include them (includeDA) within the Person BO (CM_Person_BO) for clarity.

  • How Can I add a object to the scene Graph ??

    Hi all!
    I have set up a 3d scene Graph. Now I want to add a object (for example,a cone) to the scene Graph. How can I do ???
    thanks in advance!

    Hi,
    if you want to add your cone to a branchgroup "mainbranchgroup", you have to set mainbranchgroup.setCapability(BranchGroup.ALLOW_CHILDREN_WRITE) while creating this branchgroup (and before compiling the scene).
    Then, when you want to add the cone, you just have to add a child to the mainbranchgroup.
    I hope that helps.

  • Use COM (Component Object Model) libraries

    I am new in Java but can write simple application already.
    Now I have a need to write a simple application to manage my Nokia cellphone via a cable. I have downloaded the Nokia PC Connectivities SDK already. In the manual, it states that "all the libraries are implemented as COM (Component Object Mode) Libraries". All examples inside are Visual Basic...
    How can I make use of the libraries in Java? What area of Java should I study for this purpose?
    Thanks a lot.

    Sun has a Java-COM bridge somewhere on the Java website for this purpose. Also, there are a heap of third-party ones too, both commercial and open-source. Just search for 'Java COM bridge' on Google.

  • Why can't I add an Object[] to a Vector ? super Object[] ?

    I don't understand why javac rejects these two statements:
        Vector<? super Object[]> v= new Vector<Object[]>();
        v.add(new Object[0]);cannot find symbol
    symbol : method add(java.lang.Object[])
    location: class java.util.Vector<capture of ? super java.lang.Object[]>
    v.add(new Object[0]);
    ^
    The type of v can only be one of these 4:
    Vector<Object[]>, Vector<Object>, Vector<Serializable>, Vector<Cloneable>.
    Therefore, I should always be allowed to add an Object[] to it, right?
    The following example is very similar, but this one is accepted by javac.
        Vector<? super Number> v= new Vector<Number>();
        v.add(42);I didn't find a relevant difference to the first example, nor something in JLS3 that would forbid it. Is this a javac bug?

    There is a difference between legal and practical. Practical is a matter of opinion. I thought I should try the combinations to see which make sense.
    I don't find it intuative that list.add(list.get(0)) should fail to compile.
    While the definitions have a logic of their own, some are very hard to put it into english exactly what they really mean. This means finding a practical purpose for them even harder.
    For example List<? super Object>
    add(x) is legal for non-arrays
    method(list) is illegal for method(List<Object>) but is legal for method(List<? super Object[]>)
    public class A {
        public static void foo(List<? super Object[]> l) {    }
        public static void foo2(List<Object[]> l) {    }
        public static void foo3(List<? extends Object[]> l) {    }
        public static void bar(List<? super Object> l) {    }
        public static void bar2(List<Object> l) {    }
        public static void bar3(List<? extends Object> l) {    }
        public static void bar4(List<?> l) {    }
        public static void main(String[] args) {
            {   // can be { Object, Object[] }
                List<? super Object[]> l = new ArrayList<Object[]>();
                l.add(l.get(0));  // illegal
                l.add((Object) null);  // illegal
                l.add((Integer) null);  // illegal
                l.add((Object []) null); // illegal
                l.add((Integer []) null); // illegal
                l.add((Integer [][]) null); // illegal
                foo(l); // List<? super Object[]> - legal
                foo2(l); // List<Object[]> - illegal
                foo3(l); // List<? extends Object[]> - illegal
                bar(l); // List<? super Object> - illegal
                bar2(l); // List<Object> - illegal
                bar3(l); // List<? extends Object> - legal
                bar4(l); // List<?> - legal
            {   // can be Object[] or (? extends Object)[]
                List<Object[]> l = new ArrayList<Object[]>();
                l.add(l.get(0));  // legal
                l.add((Object) null);  // illegal
                l.add((Integer) null);  // illegal
                l.add((Object []) null); // legal
                l.add((Integer []) null); // legal
                l.add((Integer [][]) null); // legal
                foo(l); // List<? super Object[]> - legal
                foo2(l); // List<Object[]> - legal
                foo3(l); // List<? extends Object[]> - legal
                bar(l); // List<? super Object> - illegal
                bar2(l); // List<Object> - illegal
                bar3(l); // List<? extends Object> - legal
                bar4(l); // List<?> - legal
            {   // Only allows wildcards, Object is illegal.
                List<? extends Object[]> l = new ArrayList<Object[]>();
                l.add(l.get(0));  // illegal
                l.add((Object) null);  // illegal
                l.add((Integer) null);  // illegal
                l.add((Object []) null); // illegal
                l.add((Integer []) null); // illegal
                l.add((Integer [][]) null); // illegal
                foo(l); // List<? super Object[]> - illegal
                foo2(l); // List<Object[]> - illegal
                foo3(l); // List<? extends Object[]> - legal
                bar(l); // List<? super Object> - illegal
                bar2(l); // List<Object> - illegal
                bar3(l); // List<? extends Object> - legal
                bar4(l); // List<?> - legal
            {   // can add non-arrays but can only match ? super Object, ? super Object[], or ? extends Object, but not Object 
                List<? super Object> l = new ArrayList<Object>();
                l.add(l.get(0));  // legal
                l.add((Object) null);  // legal
                l.add((Integer) null);  // legal
                l.add((Object []) null); // illegal
                l.add((Integer []) null); // illegal
                l.add((Integer [][]) null); // illegal
                foo(l); // legal
                foo2(l); // illegal
                foo3(l); // illegal
                bar(l); // legal
                bar2(l); // illegal
                bar3(l); // legal
                bar4(l); // legal
            {   // can add array but cannot call a method which expects an array. 100% !
                List<Object> l = new ArrayList<Object>();
                l.get(0).toString();
                l.add(l.get(0));  // legal
                l.add((Object) null);  // legal
                l.add((Integer) null);  // legal
                l.add((Object []) null); // legal
                l.add((Integer []) null); // legal
                l.add((Integer [][]) null); // legal
                foo(l); // legal
                foo2(l); // illegal
                foo3(l); // illegal
                bar(l); // legal
                bar2(l); // legal
                bar3(l); // legal
                bar4(l); // legal
            {   // cannot add any type but can match ? or ? extends Object.
                List<? extends Object> l = new ArrayList<Object>();
                l.add(l.get(0));  // illegal
                l.add((Object) null);  // illegal
                l.add((Integer) null);  // illegal
                l.add((Object []) null); // illegal
                l.add((Integer []) null); // illegal
                l.add((Integer [][]) null); // illegal
                foo(l); // List<? super Object[]> - illegal
                foo2(l); // List<Object[]> - illegal
                foo3(l); // List<? extends Object[]> - illegal
                bar(l); // List<? super Object> - illegal
                bar2(l); // List<Object> - illegal
                bar3(l); // List<? extends Object> - legal
                bar4(l); // List<?> - legal
            {   // same as ? extends Object.
                List<?> l = new ArrayList<Object>();
                l.add(l.get(0));  // illegal
                l.add((Object) null);  // illegal
                l.add((Integer) null);  // illegal
                l.add((Object []) null); // illegal
                l.add((Integer []) null); // illegal
                l.add((Integer [][]) null); // illegal
                foo(l); // List<? super Object[]> - illegal
                foo2(l); // List<Object[]> - illegal
                foo3(l); // List<? extends Object[]> - illegal
                bar(l); // List<? super Object> - illegal
                bar2(l); // List<Object> - illegal
                bar3(l); // List<? extends Object> - legal
                bar4(l); // List<?> - legal
    }

  • How to add  z object to root object in BOL

    hi,
    I have to add my z object to BuilStandardAddress (standard object for BP Address ).I hav created a external object by using ztable.I can see that object in transaction GENIL_MODEL_BROWSER as a Root Object but I hav to add this object as dependent object under BuilStandardAddress .
    Please suggest any possible solution for this.
    Thanks in Advance.
    Hem

    hi carsten,
    Thanks a lot for reply.
    Acc to my opinion there is 2 method first one is enhance standard implementaion class.
    second one is to use this class.CL_CRM_GENIL_GEN_TABLE_OBJ
    I opt. second mehtod:
    Actually ,Our requirement is that we hav to add some custom  fields in addresss view.If weadd custom fields through EEWB then it adds fields to builheader rather then standard address.To achieve this I have created a external object and assign a impleimentation class (CL_CRM_GENIL_GEN_TABLE_OBJ). after this I hav define Object defination in which I define this object as dependent object of builstandardaddress.and give my z table name.After that I hav define Model defination in which i hav define relationship.By doing this I am able to use my object in view.Now I added this z attribute to the standardaddress node of standaddress view of component BP_ADDR.
    Now, I can see this field on UI screen but My Implementation Class has some methods(like modify, Save )that will save the data in z table.these methods are not calling at runtime.
    Plz suggest any solution
    Hem
    Edited by: janawa hemlata on Dec 4, 2008 7:31 AM

  • Multiple component instances for one component usage

    Hi,all
    How can I create multiple component instances for one component usage.
    I'm using the following code for creating  a single component instance for specific component usage:
    if(c_Usage.hasActiveComponent())
          c_Usage.deleteComponent();
    if(wdContext.currentContextElement().getSelectedTab().equalsIgnoreCase("Registered"))
          c_Usage.createComponent("health.gov.registered.Registered";);
    I can't create one more component instance for
    IWDComponentUsage c_Usage
    cause I have to delete the component instance associated with this component usage.
    Any idea how can I do it anyway?
    Regards,
    Michael

    Hi,
    To create another instance of the same component you need to embed the same component under the Used Components more then once. For Example if you have Componet A to which you want to embed Component B then under "Used Components" of Component A add component B twice.

  • How to Add New Object?

    HI,
    Any body can say how to add new object. For Example: The Document need to link with Invoice Transaction (T.Code: VF01, Table: VBRK/VBRP).
    Points will be rewarded, if information is useful.
    Tks
    Mani.

    Hi
    You can create New objects using the T.code: SE80.
    You can make an object link to SAP objects that are not shown in the possible entries list. To do this, proceed as follows:
    1. In the standard system, there are already two special screens for the module pools SAPLCV130 and SAPLCV140 for the linked SAP object.
    You must create two new screens with the same number for the module pools SAPLCV130 and SAPLCV140. The processing logic must follow that of screen 1204 in program SAPLVC130.
    2. Create function module OBJECT_CHECK_XXXX (XXXX = object name) If the object can be classified, this function module already exists .
    Otherwise copy the function module for linking equipment DOCUMENT_CHECK_EQUI and change it as required for the new object.
    Regards
    S.Sivakumar
    Reward points if useful----

  • Get error when add new object in crystal report

    hi
    i have this error "You are attempting to use functionality that falls under the Crystal Decisions Report Creation API license. This system does not have a valid license, or the evaluation copy of the license has expired. Please contact Crystal Decisions to obtain a Report Creation API license."
    when i add new object in crystal report with vb.net
    ""CRReport.Sections.Item(ii).AddTextObject("new text", 1000, 0)
    i do same program for 3 months ago but i lost it work without error
    ihave a license key for crystal report
    use cr10 with vb.net 2005
    can help me
    thanks

    Also, check out the blog [Use of the Report Designer Component (RDC) in VS .NET|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414700)ID0468837450DB00359707053703393347End?blog=/pub/wlg/15939].
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

Maybe you are looking for

  • Web page hosting on Windows 7

    I am using Home Control Assistant to control lights in my house. HCA uses a web page to allow other computers in the house to control devices. I am unable to access  the webpages since installing Windows 7. I have enabled the port 9955. I am unable t

  • File error: a file with this filename: media server has unexpectedly quit

    I have not had any problems until yesterday when I went to export a new FCP project to Compressor and received the above messages. I have tried renaming the project, re-rendering, etc. to no avail. I have tried to follow the suggestions of similar th

  • How I know if there notification for each transaction in each module

    dear Consultant's How I know if there notification for each transaction in each module and if it's enabled or need to enable For example: In AP: When I create, transaction is there any notification send When I create payment term is there any notific

  • One IDOC genearates 2

    Hi All, We have change points configured for SO (ORDERS.ORDERS05). When I create or change (ve02) any SO, two IDOCs are generated in WE02 and the the same 2 IDOCS are sent to PI. Both the IDOCS have same data in data and control records. The only thi

  • Firewire drives fail to detect

    I have this pesky blue-and-white G3 tower. When I'm booted off the installation media for Tiger, firewire drives show up and mount. When I'm booted off a Mac OS 9 partition, firewire drives show up and mount. When I'm booted off the otherwise flawles