How to create a my own control

Suppose I want to create my control, how can I do it.
Like TextField with Button, i have to create a control by some methods.
How to do it.

You can do that depending what kind of Controls you want to create either
For Simple Component
create a Class and extend
java.awt.Component or
javax.swing.JComponent
For Window/Container type of stuff
java.awt.Window
java.awt.Container
and write/override certain methods and continue doing the same
Bye for now
CSJakharia

Similar Messages

  • How to create cost element in controlling

    how to create cost element in controlling for Direct meterail.
    i have to create for each materail or on rm consumption is enough
    please give me replay
    thanks

    Hi Nagaraju,
    First you create the required account as cost element through FS00 and select your gl account and edit cost element and give 1 in cost element category.
    Afterwards in OKB9 You create the cost element whether it is required for Bus Area mandatory, profit centre mandatory and Valuation area is mandatory.  Based on your selection you have to assign 1, 2 or 3.  Ex. You have selected for consumption account profit centre is mandatory.  You give 3.  and you have to assign the cost centre against profit centre.  Then automatically your consumption will post to the cost centre.
    BSR

  • How to create bdc with table control

    hi all.
    please some body tell me how to create bdc with table control
    or suggest any www with screen shots
    thanks in advance ,
    aparna

    Hi AParna,
    Its very Simple.
    ALl you have to do is set up a counter based on the number of lines in the tabke. when the counter reaches the number of lines in the table hit the next page button which is at the top of every screen in SAP.
    Please refer to the following BDC program I had developed using Table control,
    this is for ME01 transaction.
      LOOP AT T_EORD_HED.
        SELECT SINGLE * FROM MARA WHERE MATNR = T_EORD_HED-MATNR.
        IF SY-SUBRC = 0.
          PERFORM BDC_DYNPRO      USING 'SAPLMEOR' '0200'.
          PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                        'EORD-MATNR'.
          PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                        '/00'.
          PERFORM BDC_FIELD       USING 'EORD-MATNR'
                                        T_EORD_HED-MATNR.       "'58335'.
          PERFORM BDC_FIELD       USING 'EORD-WERKS'
                                        T_EORD_HED-WERKS.       "'0253'.
          L_COUNT = 1.
          LOOP AT T_EORD WHERE MATNR = T_EORD_HED-MATNR
                           AND WERKS = T_EORD_HED-WERKS.
            SELECT SINGLE * FROM LFA1 WHERE LIFNR = T_EORD-LIFNR.
            IF SY-SUBRC = 0.
    * Look into the if condition below
              IF L_COUNT = 010.
                L_COUNT = 1.
                PERFORM BDC_DYNPRO      USING 'SAPLMEOR' '0205'.
                PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                      'EORD-MATNR'.
                PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                       '=NS'.
                L_COUNT = L_COUNT + 1.
              ENDIF.
              PERFORM BDC_DYNPRO      USING 'SAPLMEOR' '0205'.
              PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                            'EORD-AUTET(01)'.
              PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                            '/00'.
              CONCATENATE 'EORD-VDATU' '(' L_COUNT ')' INTO OPR_FIELD.
              WRITE SY-DATUM TO T_EORD-VDATU.
              PERFORM BDC_FIELD       USING OPR_FIELD
                                            T_EORD-VDATU.
              CONCATENATE 'EORD-BDATU' '(' L_COUNT ')' INTO OPR_FIELD.
              WRITE T_EORD-BDATU TO V_BDATU.
              PERFORM BDC_FIELD       USING OPR_FIELD
                                            V_BDATU.
              CONCATENATE 'EORD-LIFNR' '(' L_COUNT ')' INTO OPR_FIELD.
              PERFORM BDC_FIELD       USING OPR_FIELD
                                            T_EORD-LIFNR.
              CONCATENATE 'EORD-EKORG' '(' L_COUNT ')' INTO OPR_FIELD.
              PERFORM BDC_FIELD       USING OPR_FIELD
                                            '0001'.
              CONCATENATE 'EORD-RESWK' '(' L_COUNT ')' INTO OPR_FIELD.
              PERFORM BDC_FIELD       USING OPR_FIELD
                                            T_EORD-RESWK.
              WRITE T_EORD-MEINS TO V_MEINS.
              CONCATENATE 'EORD-MEINS' '(' L_COUNT ')' INTO OPR_FIELD.
              PERFORM BDC_FIELD       USING OPR_FIELD
                                            V_MEINS.
    *          CONCATENATE 'EORD-EBELN' '(' L_COUNT ')' INTO OPR_FIELD.
    *          PERFORM BDC_FIELD       USING 'OPR_FIELD'
    *                                        T_EORD-EBELN.
              CONCATENATE 'EORD-EBELP' '(' L_COUNT ')' INTO OPR_FIELD.
              PERFORM BDC_FIELD       USING OPR_FIELD
                                            T_EORD-EBELP.
              IF T_EORD-FLIFN NE SPACE OR T_EORD-FRESW NE SPACE OR
                 T_EORD-FEBEL NE SPACE.
                CONCATENATE 'RM06W-FESKZ' '(' L_COUNT ')' INTO OPR1_FIELD.
                PERFORM BDC_FIELD       USING OPR1_FIELD
                                              'X'.
              ENDIF.
              IF T_EORD-NOTKZ <> ''.
                CONCATENATE 'EORD-NOTKZ' '(' L_COUNT ')' INTO OPR_FIELD.
                PERFORM BDC_FIELD       USING OPR_FIELD
                                              'X'.
              ENDIF.
              CONCATENATE 'EORD-AUTET' '(' L_COUNT ')' INTO OPR_FIELD.
              PERFORM BDC_FIELD       USING OPR_FIELD
                                            T_EORD-AUTET.
              L_COUNT = L_COUNT + 1.
            ENDIF.
          ENDLOOP.
          PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                        'EORD-MATNR'.
          PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                        '=BU'.
          CALL TRANSACTION 'ME01' USING I_BDCDATA
                        MODE UP_MODE
    *                     optIONS  FROM l_opt
                        MESSAGES INTO I_BDCMSGCOLL.
          PERFORM FORMAT_OUTPUT.
        ENDIF.
      ENDLOOP.

  • How to create and use Webservice controls using WSDL in weblogic portal10.3

    Hi All,
    I have WSDL , How to create webservice controls using the WSDL in weblogic portal 10.3 and use those controls to invoke those webservice methods?
    please give me the documents links for this.
    Thanks
    Venkata Sarvabatla

    As far as I remember, Controls can be called only from Pageflows, BackingFiles, Another Control (Like control calling another control) etc. In pageflow we use annotation @Control and give control classname and a varialbe for that. I am pretty sure this annotation may not work from normal java class and in your case a JAVA JSR Class.
    If you installed the samples, refer the samples from WLS: C:\beawlp103\wlserver_10.3\samples\server\examples\src\examples\webservices. They have lot of fully ready to work samples with instructions. I used clientgen ant task. But you can use standard SUN JDK Command "wsimport" also to generate the java files from the WSDL. Open any command prompt. If java is in classpath, just run wsimport and that should give an idea.
    Goud

  • How to create an object like "Control Account" in JE? u5982u4F55u7F16u5199u63A7u5236u79D1u76EEu63A7u4EF6

    I want to create a user screen like Journal Entry. How could I create an object like "Control Account" in JE?
    我想编写一个象u201C日记帐分录u201D那样的屏幕,但是不知道其中u201C控制科目u201D列的控件如何编。请教各位高手。谢谢
    Edited by: An Ping Zhang on Sep 15, 2009 4:57 AM

    Dear An Ping Zhang,
    The "Control Account" column in JE is used ChooseFromList.
    You could refer to SDK sample
    SDK\Samples\COM UI\VB.NET\17.ChooseFromList.
    BTW: you could post your question in Chinese into SAP Business One 中文论坛
    /community [original link is broken]
    Best Regards
    Jane Jing
    SAP Business One Forums team

  • How to create subscreens in tabstrip control using  module pool

    hai experts,
    can u plz give me step by step procedure to create subscreens in tabstrip control using  module pool,

    hi,
    You can check this program
    <b>  DEMO_DYNPRO_TABSTRIP_LOCAL </b>
    This will help you in understanding the concept and how to create subscreens.
    Regards
    Nishant

  • SAPUI5-How to create custom Split Page control

    I want to create a custom split -like page control using sap.m library instead of Splitter.This page should contain two areas left and right
    content with different width.How to create this type of page as a custom control?
    Please help me with this.

    Hi,
    I think There is no need to create Custom Page for the labels.
    To create labels in SAPSCRIPT, you will have to define multiple MAIN WINDOWS in the Page Window.. try the following steps..
    Main windows in page windows allow you to format text in multiple columns. Define an area in the page window, in which to position the main windows.
    1. Create a page window and assign it to a page.
    2. Choose Edit --> Main windows.
    A dialog box appears.
    3. Enter values in the fields Area width and Area height in accordance with the input guidelines for main windows.
    4. Enter values in the fields Spacing and Number in the Horizontal group if you want to use multiple columns. You can ignore the fields in the Vertical group.
    5. Determine how many columns and line areas are required for label printing. Then enter the corresponding values in the fields in the Horizontal and Vertical groups.
    Also Check these links.
    how to create labels in sap script?
    labels in script
    Labels in Scripts
    Regards
    Shiva Kumar

  • How to create a MenuButton-like control (skin)?

    Hi,
    I want to create a MenuButton-like control.
    But instead of popping up a ContextMenu, I want my own popup in that place. (I want the user to chose from a set of icons, which are displayed in a TilePane).
    Unfortunately I am stuck with the basic button skin.
    If I derive from MenuButton and override fire(), this method isn't called (unlike if I derive from Button).
    If I derive from Control and set a skin, I don't know, what to do, so that the skin looks like a MenuButton. If I derive the skin from MenuButton, I again don't get the ActionEvent.
    I also copied the style from class "button" from caspian.css and renamed it to my control name. It loads the skin, but e.g. the background-color is not applied.
    Any advise?

    Sure it can be done in AI, so what is actually your question?
    Mylenium

  • How to create a profile to control the access to Query Designer 2004s

    Hi all,
    I saw the note Note 962530 - NW04s: How to restrict access to Query
    Designer 2004s , where in alternative solution there is the approach on
    how to create a database table and modify the function module to control the access.
    However, we need to a security profile check that can prevent or allow
    who can access 04s tools. Because this is easy to maintain and we don't need to modify the database table time to time.
    Please update if it is feasible to have a check within the profile
    of the users to acces 04s query desinger. This way we can control
    effectively who can access new tools.
    Thanks,
    Dicky

    I can suggest that as this is a Security you might wanna ask the Person who is handling Security in your office.
    He can add different Roles which can then control their acess.
    For e.g. if you want that your user should be able to run Specific Queries a,b,c,d created by you.
    I will suggest interact with SEcurity Personal and ask him to create a Role X.
    You can then publish  your queries in Role X.
    So your users will have acess and security for X and they will then run the queries from them.
    Likewise, different other options are also there.
    If your queries are on Planning cube then things like giving them acess to Tools should take place similarly in different fashion.
    Your user can also use Query desinger and can opne queries from Roles .
    Hope this helps.

  • ABAP HR How to create infotype with table control in it like Infotype 0008

    Hi Experts.
    I need help from u guys. My client requirement is to create custom infotype just like 0008 infotype which contain table control to save amount and wage types. I try to create infotype with table control using PM01, but that table control is in display mode only, i almost search every where to create custom infotype with table control but what ever threads in forum all are they unanswered and most of the threads for creating infotype. But i already done with infotype , but my main problem is table control.
    If any one have some suggestion for this please share with me.
    <removed by moderator> i am looking for positive reply.
    Edited by: Thomas Zloch on Aug 30, 2011 12:54 PM

    Hi
    I've created several infotypes with a Table Control and it is always the same story. You have to create a custom Z table to store the Table Control data (if you can have unlimited records), so in the PSXXXX structure you need to add a TABNR field to link the PAXXXX table and the Z one, just like the type table OM infotypes.
    Then in your code you have to control every possible operation, INS, MOD, DEL... and update the Z table accordingly (the standard code won't do that)
    If your TC fields appear in display mode, take a look at the Groups 1 and 3 in your fields, the must be set with the usual values for a PA infotype.
    If you have more questions, just ask,
    Regards

  • How to create a step loop control in a screen

    Hi,
    Basically, what I need to do is to create a fully dynamic screen. I want to send the structure name and the fiednames and the function will create a screen will all the required fields.
    I explored many possibilities and the best one seems to be using the step loop control in a screen. I know, this is really old technology but I do not care as long as this work great !
    I saw that the function group MASSFREESELECTIONS is doing it, this look pretty simple, fast and fully dynamic...
    My only problem is that I'm not able to create a step loop control in a standard screen.... is it an obsolete function that was removed from the control list ?
    Thanks
    Dany
    Message was edited by:
            Dany Charbonneau

    Hi,
    STEP LOOPS
    Step Loops are type of screen table . Step loops are repeated blocks of field in a screen. Each block contains one or more fields and these blocks are repeated. Step loops aren’t like actual table. You can scroll vertically but not horizontally. Three steps are associated with creation of step loops:
    • Creation of step loops on screen, which includes declaring fields on the screen and then defining the step, loops for these fields.
    • Passing data to the step loop is exactly similar to the passing of data to table controls.
    • In step loop, you don’t need to define the step loop as such in the module pool program but the cursor needs to be defined in the program.
    Types of Step Loops
    • Static – Static Step Loop (SSL) have fixed size that cannot be changed during the runtime. If user resizes the window, the size of the static step loop is not changed.
    • Dynamic – Dynamic Step Loop (DSL) is variable in size. When the user resizes the window, the system increases or decreases the number of the step loop blocks.
    You can have only one dynamic step loop and can have as many static loops in your transaction.
    Programming with the Static and dynamic step loop is exactly same. For the system or for the user it doesn’t make any difference whether it is static or dynamic step loop. Only attribute, which you fix during designing of the step loop, is type attribute for step loop F for fixed i.e static and V for variable i.e. dynamic.
    Writing code for Step Loop in the flow logic.
    PBO.
    Loop at itab cursor cl.
    Module set.
    Endloop.
    PAI.
    Loop at itab.
    Endloop.
    Empty loop is must for both table control and step loop
    LOOP AT statement for step loops and Table controls is similar. Loop At statement transfers the data to screen table. You need to have the Module to assign the values for the screen table.
    In module pool program you need to define the cursor.
    Date: CL TYPE i.
    Cursor parameter tells which line of step loop display should start.
    “Module Set” in module pool program assigns the values to step loop fields, which is similar to table controls.
    Refer to this program <b>DEMO_DYNPRO_STEP_LOOP</b>
         hope u can get some idea about table control & step loop in this line.
    http://www.sapfans.com/sapfans/repos/comelite.htm
    Check this link,
    http://help.sap.com/saphelp_erp2004/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/frameset.htm
    <b>Reward points</b>
    Regards

  • How to create an array with controls and indicators?

    I want to create a scrollable array of control/indicator pairs from a config file.  Something that looks like the attached image.  Of course, I can only create an array that's either either a control or indicator -- not both (the operator should not be able to edit the name or change the state of the LED).  So I guess I need to split the array and have two side-by-side and SOMEHOW link the scrollbars.  But then I have no idea how I can get the control switch states from the array.  Is there an easier way to do what I'm trying to do?
    Attachments:
    New Bitmap Image.JPG ‏11 KB

    Hello,
    Another option would be to use the custom control I built for you, see below.  You can just drop this into an array, it should look like your example (more or less).
    Cheers!
    CLA, CLED, CTD,CPI, LabVIEW Champion
    Platinum Alliance Partner
    Senior Engineer
    Using LV 2013, 2012
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
    Attachments:
    Custom Switch.ctl ‏8 KB

  • My children are currently sharing an account with my ex husband, how can create them their own account so they are not dependent on him, will they lose all their music they have bought on his account?

    As far as I can tell, they don't have their own libraries or store accounts

    Thank you this helps, also once they create their own id, will their purchased songs be theirs?
    Yes.
    Can they share a library together somehow??
    They can either share an Apple ID, or, if they create two seperate accounts, they can authorize the same computer with two different apple IDs so purchases across both accounts are accessible on the same machine.
    An additional option for sharing an iTunes library across machines on the same network exists:
    iTunes: How to share music and video - Support - Apple

  • Re: please help.. mmapi.. how can i write my own controls for audio process

    it is just like
    for example when we increase the volume, the player
    keeps playing without pausing.. i want my controller
    to be able to do this.. first of all:
    have you ever created a javaME music player with a volume control?
    if you did one and well implemented it, you should have seen that increasing volume (in
    a good implementation) never causes pausing...
    so, is it possible to write
    my own audio control class in j2me? and is it
    possible to make it real time without causing the
    player pause?second:
    you can try... good luck

    Thanks. with your help i found this ;[https://addons.mozilla.org/en-US/firefox/addon/add-to-search-bar/ addons.mozilla.org/en-US/firefox/addon/add-to-search-bar/]
    with that tool you just right click mouse in search box what i want to add to the bar and select "add to search bar..."!!!THANKS!!!(yea it didn't found from the site search you gave but there was link to this tool what gives you "the power"(:D) to add it)
    ps. copy that link to ur post so i can put it solved!

  • How to create array for activex control

    Now I am using microsoft form 2.0 combo box activex control in LabVIEW. My problem is I cannot create control array for the combobox like in visual basic. In visual basic, if we want to create control array for combo box or else, we just copy and paste onto the same form.
    For example if I copy combo1 and paste it onto the same form it will become 2 combo box i.e combo1(0) and combo1(1). So,how can I make same like that in labview using that activex?

    I'm sorry,I do not really understand. I've tried what have you told me by using automation refnum, but it is not working.
    I attached the file. if, let say , I want to make this three combobox red back colour simultanously, how to do it?
    Attachments:
    combo_box_activex.vi ‏28 KB

Maybe you are looking for