How to implement a toolbar to many forms.

I am developing a an application and made a toolbar, I want that every form I make use this toolbar, How?
Actually the tool bar is called from a form, how I do to call it from another form to ge only the toolbar, not the form where it is.
thanks an advance.

er maybe, heve each form maintain whether it is the "active" form or not.
Have all Your "WIndows" er forms implement ActionListener Interface
Make your ToolBar in its own class,
public class MultiToolbar extends JToolbar
}Have Method in the MultiToolBar class
something like this:
where MyForm is the className of your 'Forms'
public void  setListener( MyForm inForm )
  // loop over all the buttons on the toolBar
   Button1.addActionListener( inForm );
   Button2.addActionListener( inForm );
  // or however you decide to implement it
}in your MYForm class:
public void actionPerformed( ActionEvent e )
    if( ! TestIfIAmTheCurrentForm() )
      return;
   // Handle the action sent by the Toolbar
}So When User clicks say "Paste From ClipBoard" from the Toolbar
all the forms get sent an ActionEvent - related to "Paste From Clipboard" however you decide to implement it.
If the Form is active, perhaps try using something like hasFocus(),
Then Only That Form acts and does the "Paste" Action
OR:-
YOu could make your JFrame or whatever the Toolbar is on,
decide which form to despatch some message to or something like that.
If you Mean:
I have 50 Forms, I want them all to use the same looking Toolbar - but 50 of them.
make a Toolbar with a constructor that takes an ActionListener:
public MultiToolBar extends JToolBar
public MultiToolBar( ActionListener listener )
    //blah
   Button1.addActionListener( listener );
   // and so on.
}Then each Form that implements ActionListener goes:
   MultiToolBar Fred = new MultiToolBar( this );
   // Set Fred as the Toolbar for this windowI used that approach when I made something that when you click on its toolbar you get a little window with a "thumbnail" Image
and a Toolbar with 4 Zoom buttons on it.
I only wanted to write that toolbar once.........

Similar Messages

  • How to implement Search Help in Interacive Form based on WebDynpro Java?

    Hi Experts,
    How to implement Search Help in Interacive Form based on WebDynpro Java?
    Could someone please provide the prerequisites and the code for the same.
    Regards,
    Shobhit

    Extend the controller and get the handle of the current row of the VO. Set set the attribute context filed accordingly. Also get the handle fo the flexbean and set the context. According rendering would change.
    Regards
    Sumit

  • How to Implement User Area in Oracle Forms 6i

    Hi,
    Could anyone please let me know how to implement Item Type *"User Area"* ?
    How to add User Area in layout Editor?,
    Thanks and Regards,
    Manasa

    Hi,
    Please post your question in the appropriate forum.
    Forms
    Forms
    Thanks,
    Hussein

  • How to implement delete functionallity on a form

    Hello
    I have a form that displays the current row of a table, and you can modify it. I want to implement delete functionality in such a way that deletes the current row and shows the next one in the form.
    My problem is that the delete button must be with immediate=true, because I don't want the fields to be validated, just deleted!
    But when a command button (like Delete) is immediate=true then the input fields in the form doesn't get updated with the next row values (only the readonly fields like output text get updated).
    Any idea how this scenario must be implemented in JSF ?
    Thanks!

    try binding the table to an arrayList , and make shure the form or its area is reRendered once you delete it from the arrayList

  • How to implement autocomplete in a search form?

    Hi all,
    I´m trying to implement the autocomplete in a search form but I think I'm missing something in content server...
    Is there a simple away to do it in content server?
    With PHP it doesn´t work in content server, right?
    Where can I find a good tutorial about that?
    Thank you in advance,
    RRS

    Here's a really good one and I know it works on UCM:
    http://developer.yahoo.com/yui/autocomplete/
    cheers

  • How can implement running total in oracle forms

    I want to implement a running total in oracle form
    like
    100 100
    300 400
    200 600
    500 1100
    200 1300
    100 1400
    PROCEDURE calculate_srno IS
    current_rownum     integer:=:System.Cursor_Record;
    starting_srno integer:=:rs_1;
    last_rownum integer;
    BEGIN
         last_record;
         last_rownum:=:system.cursor_record;
         go_record(1);
         FOR counter IN 1..last_rownum LOOP
              :sum_1:=:rs_1;
              :rs_1:=:sum_1+:rs_1;
         --     :offered_srno_to:=starting_srno;
              if last_rownum=:System.Cursor_Record then exit;
              end if;
         END LOOP;
    END;
    it is not working after want to insert between in the table

    Why write code for this? Oracle Forms 10g has Calculated/Summary fields that will do this for you without the need of writing any PL/SQL.
    Simply add a non-table item to the data block with the item you want to keep the running total for. Then change the following properties of the item:
    Data Type: Number
    Calculation Mode: Summary
    Summary Function: Sum
    Summarized Block: <Your Data Block>
    Summarized Item: <Your Block Item>
    Number of Items Displayed: 1 (if your item is in a Multi-Record (Tabular) layout else you don't need to change this property.
    You will also need to change the following property of the block: Query All Records: Yes
    If changing the Block's "Query All Records" property causes your form to be too slow because of the number of records in your block, then you could keep a running total manually by using a combination of the Post-Query and When-Validate-Item (WVI) triggers. If your block does not allow data entry, then you could do this with just the Post-Query trigger. For example:
    BEGIN
      /* This code sample assumes you have added a non-table item */
      /* to your block called SUMMARY.  */
      :YOUR_BLOCK.SUMMARY := :YOUR_BLOCK.SUMMARY + NVL(:RS_1,0);
    END;If your block allows data entry, then you would add the following to your existing WVI trigger.
    BEGIN
      /* Perform your data entry validation logic first... */
      IF ....
      ELSE
        ...Validation is successful...
        :YOUR_BLOCK.SUMMARY := :YOUR_BLOCK.SUMMARY + NVL(:RS_1,0);
      END IF;
    END;Hope this helps.
    Craig...

  • How to use F4 help on PDF form

    Hello,
    I'm using Adobe Interactive Form with WebDynpro for Java.
    I'd like to use F4 value help on Adobe Form.
    Does anyone know how to implement F4 help on PDF form ?
    Regards,
    Koji.

    Hi,
    SAP Note: 1013227.
    But you should have ZCI based forms. Note: 1055911 and 1042394.
    It always makes sense if you specify the NetWeaver SP release you are on along with any other information that you think is important.
    Best Regards,
    Krish

  • How many types of authentications in sharepoint and how to implement those authentication in sharepoint?

    Hi All,
    How many types of authentications in sharepoint and how to implement those authentication in sharepoint?
    can any one explain the above things with examples?
    Thanks in Advance!

    In addition to
    A Sai Gunaranjan you can also check this URL for Sharepoint 2010:
    http://technet.microsoft.com/en-us/library/cc288475(v=office.14).aspx
    http://www.codeproject.com/Tips/382312/SharePoint-2010-Form-Based-Authentication
    ***If my post is answer for your query please mark as answer***
    ***If my answer is helpful please vote***

  • How to implement a java class in my form .

    Hi All ,
    I'm trying to create a Button or a Bean Area Item and Implement a class to it on the ( IMPLEMENTATION CLASS ) property such as ( oracle.forms.demos.RoundedButton ) class . but it doesn't work ... please tell me how to implement such a class to my button .
    Thanx a lot for your help.
    AIN
    null

    hi [email protected]
    tell me my friend .. how can i extend
    the standard Forms button in Java ? ... what is the tool for that ... can you explain more please .. or can you give me a full example ... i don't have any expereience on that .. i'm waiting for your reply .
    Thanx a lot for your cooperation .
    Ali
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by [email protected]:
    Henrik, the Java importer lets you call Java classes on the app server side - I think what Ali is trying to do is integrate on the client side.
    If you want to add your own button then if you extend the standard Forms button in Java and then use this class name in the implementation class property then the Java for your button will be used instead of the standard Forms button. And since it has extended the basic Forms button it has all the standard button functionality.
    There is a white paper on OTN about this and we have created a new white paper which will be out in a couple of months (I think).
    Regards
    Grant Ronald<HR></BLOCKQUOTE>
    null

  • How to implement the spell check in oracle forms 10g or 6i...

    How to implement the spell check in oracle forms.
    Is there any different method is there.
    Please help me....
    Praveen.K

    Here is one different from Jspell..
    In 6i client/server you can call MS Word spell checker using OLE. Below sample code for 6i.
    For 10g you will need webutil to use same code. install webutil and just replace "OLE2." with "CLIENT_OLE2."
    PROCEDURE spell_check (item_name IN VARCHAR2)
    IS
       my_application   ole2.obj_type;
       my_documents     ole2.obj_type;
       my_document      ole2.obj_type;
       my_selection     ole2.obj_type;
       get_spell        ole2.obj_type;
       my_spell         ole2.obj_type;
       args             ole2.list_type;
       spell_checked    VARCHAR2 (4000);
       orig_text        VARCHAR2 (4000);
    BEGIN
       orig_text := NAME_IN (item_name);
       my_application := ole2.create_obj ('WORD.APPLICATION');
       ole2.set_property (my_application, 'VISIBLE', FALSE);
       my_documents := ole2.get_obj_property (my_application, 'DOCUMENTS');
       my_document := ole2.invoke_obj (my_documents, 'ADD');
       my_selection := ole2.get_obj_property (my_application, 'SELECTION');
       ole2.set_property (my_selection, 'TEXT', orig_text);
       get_spell :=ole2.get_obj_property (my_application, 'ACTIVEDOCUMENT');
       ole2.invoke (get_spell, 'CHECKSPELLING');
       ole2.invoke (my_selection, 'WholeStory');
       ole2.invoke (my_selection, 'Copy');
       spell_checked := ole2.get_char_property (my_selection, 'TEXT');
       spell_checked :=SUBSTR (REPLACE (spell_checked, CHR (13), CHR (10)),1,LENGTH (spell_checked));
       COPY (spell_checked, item_name);
       args := ole2.create_arglist;
       ole2.add_arg (args, 0);
       ole2.invoke (my_document, 'CLOSE', args);
       ole2.destroy_arglist (args);
       ole2.RELEASE_OBJ (my_selection);
       ole2.RELEASE_OBJ (get_spell);
       ole2.RELEASE_OBJ (my_document);
       ole2.RELEASE_OBJ (my_documents);
       ole2.invoke (my_application, 'QUIT');
       ole2.RELEASE_OBJ (my_application);
    END;Call it like this: SPELL_CHECK ('BLOCK.MY_TEXT_ITEM' );

  • How to implement a Date Picker (Calendar) as a LOV in Portal Form?

    I have a form, which will input date from user, and I also have javascript calender.
    How to implement a Date Picker (Calendar) as a LOV in Portal Form? Do I need to choose POPUP and LOV for Date?
    Instead of typing the Date within a Portal form, a popup Calender that will allow user to Pick a date.
    Please help anyone!!

    Once you have the JavaScript and have added it to your form, you need to the the following. First off, you need to be able to customize the HTML code for the form (i.e. choose custom for form type when creating the form). Once you do that go into the custom layout to customize your HTML code. Find the field you want to add the date picker to. It will be <#your_field_name.ITEM#>
    Paste this code after it:
    <a href="javascript:show_calendar('forms[0.elements[16');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;"><img src="the source of your image file" width=34 height=21 border=0></a></TD>
    You will have to play around with the forms[0].elements[16]. 16 is what date field is set to. However your will differ, so just play with it.
    Hope this helps.
    Martin

  • How to implement Scroling Messages in Forms 6i

    Dear Friends,
    I have a requirement as stated below.
    I have to fetch data from table and display on the forms as a scroling message ( like messages appearing on the webpage , moving from right to left ) in forms 6i application.
    I dont have any idea about how to implement it iam not sure if it is possible or not
    If you have any idea how to acheive this please suggest me
    Regards,
    Khader

    Write Code in When-New-form instance
    if id_null(create_timer('SCROLL_TIMER', 200, REPEAT)) then
         null;
    end if;
    When-Timer-expired
    DECLARE
         TimerName varchar2(40) := get_application_property(TIMER_NAME);
    BEGIN
         if TimerName = 'SCROLL_TIMER' then
              scroll_view('CNv_SCROLL', 0, mod(get_view_property('CNv_SCROLL', VIEWPORT_Y_POS_ON_CANVAS)+1, 37));
    end if;
    END;
    Create a Stacked CNV_SCROLL on you canvas
    and write any text in CNV_Scroll
    I hope your problem will solve.

  • Is there a limit to how many forms are submitted at a time?

    Is there a limit to how many forms are submitted at one time? We're using FormsCentral for an employment application, and want to make sure that there won't be any problem if hundreds were accessing and submitting our form at one time.

    While we don't publish any explicit concurrent submission limitations I can tell you that we have at least one customer who collects thousands of responses over a 15 minute period. If you find that your application using thundereds of users becomes unresponsive we'd love to know about it and will investigate such occurances immediately.
    Andrew Yarborough

  • I use the Norton toolbar feature that manages all my passwords. How can I go back to the former version of Firefox since 4 is not compatible?

    How can I go back to a former version of Firefox?

    Symantec need to update their Firefox add-ons so that they are compatible with Firefox 4. They have indicated that for Norton 360 they plan to release an update to Norton 360 to support Firefox 4 in early May - http://us.norton.com/support/kb/web_view.jsp?wv_type=public_web&docurl=20100720113635EN&ln=en_US
    I do not know about the time scale for updates for other Norton products. Pending the update by Symantec, if you want to use the Norton add-ons you will need to downgrade to Firefox 3.6.
    To downgrade to Firefox 3.6 first uninstall Firefox 4, but do not select the option to "Remove my Firefox personal data". If you select that option it will delete your bookmarks, passwords and other user data.
    You can then install the latest version of Firefox 3.6 available from http://www.mozilla.com/en-US/firefox/all-older.html - it will automatically use your current bookmarks, passwords etc.
    To avoid possible problems with downgrading, I recommend going to your profile folder and deleting the following files if they exist - extensions.cache, extensions.rdf, extensions.ini, extensions.sqlite and localstore.rdf. Deleting these files will force Firefox to rebuild the list of installed extensions, checking their compatibility, and reset toolbar customizations.
    For details of how to find your profile folder see https://support.mozilla.com/kb/Profiles

  • How can i effect a change in many forms simultaniously...?

    How can i effect a change in many forms simultaniously.......?

    I have done something with C API. I Got the following example from Oracle.com. I can compile this file But while Linking this there is a linking error. The error occurs while linking ifd2f60.LIB.
    #include <stdio.h>
    #include <iostream.h>
    #include <dir.h>
    #include <stdlib.h>
    #include <malloc.h>
    #include <math.h>
    #include <d2fctx.h> /* Forms API context */
    #include <d2ffmd.h> /* Form module header file */
    int main (int argc,unsigned char *argv[])
    d2fctxa ctx_attr;
    d2fctx *ctx;
    d2ffmd *form;
    text *form_name;
    /* Check arguments */
    if ( argc != 2 )
    fprintf(stderr, "USAGE: %s <filename>\n", argv[0]);
    exit(1);
    /* Create Forms API context */
    ctx_attr.mask_d2fctxa = (ub4)0;
    if ( d2fctxcr_Create(&ctx, &ctx_attr) != D2FS_SUCCESS )
    fprintf(stderr, "Error creating Forms API context\n");
    exit(1);
    /* Load the form module into memory */
    if ( d2ffmdld_Load(ctx,&form, argv[1], FALSE) != D2FS_SUCCESS )
    fprintf(stderr, "Failed to load form module: %s\n", argv[1]);
    exit(1);
    /* Get the name of the form module */
    if ( d2ffmdg_name(ctx, form, &form_name) != D2FS_SUCCESS )
    fprintf(stderr, "Error getting the name of the form module\n");
    else
    /* Print the name of the form, then free it */
    printf ("The name of the form is %s\n", form_name);
    free(form_name);
    /* Destroy the in-memory form */
    /*if ( d2ffmdde_Destroy(ctx, form) != D2FS_SUCCESS )
    fprintf(stderr, "Error destroying form module\n");
    /* Close the API and destroy context */
    d2fctxde_Destroy(ctx);
    return 0;
    }

Maybe you are looking for

  • Internal Problem!!!

    Hi, When i login as internal i get the following message " insufficient privileges". I don't remember tampering with any user privileges. Why do i get this error. And how to solve it. By the way i have anither user with sysdba privileges. will that h

  • DVD Help

    I'm having a problem with my disc drive. It's reading CD's, but having trouble with DVD's. Sometimes it will load them, but the majoity of the time it'll just eject them. I did the PRAM and SMC resets, i.e. talking out the battery while the comp is o

  • Replace Report Model with another Report Model for existing reports

    Hi All, I have a report model on which few reports depends and for some reasons I want create a similar report model and repoint all existing reports to new report model. When I am trying to this I get below error. Please help. An error has occurred

  • Trying to find mounting bracket

    I am tring to find this metal mounting bracket so I can connect my ThinkVision monitor directly to my docking station instead of having it sit on the stand. Someone else in my office has one, so I know they exist.  Here is a picture of what it looks

  • SOAP and XML-RPC

    Which are Oracle's plans for supporting SOAP and XML-RPC?