Optimization problem... swing interface

I have a swing application, and i want to execute a method that makes many calculations and takes much time. When i call the method with the swing dialog open, it takes about 10x more time then if it was run from a console application, because the dialog remains handling events and all. How do i pause the event handling of the interface, or what should be the aproach to this situation?

You might want to take a look at invokeAndWait and invokeLater of the SwingUtilities class:
http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/SwingUtilities.html

Similar Messages

  • Query Optimization Problem

    Hi
    I have a optimization problem and wondering if you can help me, The problem is I am getting two diffrent costs for two diffrent users, when I login and run as the object owner the cost is normal but when I login and run the query as a diffrent user I have a dramatic increase in the costs.
    For example to retrieve the rows from Work_Order_Coding_Tab as the object owner the cost is 1 while logged in as the other user the cost is 26070 :(.
    views such as xxx_work_order_coding, active_work_order has got more than 2 million records.
    The query is
    SELECT a.wo_no "AOnr", a.customer_no "Kundnr", c.name "Kundnamn",
    a.contact "Kontakt", a.reference_no "Referens",
    a.err_descr "Kort_beskrivning", replace(a.err_descr_lo, chr(13) ||
    chr(10), ' ') "Lång_beskrivning", a.mch_code "Objektnr",
    b.mch_name "Objektnamn", replace(a.performed_action_lo, chr(13) ||
    chr(10), ' ') "Utfört arbete", sum(b.amount) "Kostnad", sum(
    b.sales_price_amount) "Kundpris", a.reg_date "Regdatum",
    a.real_f_date "Utf_datum", a.work_master_sign "Arbetsbefäl",
    a.work_type_id "Arbetstyp", a.state "Status"
    FROM objown.active_work_order a, objown.xxx_work_order_coding b,
    objown.cust_ord_customer c
    WHERE b.work_order_account_type = 'Kostnad'
    AND a.wo_no = b.wo_no
    AND a.mch_code = b.mch_code
    AND a.customer_no = b.customer_no
    AND a.customer_no = c.customer_no
    AND b.customer_no = c.customer_no
    AND a.mch_code = b.mch_code
    AND b.order_no IS NULL
    AND a.agreement_id IS NULL
    AND (a.work_type_id = 'L'
    OR a.work_type_id = 'U'
    OR a.work_type_id = 'S'
    OR a.work_type_id = 'T'
    OR a.work_type_id = 'UF')
    AND a.customer_no < '5%'
    AND a.customer_no LIKE '10027'
    AND a.org_code LIKE '510'
    AND a.state LIKE 'Av%'
    GROUP BY a.wo_no, a.customer_no, c.name, a.contact, a.err_descr,
    a.err_descr_lo, a.mch_code, b.mch_name, a.performed_action_lo,
    a.work_master_sign, a.work_type_id, a.reference_no, a.state,
    a.reg_date, a.real_f_date
    When Running as the object owner I get the following costs, is
    Step # Description Est. Cost Est. Rows Returned Est. KBytes Returned
    1 This plan step retrieves a single ROWID from the B*-tree index CUST_ORD_CUSTOMER_PK. 1 1 0,007
    2 This plan step retrieves one or more ROWIDs in ascending order by scanning the B*-tree index ACTIVE_WORK_ORDER_IX4. 1 1 --
    3 This plan step retrieves rows from table ACTIVE_WORK_ORDER_TAB through ROWID(s) returned by an index. 1 1 0,198
    4 This plan step loops through the query's IN list predicate, executing its child step for each value found.
    5 This plan step joins two sets of rows by iterating over the driving, or outer, row set (the first child of the join) and, for each row, carrying out the steps of the inner row set (the second child). Corresponding pairs of rows are tested against the join condition specified in the query's WHERE clause. 2 1 0,205
    6 This plan step retrieves one or more ROWIDs in ascending order by scanning the B*-tree index WORK_ORDER_CODING_PK. 1 1 --
    7 This plan step retrieves rows from table WORK_ORDER_CODING_TAB through ROWID(s) returned by an index. 1 1 0,053
    8 This plan step joins two sets of rows by iterating over the driving, or outer, row set (the first child of the join) and, for each row, carrying out the steps of the inner row set (the second child). Corresponding pairs of rows are tested against the join condition specified in the query's WHERE clause. 3 1 0,258
    9 This plan step retrieves a single ROWID from the B*-tree index ACTIVE_WORK_ORDER_PK. 1 1 --
    10 This plan step retrieves rows from table ACTIVE_WORK_ORDER_TAB through ROWID(s) returned by an index. 1 1 0,014
    11 This plan step joins two sets of rows by iterating over the driving, or outer, row set (the first child of the join) and, for each row, carrying out the steps of the inner row set (the second child). Corresponding pairs of rows are tested against the join condition specified in the query's WHERE clause. 4 1 0,271
    12 This plan step has no supplementary description information.
    13 This plan step designates this statement as a SELECT statement. 5 1 0,271
    AND Running as end user brings the following costs!
    1 This plan step retrieves a single ROWID from the B*-tree index CUST_ORD_CUSTOMER_PK. 1 1 0,007
    2 This plan step retrieves one or more ROWIDs in ascending order by scanning the B*-tree index ACTIVE_WORK_ORDER_IX4. 1 360 --
    3 This plan step retrieves rows from table ACTIVE_WORK_ORDER_TAB through ROWID(s) returned by an index. 29 10 1,982
    4 This plan step loops through the query's IN list predicate, executing its child step for each value found.
    5 This plan step represents the execution plan for the subquery defined by the view ACTIVE_WORK_ORDER. 29 1 4,095
    6 This plan step joins two sets of rows by iterating over the driving, or outer, row set (the first child of the join) and, for each row, carrying out the steps of the inner row set (the second child). Corresponding pairs of rows are tested against the join condition specified in the query's WHERE clause. 30 1 4,102
    7 This plan step retrieves all rows from table WORK_ORDER_CODING_TAB. 26 070 10 0,527
    8 This plan step retrieves a single ROWID from the B*-tree index ACTIVE_WORK_ORDER_PK. 1 1 --
    9 This plan step retrieves rows from table ACTIVE_WORK_ORDER_TAB through ROWID(s) returned by an index. 1 1 0,014
    10 This plan step joins two sets of rows by iterating over the driving, or outer, row set (the first child of the join) and, for each row, carrying out the steps of the inner row set (the second child). Corresponding pairs of rows are tested against the join condition specified in the query's WHERE clause. 26 071 3 0,199
    11 This plan step represents the execution plan for the subquery defined by the view XXX_WORK_ORDER_CODING. 26 071 3 17,748
    12 This plan step accepts two sets of rows, each from a different table. A hash table is built using the rows returned by the first child. Each row returned by the second child is then used to probe the hash table to find row pairs which satisfy a condition specified in the query's WHERE clause. Note: The Oracle cost-based optimizer will build the hash table using what it thinks is the smaller of the two tables. It uses the statistics to determine which is smaller, so out of date statistics could cause the optimizer to make the wrong choice. 26 102 1 10,018
    13 This plan step has no supplementary description information.
    14 This plan step designates this statement as a SELECT statement. 26 103 -- --

    AND a.customer_no < '5%'
    AND a.customer_no LIKE '10027'
    AND a.org_code LIKE '510'
    Does the query bring back the expected results? There appears to be an issue with your customer_no logic. The only customer_no that will meet your criteria is '10027', the < '5%' appears redundant.
    with a as (
       select '10027' customer_no from dual union all
       select '10027x' customer_no from dual)
    select *
    from a
    where a.customer_no < '5%'
    and a.customer_no like '10027';Also, your LIKE operators can be rewritten as '=' if you do not use wildcards, ie '%' or '_'.
    If the active_work_order table is larger than the others, you may want to use the smallest table when comparing the customer_no column as it may assist in the execution path.

  • TS1702 I had this Scrabble on my iPad2 and began to have connection problems, it would lock in the "connecting" position. This is not the first time Scrabble has had problems with interface. Typically customers delete the Ap then download it again to rein

    I have contacted EA about this and can find no help. I had this Scrabble on my iPad2 and began to have connection problems, it would lock in the "connecting" position. This is not the first time Scrabble has had problems with interface. Typically customers delete the Ap then download it again to reinstall it. During the process you sign in and approve the purchase KNOWING that another window will open saying that you have previously purchased it and that there is no charge. So what happened this time? It will not connect and all of my saved and current games are wiped out. I want my money back, this game interface is pretty junk and operates like some ancient DOS program,,bug,bug,buggy. I want my money back.

    Go here:
    http://www.apple.com/support/itunes/contact/
    and follow the instructions to report the issue to the iTunes Store.
    Regards.

  • Problem in Interface Determination

    Hi All,
        While trying to do webservices using webdynpro i was able to do the repository part without any errors but while trying to do configuration i'm facing a problem in interface determination.
    I'm unable to find my interface mapping in the interface determination.
    While trying to search for the interface mapping its showing me as "no objects found".
    Could anyone help me out in this regard.
    Thanks in Advance
    Madhu

    Hi,
    As said by Moorthy, you should able to see interface mapping.You just Copy the interface mapping name from IR and insert at Interface Mapping in interface determination.To insert Interface mapping , right click choose Insert option from context.Save & activate Interface determination.If it is activated successfully every thing is ok.Otherwise once you should check as said by Moorthy and check Namespace of Interface too.Hope this will solve your problem.
    Cheers
    Tiger Woods
    Note:Give the points for helpful answers

  • Bean problem: No interface classes found

    Hi ;
    I try to create a adapter . according to tutorial "How To Create Modules for the J2EE Adapter Engine"
    https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f013e82c-e56e-2910-c3ae-c602a67b918e&overridelayout=true
    Although I did all steps in it , I copied sda files and extract them  then I imported them to the project but I get this error in Netweaver Studio "Bean problem: No interface classes found" while creating ejb file.
    the document says you must close and reopen project when you come accross this error but it doesnt work?
    Is there any one solve this error?
    ps: I use NWDS 7.0.19 , I copied aii_af_lib.sda, aii_af_svc.sda and aii_af_cpa_svc.sda files from PI 7.01

    Hi Tuncer!
    Did you download and "import" these JAR files into your NWDS Build Path  - classpath variables:
    com.sap.aii.af.lib.mod.jar     <bin>/ext/com.sap.aii.af.lib/lib
    sap.comtcloggingjavaimpl.jar     <bin>/system
    com.sap.aii.af.svc_api.jar     <bin>/services/com.sap.aii.af.svc/lib
    com.sap.aii.af.cpa.svc_api.jar     <bin>/services/com.sap.aii.af.cpa.svc/lib
    com.sap.aii.af.ms.ifc_api.jar     <bin>/interfaces/com.sap.aii.af.ms.ifc/lib
    <bin> stands for: /usr/sap/<SID>/<instance-id>/j2ee/cluster/bin in a PI 7.1 system.
    Windows -> Preferences -> Build Path -> Classpath Variables -> New ...
    Choose a name of your choice and then select the JAR files mentioned above.
    This should resolve your problem.
    Regards,
    Volker

  • What kind of mathematical optimization problems exits in SAP? (NP problems)

    What kind of mathematical optimization problems exits in SAP?
    I don't use SAP and don't have any experience with SAP but I would be interested what complex optimization problems, preferably "NP problems", exits or where a fast solution (semi-solution) to such problems would be beneficial.

    I think that no exists standard routines about NP problems in SAP.
    OK. But this is not what I asked for.
    What kind of mathematical optimization problems exits in SAP? (NP problems) 
    Hence, if you have such an algorithm, where can it be applied in SAP? Where is it useful? 
    I would especially be interested in problems where the space is so big that can not be completely tested.

  • PL/SQL and Java Swing interface

    Everybody in this forum knows that Oracle is the best database around
    with many functionalities, stability, performance, etc. We also know
    that PL/SQL is a great language to manipulate information directly
    in the database with many built in functions, OOP capability,
    transaction control, among other features. Today an application that
    manipulates information, which needs user interface, requires components
    to be developed using different technologies and normally running in
    different servers or machines. For example, the interface is done using
    a dynamic HTML generator like JSP, PHP, PL/SQL Web Toolkit, etc.
    This page is executed in an application server like Oracle iAS or
    Tomcat, just to name two, which in turn access a database like Oracle to
    build the HTML. Also rich clients like Java applets require an intermediate
    server to access the database (through servlets for example) although
    it is possible to access the database directly but with security issues.
    Another problem with this is that complexity increases a lot, many
    technologies, skills and places to maintain code which leads to a greater
    failure probability. Also, an application is constantly evolving, new
    calculations are added, new tables, changed columns. If you have an
    application with product code for example and you need to increase its
    size, you need to change it in the database, search for all occurrences
    of it in the middle-tier code and perhaps adjust interfaces. Normally
    there is no direct dependency among the tier components. On another
    issue, many application interfaces today are based on HTML which doesn't
    have interactive capabilities like rich-client interfaces. Although it
    is possible to simulate many GUI widgets with JavaScript and DHTML, it is
    far from the interactive level we can accomplish in rich clients like
    Java Swing, Flash MX, Win32, etc. HTML is also a "tag-based" language
    originally created to publish documents so even small pages require
    many bytes to be transmitted, far beyond of what we see on the screen.
    Even in fast networks you have a delay time to wait the page to be
    loaded. Another issue, the database is in general the central location
    for all kinds of data. Most applications relies on it for security,
    transaction and availability. My proposal is to use Oracle as the
    central location for interface, processing and data. With this approach
    we can create not only the data manipulation procedures in the database,
    but procedures that also control and manage user interfaces. Having
    a Oracle database as the central location for all components has many
    advantages:
    - Unique point of maintenance, backup and restore
    - Integrated database security
    - One language for everything, PL/SQL or Java (even both if desired)
    - Inherited database cache, transaction and processing optimizations
    - Direct access to the database dictionary
    - Application runs on Oracle which has support for many platforms.
    - Transparent use of parallel processing, clusters and future
    background technologies
    Regarding the interface, I already created a Java applet renderer
    which receives instructions from the database on how to create GUI
    objects and how to respond to events. The applet is only 8kb and can
    render any Swing or AWT object/event. The communication is done
    through HTTP or HTTPS using Oracles's MOD_PLSQL included in the Apache
    HTTP server which comes with the database or application server (iAS).
    I am also creating a database framework and APIs in PL/SQL to
    create and manipulate the client interface. The applet startup is
    very fast because it is very small, you don't need to download large
    classes with the client interface. Execution is done "on-demand"
    according to instructions received from the database. The instructions
    are very optimized in terms of network bandwidth and based on preliminary
    tests it can be up to 1/10 of a similar HTML screen. Less network usage
    means faster response and means that even low speed connections will
    have a good performance (a future development can be to use this in
    wireless devices like PDAs e even cell phones, just an idea for now).
    The applet can also be executed standalone by using Java Web Start.
    With this approach no business code, except the interface, is executed
    on the client. This means that alterations in the application are
    dynamically reflected in the client, no need to "re-download" the
    application. Events are transmitted when required only so network
    usage is minimized. It is also possible to establish triggering
    events to further reduce network usage. Since the protocol used is
    HTTP (which is stateless), the database framework I am creating will
    be responsible to maintain the state of connections, variables, locks
    and session information, so the developer don't need to worry about it.
    The framework will have many layers, from communication up to
    application so there will be pre-built functions to handle queries,
    pagination, lock, mail, log, etc. The final objective is to have a
    rich client application integrated into the database with minimum
    programming and maintenance requirements, not forgetting customization
    capabilities. Below is a very small example of what can de done. A
    desktop with two windows, each window with two fields, a button with an
    image to switch the values, and events to convert the typed text when
    leaving the field or double-clicking it. The "leave" event also has an
    optimization to only be triggered when the text changes. I am still
    developing the framework and adjusting the renderer but I think that all
    technical barriers were transposed by now. The framework is still in
    the early stages, my guess is that only 5% is done so far. As a future
    development even an IDE can be created so we have a graphical environment
    do develop applications. I am willing to share this with the PL/SQL
    community and listen to ideas and comments.
    Example:
    create or replace procedure demo1 (
    jre_version in varchar2 := '1.4.2_01',
    debug_info in varchar2 := 'false',
    compress_buffer in varchar2 := 'false',
    optimize_buffer in varchar2 := 'true'
    ) as
    begin
    interface.initialize('demo1_init','JGR Demo 1',jre_version,debug_info,compress_buffer,optimize_buffer);
    end;
    create or replace procedure demo1_init as
    begin
    toolkit.initialize;
    toolkit.create_icon('icon',interface.global_root_url||'img/switch.gif');
    toolkit.create_internal_frame('frame1','Frame 1',50,50,300,136);
    toolkit.create_label('frame1label1','frame1',10,10,50,20,'Field 1');
    toolkit.create_label('frame1label2','frame1',10,40,50,20,'Field 2');
    toolkit.create_text_field('frame1field1','frame1',50,10,230,20,'Field 1','Field 1',focus_event=>true,mouse_event=>true);
    toolkit.create_text_field('frame1field2','frame1',50,40,230,20,'Field 2','Field 2',focus_event=>true,mouse_event=>true);
    toolkit.set_text_field_event('frame1field1',toolkit.focus_lost_event,'demo1_set_upper',toolkit.get_text_method,'FIELD 1','false');
    toolkit.set_text_field_event('frame1field2',toolkit.focus_lost_event,'demo1_set_upper',toolkit.get_text_method,'FIELD 2','false');
    toolkit.set_text_field_event('frame1field1',toolkit.mouse_double_clicked_event,'demo1_set_lower',toolkit.get_text_method,'field 1','false');
    toolkit.set_text_field_event('frame1field2',toolkit.mouse_double_clicked_event,'demo1_set_lower',toolkit.get_text_method,'field 2','false');
    toolkit.create_button('button1','frame1',10,70,100,25,'Switch','Switch the values of "Field 1" and "Field 2"','S','icon');
    toolkit.set_button_event('button1',toolkit.action_performed_event,'demo1_switch_fields(''frame1field1'',''frame1field2'')','frame1field1:'||toolkit.get_text_method||',frame1field2:'||toolkit.get_text_method);
    toolkit.create_internal_frame('frame2','Frame 2',100,100,300,136);
    toolkit.create_label('frame2label1','frame2',10,10,50,20,'Field 1');
    toolkit.create_label('frame2label2','frame2',10,40,50,20,'Field 2');
    toolkit.create_text_field('frame2field1','frame2',50,10,230,20,'Field 1','Field 1',focus_event=>true,mouse_event=>true);
    toolkit.create_text_field('frame2field2','frame2',50,40,230,20,'Field 2','Field 2',focus_event=>true,mouse_event=>true);
    toolkit.set_text_field_event('frame2field1',toolkit.focus_lost_event,'demo1_set_upper',toolkit.get_text_method,'FIELD 1','false');
    toolkit.set_text_field_event('frame2field2',toolkit.focus_lost_event,'demo1_set_upper',toolkit.get_text_method,'FIELD 2','false');
    toolkit.set_text_field_event('frame2field1',toolkit.mouse_double_clicked_event,'demo1_set_lower',toolkit.get_text_method,'field 1','false');
    toolkit.set_text_field_event('frame2field2',toolkit.mouse_double_clicked_event,'demo1_set_lower',toolkit.get_text_method,'field 2','false');
    toolkit.create_button('button2','frame2',10,70,100,25,'Switch','Switch the values of "Field 1" and "Field 2"','S','icon');
    toolkit.set_button_event('button2',toolkit.action_performed_event,'demo1_switch_fields(''frame2field1'',''frame2field2'')','frame2field1:'||toolkit.get_text_method||',frame2field2:'||toolkit.get_text_method);
    end;
    create or replace procedure demo1_set_upper as
    begin
    toolkit.set_string_method(interface.global_object_name,toolkit.set_text_method,upper(interface.array_event_value(1)));
    toolkit.set_text_field_event(interface.global_object_name,toolkit.focus_lost_event,'demo1_set_upper',toolkit.get_text_method,upper(interface.array_event_value(1)),'false');
    end;
    create or replace procedure demo1_set_lower as
    begin
    toolkit.set_string_method(interface.global_object_name,toolkit.set_text_method,lower(interface.array_event_value(1)));
    toolkit.set_text_field_event(interface.global_object_name,toolkit.mouse_double_clicked_event,'demo1_set_lower',toolkit.get_text_method,lower(interface.array_event_value(1)),'false');
    end;
    create or replace procedure demo1_switch_fields (
    field1 in varchar2,
    field2 in varchar2
    ) as
    begin
    toolkit.set_string_method(field1,toolkit.set_text_method,interface.array_event_value(2));
    toolkit.set_string_method(field2,toolkit.set_text_method,interface.array_event_value(1));
    toolkit.set_text_field_event(field1,toolkit.focus_lost_event,'demo1_set_upper',toolkit.get_text_method,upper(interface.array_event_value(2)),'false');
    toolkit.set_text_field_event(field2,toolkit.focus_lost_event,'demo1_set_upper',toolkit.get_text_method,upper(interface.array_event_value(1)),'false');
    toolkit.set_text_field_event(field1,toolkit.mouse_double_clicked_event,'demo1_set_lower',toolkit.get_text_method,lower(interface.array_event_value(2)),'false');
    toolkit.set_text_field_event(field2,toolkit.mouse_double_clicked_event,'demo1_set_lower',toolkit.get_text_method,lower(interface.array_event_value(1)),'false');
    end;

    Is it sound like Oracle Portal?
    But you want to save a layer 9iAS.
    Basically, that was the WebDB.(Oracle changed the name to Portal when version 3.0)
    Over all, I agree with you.
    &gt;&gt;Having a Oracle database as the central location for all components has many
    &gt;&gt;advantages:
    &gt;&gt;
    &gt;&gt;- Unique point of maintenance, backup and restore
    &gt;&gt;- Integrated database security
    &gt;&gt;- One language for everything, PL/SQL or Java (even both if desired)
    &gt;&gt;- Inherited database cache, transaction and processing optimizations
    &gt;&gt;- Direct access to the database dictionary
    &gt;&gt;- Application runs on Oracle which has support for many platforms.
    &gt;&gt;- Transparent use of parallel processing, clusters and future
    &gt;&gt;background technologies
    I would like to build 'ZOPE' inside Oracle DB as a back-end
    Using Flash MX as front-end.
    Thomas Ku.

  • WAAS Optimization problem

    Hello experts,
    I have a problem about the WAAS optimization.
    The topology is...
    Center: 7200 Router working with WCCP (512 WAE)
    Edge: 2800 Router working with WCCP (612 WAE)
    When i tried to reach the Database (behind the 7200 Router) from the Edge site. its working! but during this time, when i look the Current Connection status, there is no optimization traffic(you can see the attach file).
    I have done this setup, demo etc. too many times, but the first time i encountered such a problem.
    you can see the configuration at the below.
    By the way, when i look the "show ip wccp" command output. there is no traffic on Service identifier 62. Do we  need to see increased this traffic?
    Thanks in advance for  your help.
    BM-7206-METRO#show ip wccp
    Global WCCP information:
        Router information:
            Router Identifier:                   10.200.200.193
            Protocol Version:                    2.0
        Service Identifier: 61
            Number of Service Group Clients:     1
            Number of Service Group Routers:     1
            Total Packets s/w Redirected:        37207
              Process:                           0
              Fast:                              0
              CEF:                               37207
            Service mode:                        Open
            Service access-list:                 -none-
            Total Packets Dropped Closed:        0
            Redirect access-list:                199
            Total Packets Denied Redirect:       1074214
            Total Packets Unassigned:            0
            Group access-list:                   -none-
            Total Messages Denied to Group:      0
            Total Authentication failures:       0
            Total Bypassed Packets Received:     0
        Service Identifier: 62
            Number of Service Group Clients:     1
            Number of Service Group Routers:     1
            Total Packets s/w Redirected:        0
              Process:                           0
              Fast:                              0
              CEF:                               0
            Service mode:                        Open
            Service access-list:                 -none-
            Total Packets Dropped Closed:        0
            Redirect access-list:                -none-
            Total Packets Denied Redirect:       0
            Total Packets Unassigned:            0
            Group access-list:                   -none-
            Total Messages Denied to Group:      0
            Total Authentication failures:       0
            Total Bypassed Packets Received:     0
    CORE_WAE
    configure terminal
    primary-interface gigabitEthernet 1/0
    device mode application-accelerator
    central-manager address 10.10.10.10
    cms enable
    wccp version 2
    wccp router-list 1 2.2.2.1 (ROUTER IP add)
    wccp tcp-promiscuous router-list-num 1
    EDGE_WAE
    configure terminal
    primary-interface gigabitEthernet 1/0
    device mode application-accelerator
    central-manager address 10.10.10.10
    cms enable
    wccp version 2
    wccp router-list 1 1.1.1.1
    wccp tcp-promiscuous router-list-num 1
    CORE_ROUTER
    ip wccp version 2
    ip wccp 61
    ip wccp 62
    interface gi 2/0 (LAN)
    ip wccp 61 redirect in
    interface gi 3/0.26 (WAN) (Note: also this interface have a Tunnel int. connect to edge router tunnel int.)
    ip wccp 62 redirect in
    interface gi 1/0 (WAE LAN)
    ip wccp redirect exclude in
    ip cef
    EDGE_ROUTER
    ip wccp version 2
    ip wccp 61
    ip wccp 62
    interface gi 1/0 (LAN)
    ip wccp 61 redirect in
    interface ATM 2/0.1 (WAN) (Note: also this interface have a Tunnel int. connect to central router tunnel  int.)
    ip wccp 62 redirect in
    interface gi 2/0 (WAE LAN)
    ip wccp redirect exclude in
    ip cef

    Hi Zach
    Center router IOS version is c7200-advipservicesk9_li-mz.124-11.T.bin
    Edge router IOS version is c2800nm-adventerprisek9-mz.124-9.T2.bin
    Also you can see the configurations at the attach
    Thanks,
    My best.
    CORE WAE CONFIG:
    Based on the input, the following configurations will be done:
           central-manager address 10.166.0.10
           interface GigabitEthernet 1/0
             ip address 10.166.0.20 255.255.0.0
             autosense
           exit
           ip default-gateway 10.166.0.1
           ip name-server 10.201.0.201
           ip domain-name  tcmb.gov.tr
           primary-interface GigabitEthernet 1/0
           hostname CORE
           clock timezone UTC 0 0
           wccp version 2
           wccp router-list 8 10.166.0.1
           wccp tcp-promiscuous router-list 8
           cms enable
    EDGE WAE CONFIG:
    Based on the input, the following configurations will be done:
            central-manager address 10.166.0.10
            interface GigabitEthernet 1/0
              ip address 10.126.2.20 255.255.255.0
              autosense
            exit
            ip default-gateway 10.126.2.1
            ip name-server 10.201.0.201
            ip domain-name  tcmb.gov.tr
            primary-interface GigabitEthernet 1/0
            hostname EDGE
            clock timezone UTC 0 0
            wccp version 2
            wccp router-list 8 10.126.2.1
            wccp tcp-promiscuous router-list 8
            cms enable

  • Problem In Interface Mapping

    Hi,
    I am having an Interface Mapping involving two mapping programs in the following sequence:
    1) Message Mapping
    2) Java Mapping
    There are two Message Interfaces on the source side and one MI on the target side. Now the problem is that only the Java mapping is getting executed not the Message Mapping.
    Please note the following points:
    1) There is no error while executing the Interface Mapping.
    2) The Message Mapping is getting executed perfectly.
    Please let me know what could be the possible error.
    Thanks,
    Abhishek.

    Hi Abhishek,
    As you said you have two source structure and one target structure.
    after executing the first mapping output is not same as the input required by the second mapping.
    Also keep in mind that you can not persist the message here so the output of first mapping should not modify the structure. You can anly modify the values.
    you can confirm the same with some dummy scenario
    Thanks
    Sunil Singh

  • Problem in Interface determination for multiple MM

    Hi experts,
    i designed an IDOC to Jdbc scenario.
    The particular thing is that I have TWO message mappings to apply for the same source and same target.
    Hence, I have in my directory two scenarios with :
    - same Reveicer Determination
    - same Interface Determination
    - differents Receiver agreements (i have two Communication Channels)
    In my interface determination, I have configured a standard Interface determination with my two interface mappings to apply.
    My problem is when I send an idoc, the result should be for my two interfaces differents payloads to inject to the database, but I get the same payload for both interfaces with the same namespace...it looks like it only use one Interface mapping instead of both...
    It is driving me crazy...
    Any help would be greatly appreciated
    Kind regards,
    Jamal

    Hi,
    i have the same receiver.
    I do have two interface mappings in my interface determination. The problem is that it uses the same for both interface.
    If I use enhanced ID, i can only specify one Interface mapping.
    What I want :
    - sender A - Message mapping 1 - receiver A
    - and also sender A - Message mapping 2 - receiver A
    when the idoc is sent.
    what I have right now (though my configuration seems to be right) :
    - sender A - Message mapping 1 - receiver A
    - and also sender A - Message mapping 1- receiver A
    Thanks a lots,
    Jamal

  • Font Size problem : Swing font looks smaller than pdf font

    Hi
    I'm facing a problem with font size in my swing application. I'm showing some text with a certain predefined font size. Using the same font size and type on same m/c, I 'm generating some pdf text.
    The problem is that the text in swing looks smaller than the same text in pdf. Is there a way to achieve
    consistency in font sizes.

    please don't cross-post.  pick the appropriate forum and use it.  close your cross-thread.

  • Optimization problems in downloading data of greater size from any URL.

    Hi everyone !
    I'm trying to download some resource from the internet by providing valid URL. My code takes almost 50-55 minutes to download. The same resource is downloaded within 3-5 minutes by using Internet Explorer and 3-4 minutes using Fire Fox at the same network and Kbps. The sample code is as under:
    //I'm using apache's HTTP APIs
    public static String url = "http://www.sk.ee/crls/esteid/esteid.crl"; //file size is approx: 10 MB
    //httpMethod is instance of HttpMethodBase and I have initialized it with GET method
    obj_httpMethod = new GetMethod( obj_httpUrl.getEscapedURI()
    InputStream obj_is = obj_httpMethod.getResponseBodyAsStream();
    ByteArrayOutputStream obj_data = new ByteArrayOutputStream();
    //above code is working fine and giving proper input stream got from response.
    //problem start from here....although this code is working ok but it is not optimized
    //Is there any way to optimize the code
    MyHttpTransporter.copyStream(obj_is, obj_data, 524288); //Buffer Size: 512K [512*1024]
    //This method is working fine with files of small sizes but it is not doing well with greater file sizes e.g. 10MB
    public static void copyStream(InputStream a_objIs, OutputStream a_objOs,
                                    int a_iblockSize) throws Exception{
        System.out.println( "Buffer Size..: " +  a_iblockSize);
        byte [] byte_Buffer = new byte[a_iblockSize];
        int i_byteRead = -1;
        while ( (i_byteRead = a_objIs.read(byte_Buffer, 0, a_iblockSize)) > -1) {
          System.out.println( "reading stream...." );
          a_objOs.write(byte_Buffer, 0, i_byteRead);
          System.out.println( "writing stream...." );
          System.out.println( i_byteRead );
    System.out.println( i_byteRead );
    The one thing found in the above code is that, it is ignoring my provided buffer size and always fetching max 2047 bytes from the resource.
    Please help me in this regard as I'm unable to progress further in it.
    br,
    KS

    ASC_KS wrote:
    Thanx for the help.
    It makes some difference.
    the sample code is:
    //iblockSize = 524288 [512K]
    //1
    BufferedInputStream bis = new BufferedInputStream(a_objIs, a_iblockSize);
    BufferedOutputStream bos = new BufferedOutputStream(a_objOs, a_iblockSize);
    //2
    BufferedInputStream bis = (BufferedInputStream)a_objIs;
    BufferedOutputStream bos = (BufferedOutputStream)a_objOs;
    //what do you suggest 1 or 2 ? BTW I'm using 1
    If (2) works then behind the scenes the Apache code is already using Buffered streams (otherwise you would get a class cast exception) so there is going to be little advantage to using further buffering. Also, casting to buffered streams does not offer any performance advantage since any reading/writing you do will already be using the methods on the Buffered streams.
    Do I need to concentrate on the block size [reduce or increase what is good practice]. Because again it is fetching maximum 5387B and on average it is fetching the 2047B. But it is improved a little bit.Though the buffer size of the Buffered streams can be set when constructed they cannot be changed later so if the Apache code is not setting the buffer size when it constructs the buffer then you are stuffed. Check the Apache documentation to see if you can change the buffering.
    P.S. Of course, since it is open source, you can always modify the Apache code to increase the buffer size.
    P.P.S. I always use HttpURLConnection for this and it seems pretty quick though I have never downloaded anything beyond a few hundred KBytes.
    Edited by: sabre150 on Nov 21, 2007 11:18 AM

  • Problem with interface - when send the data for PA0002

    Hi Gurus,
        I am interfacing employees data from one system to another system  with all the PA infotypes.
    we are using the fuction module " HR_MAINTAIN_MASTERDATA " to upload the master data. Here the problem is, when we send the data - in destination system all the segments have the data correctly . But middle name is not loaded in to the system. Problem with only middle name.
    But, here strange thing is, when i resend the idocs it is laoded correctly all the fields with middle name also.
    I am unable to figure out the problem .. Please let me know if you have any advise on this ..
    Thanking you.
    Regards,
    Giridhar Pujari

    Hi Sikindar,
       Technical name is corrent .. and once you resend the idoc, you can't see the problem again.
    Regards,
    Giridhar Pujari.

  • Oracle 11.2.0.2 and nchar optimizer problem

    Hello,
    sorry in advance for not being able to give all details to narrow better this possible problem.
    I admit it could be elsewhere.....
    I have a complex query where in particular an nchar(2) field (say col1) of table tab is involved
    I'm experimenting a sort of problem in optimizer estimating the number of rows it will get from this condition and so the corresponding overall cost of the query
    the table contains about 300k records and this field has at this moment 2 different values
    blankblank --> almost all records
    AA --> about 30 records
    there is at the moment a single index IND1 defined on this column (not a bitmap index)
    Both table and index are analyzed
    if my query contains the condition
    AND TAB.COL1 = ' ' ---> single blank
    Then the optimizer erroneously thinks with explain plan to get about 30 rows
    |* 5 | INDEX RANGE SCAN     | IND1 |     29 |     |     3 (0)
    | 00:00:01 |
    and the overall about 98, but the query actually doesn't come to an end ... (waited 10 minutes)
    if my query contains the condition
    AND TAB.COL1 = ' ' --->double space
    it doesn't use that wrong path and completes in about 1 second.
    If I replicate the query with single space on a test db with 11.2.0.1 it behaves correctly.
    If I force it to behave as the default wrong query in 11.2.0.2 (I have to use 3 hints to duplicate it)
    I get
    |* 5 | INDEX RANGE SCAN     | IND1 | 135K|     | 306 (1)
    | 00:00:04 |
    and overall cost is 304K so it is not used as a possible path...
    ANyone knows if anything changed between 11.2.0.1 and 11.2.0.2 for nchar and these possible different behaviours?
    (BTW: also in another 11.1.0.6 db I don't have this problem)
    The query is created by application and I cannot put the amount of necessary spaces.....
    And I'm afraid this problem could exist also for other tables where I have nchar(N) fields with N >2 too....
    Thanks in advance,
    Gianluca

    1) do you have a frequency histogram on this column?
    and
    2) is the client application using bind variables or string literals when querying?

  • Plz help me in creating swing interface

    Hi,
    Iam new to swing.I have one Interface on swing.Now I want to add Jfilechooser object in my interface for selecting file from hard drive.So that I can upload this file through my servlet uploading programme.I want to set remote url also for saving the file.But I confused how I can do that.Plz guide me.
    I try to create one interface but iam sure it is not the correct way.Can u plz try with my codes. Below r my codes:
    import javax.swing.AbstractAction;
    import javax.swing.Action;
    import javax.swing.JToolBar;
    import javax.swing.JButton;
    import javax.swing.ImageIcon;
    import javax.swing.JMenuItem;
    import javax.swing.JCheckBoxMenuItem;
    import javax.swing.JMenu;
    import javax.swing.JFrame;
    import javax.swing.JMenuBar;
    import javax.swing.JTextArea;
    import javax.swing.JPanel;
    import javax.swing.JLabel;
    import javax.swing.JScrollPane;
    import javax.swing.JProgressBar;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import java.util.*;
    import javax.swing.*;
    import java.util.*;
    import java.io.*;
    import java.net.*;
    import javax.swing.accessibility;
    public class ActionDemo1 extends JFrame implements ActionListener
         JTextArea textArea,textArea1,textArea2,textArea3,textArea4,textArea5,textArea6,textArea7,
         textArea8,textArea9,textArea10,textArea11,textArea12,textArea13,textArea14,textArea15;
         private JProgressBar progressBar;          
         private JButton Button,Button1,Button2;     
         URL url;
         BufferedReader in;
         String str;
    public ActionDemo1()
                        setTitle("Upload Interface");                               
                        addWindowListener(new WindowAdapter()
                             public void windowClosing(WindowEvent e)
                                  System.exit(0);
         Container contentPane = getContentPane();          
         JMenuItem menuItem = null;
    JToolBar toolBar = new JToolBar();
         JToolBar toolBar1 = new JToolBar();     
         JToolBar toolBar2 = new JToolBar();
         JToolBar toolBar3 = new JToolBar();
         JToolBar toolBar4 = new JToolBar();
         JToolBar toolBar5 = new JToolBar();
         JToolBar toolBar6 = new JToolBar();
         JToolBar toolBar7 = new JToolBar();
         JToolBar toolBar8 = new JToolBar();
         JToolBar toolBar9 = new JToolBar();
         JToolBar toolBar10 = new JToolBar();
         JMenu FirstMenu = new JMenu("File");
    FirstMenu.setMnemonic(KeyEvent.VK_F);     
    textArea = new JTextArea(5, 20);
         textArea1 = new JTextArea(2, 15);     
         textArea2 = new JTextArea(2, 15);
         textArea3 = new JTextArea(2, 15);     
         textArea4 = new JTextArea(7, 15);
         textArea5 = new JTextArea(7, 15);     
         textArea6 = new JTextArea(7, 15);
         textArea7 = new JTextArea(7, 15);
         textArea8 = new JTextArea(2, 15);
         textArea9 = new JTextArea(7, 15);
         textArea10 = new JTextArea(2, 15);
         textArea11 = new JTextArea(7, 15);
         textArea12 = new JTextArea(2, 15);
         textArea13 = new JTextArea(7, 15);
         textArea14 = new JTextArea(2, 15);
         textArea15 = new JTextArea(7, 15);
         JScrollPane scrollPane = new JScrollPane(textArea);
         progressBar=new JProgressBar();
         progressBar.setStringPainted(true);     
    contentPane.setLayout(new GridLayout(2,3));
         JPanel panel1 = new JPanel();
         panel1.setLayout(new BorderLayout());
         panel1.setBackground(Color.blue);
         contentPane.add(panel1);
    panel1.add(BorderLayout.NORTH, toolBar);
         panel1.add(scrollPane, BorderLayout.CENTER);
         panel1.add(progressBar,BorderLayout.SOUTH);     
         JPanel panel2 = new JPanel();     
         JLabel statusBar= new JLabel();
         panel2.setLayout(new GridLayout(1,1));     
         panel2.setBackground(Color.gray);     
         contentPane.add(panel2);
         JPanel panel3 = new JPanel();
         panel3.setLayout(new GridLayout(1,1));     
         panel3.setBackground(Color.blue);
         panel2.add(panel3);
         JPanel panel7 = new JPanel();
         panel7.setLayout(new BorderLayout());     
         panel7.setBackground(Color.blue);
         panel7.add(textArea2, BorderLayout.NORTH);     
         panel7.add(BorderLayout.CENTER, toolBar2);
         panel7.add(BorderLayout.SOUTH, textArea4);
         panel3.add(panel7);
         JPanel panel8 = new JPanel();
         panel8.setLayout(new BorderLayout());     
         panel8.setBackground(Color.blue);
         panel8.add(textArea3, BorderLayout.NORTH);     
         panel8.add(BorderLayout.CENTER, toolBar3);
         panel8.add(BorderLayout.SOUTH, textArea5);
         panel3.add(panel8);
         JPanel panel5 = new JPanel();
         panel5.setLayout(new BorderLayout());
         panel5.add(textArea1, BorderLayout.NORTH);
         panel5.add(BorderLayout.CENTER, toolBar5);
         panel5.add(BorderLayout.SOUTH, textArea7);          
         panel5.setBackground(Color.blue);
         panel3.add(panel5);
         JPanel panel6 = new JPanel();
         panel6.setLayout(new BorderLayout());
         panel6.add(toolBar1, BorderLayout.NORTH);          
         panel6.setBackground(Color.blue);
         panel6.setSize(new Dimension(5,5));
         panel6.add(BorderLayout.CENTER, toolBar4);
         panel6.add(BorderLayout.SOUTH, textArea6);
         panel3.add(panel6);
         JPanel panel4 = new JPanel();
         panel4.setLayout(new GridLayout(1,1));
         panel4.setBackground(Color.blue);     
         panel2.add(panel4);
         JPanel panel9 = new JPanel();
         panel9.setLayout(new BorderLayout());     
         panel9.setBackground(Color.blue);
         panel9.add(textArea8, BorderLayout.NORTH);     
         panel9.add(BorderLayout.CENTER, toolBar6);
         panel9.add(BorderLayout.SOUTH, textArea9);
         panel4.add(panel9);
         JPanel panel10 = new JPanel();
         panel10.setLayout(new BorderLayout());     
         panel10.setBackground(Color.blue);
         panel10.add(textArea10, BorderLayout.NORTH);     
         panel10.add(BorderLayout.CENTER, toolBar7);
         panel10.add(BorderLayout.SOUTH, textArea11);
         panel4.add(panel10);
         JPanel panel11 = new JPanel();
         panel11.setLayout(new BorderLayout());
         panel11.add(textArea12, BorderLayout.NORTH);
         panel11.add(BorderLayout.CENTER, toolBar8);
         panel11.add(BorderLayout.SOUTH, textArea13);          
         panel11.setBackground(Color.blue);
         panel4.add(panel11);
         JPanel panel12 = new JPanel();
         panel12.setLayout(new BorderLayout());
         panel12.add(toolBar9, BorderLayout.NORTH);          
         panel12.setBackground(Color.blue);
         panel12.setSize(new Dimension(5,5));
         panel12.add(BorderLayout.CENTER, toolBar10);
         panel12.add(BorderLayout.SOUTH, textArea15);
         panel4.add(panel12);
         //contentPane.setMaximumSize(new Dimension(600, 400));
         /*contentPane.setLayout(new BorderLayout());
         contentPane.setPreferredSize(new Dimension(400, 150));
         contentPane.add(toolBar, BorderLayout.NORTH);     
    statusBar = new JLabel(" ");     
         contentPane.add(scrollPane, BorderLayout.CENTER);
         setContentPane(contentPane);*/     
         JMenuBar mb = new JMenuBar();
         setJMenuBar(mb);
    mb.add(FirstMenu);     
    menuItem = new JMenuItem("Quick connect", KeyEvent.VK_Q);
    FirstMenu.add(menuItem);
         JMenu SecondMenu = new JMenu("Edit");
         SecondMenu.setMnemonic(KeyEvent.VK_E);     
    menuItem = new JMenuItem("Suspend", KeyEvent.VK_S);
    SecondMenu.add(menuItem);
    mb.add(SecondMenu);
    JMenu ThirdMenu = new JMenu("Compress");
         ThirdMenu.setMnemonic(KeyEvent.VK_C);     
    menuItem = new JMenuItem("By Percentage", KeyEvent.VK_B);
    ThirdMenu.add(menuItem);
    mb.add(ThirdMenu);
    JMenu FourthMenu = new JMenu("Help");
         FourthMenu.setMnemonic(KeyEvent.VK_H);     
    menuItem = new JMenuItem("Help", KeyEvent.VK_B);
    FourthMenu.add(menuItem);
    mb.add(FourthMenu);
    ImageIcon QuickConnect=new ImageIcon("images/Q_connect.gif");
    JButton button=new JButton(QuickConnect);
    button.setActionCommand("QuickConnect");
    button.setToolTipText("Quick Connect");
    button.addActionListener(this);
    toolBar.add(button);
    ImageIcon Reconnect=new ImageIcon("images/Reconnect.gif");
    button=new JButton(Reconnect);
    button.setActionCommand("Reconnect");
    button.setToolTipText("Reconnect");
    button.addActionListener(this);
    toolBar.add(button);
    ImageIcon Disconnect=new ImageIcon("images/Disconnect.gif");
    button=new JButton(Disconnect);
    button.setActionCommand("Disconnect");
    button.setToolTipText("Disconnect");
    button.addActionListener(this);
    toolBar.add(button);
    ImageIcon Upload=new ImageIcon("images/Upload.gif");
    Button=new JButton(Upload);
    Button.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    String strCommand=ae.getActionCommand();
    if(str.equals("Upload"))
    /* this is where you write the code to call that servlet.
    control reaches this point when the button is pressed */
    try{
    // you communicate with the servlet here
    url = new URL("http://127.0.0.1:7001/servletUpload");
    in = new BufferedReader(new InputStreamReader(url.openStream()));
    str = in.readLine();
    in.close();
    }//end try
    catch (Exception e1){}
    toolBar.add(Button);
    ImageIcon Suspend=new ImageIcon("images/Suspend.gif");
    Button1=new JButton(Suspend);
    //Button1.setActionCommand("Suspend");
    Button1.setToolTipText("Suspend");
    Button1.addActionListener(this);
    toolBar.add(Button1);
    ImageIcon Refresh=new ImageIcon("images/Refresh.gif");
    button=new JButton(Refresh);
    button.setActionCommand("Refresh");
    button.setToolTipText("Refresh");
    button.addActionListener(this);
    toolBar.add(button);
    ImageIcon DeleteItem=new ImageIcon("images/DeleteItem.gif");
    button=new JButton(DeleteItem);
    button.setActionCommand("DeleteItem");
    button.setToolTipText("DeleteItem");
    button.addActionListener(this);
    toolBar.add(button);
    ImageIcon Resume=new ImageIcon("images/Resume.gif");
    Button2=new JButton(Resume);
    //button.setActionCommand("Resume");
    Button2.setToolTipText("Resume");
    Button2.addActionListener(this);
    toolBar.add(Button2);
    ImageIcon FilePriority=new ImageIcon("images/FilePriority.gif");
    button=new JButton(FilePriority);
    button.setActionCommand("FilePriority");
    button.setToolTipText("FilePriority");
    button.addActionListener(this);
    toolBar.add(button);
    ImageIcon View=new ImageIcon("images/View.gif");
    button=new JButton(View);
    button.setActionCommand("View");
    button.setToolTipText("View");
    button.addActionListener(this);
    toolBar.add(button);
    ImageIcon Rename=new ImageIcon("images/Rename.gif");
    button=new JButton(Rename);
    button.setActionCommand("Rename");
    button.setToolTipText("Rename");
    button.addActionListener(this);
    toolBar.add(button);
    ImageIcon Scrolling=new ImageIcon("images/left.gif");
    button=new JButton(Scrolling);
    button.setActionCommand("Scrolling");
    button.setToolTipText("Scrolling");
    button.addActionListener(this);
    toolBar1.add(button);
    ImageIcon UScrolling=new ImageIcon("images/right.gif");
    button=new JButton( UScrolling);
    button.setActionCommand(" UScrolling");
    button.setToolTipText("UScrolling");
    button.addActionListener(this);
    toolBar1.add(button);
    ImageIcon Name=new ImageIcon("images/Name.gif");
    button=new JButton( Name);
    button.setActionCommand("Name");
    button.setToolTipText("Name");
    button.addActionListener(this);
    toolBar2.add(button);
    ImageIcon Date=new ImageIcon("images/Date.gif");
    button=new JButton( Date);
    button.setActionCommand("Date");
    button.setToolTipText("Date");
    button.addActionListener(this);
    toolBar3.add(button);
    ImageIcon Time=new ImageIcon("images/Time.gif");
    button=new JButton( Time);
    button.setActionCommand("Time");
    button.setToolTipText("Time");
    button.addActionListener(this);
    toolBar4.add(button);
    ImageIcon Size=new ImageIcon("images/Size.gif");
    button=new JButton(Size);
    button.setActionCommand("Size");
    button.setToolTipText("Size");
    button.addActionListener(this);
    toolBar5.add(button);
    ImageIcon TScrolling=new ImageIcon("images/left.gif");
    button=new JButton(TScrolling);
    button.setActionCommand("TScrolling");
    button.setToolTipText("TScrolling");
    button.addActionListener(this);
    toolBar9.add(button);
    ImageIcon DScrolling=new ImageIcon("images/right.gif");
    button=new JButton( DScrolling);
    button.setActionCommand(" DScrolling");
    button.setToolTipText("DScrolling");
    button.addActionListener(this);
    toolBar9.add(button);
    ImageIcon Name1=new ImageIcon("images/Name.gif");
    button=new JButton( Name1);
    button.setActionCommand("Name1");
    button.setToolTipText("Name1");
    button.addActionListener(this);
    toolBar6.add(button);
    ImageIcon Date1=new ImageIcon("images/Date.gif");
    button=new JButton( Date1);
    button.setActionCommand("Date1");
    button.setToolTipText("Date1");
    button.addActionListener(this);
    toolBar7.add(button);
    ImageIcon Time1=new ImageIcon("images/Time.gif");
    button=new JButton( Time1);
    button.setActionCommand("Time1");
    button.setToolTipText("Time1");
    button.addActionListener(this);
    toolBar10.add(button);
    ImageIcon Size1=new ImageIcon("images/Size.gif");
    button=new JButton(Size1);
    button.setActionCommand("Size1");
    button.setToolTipText("Size1");
    button.addActionListener(this);
    toolBar8.add(button);
    public void actionPerformed(ActionEvent e)
    textArea.setText(e.getActionCommand());
    public static void main(String[] args) {
    ActionDemo1 frame = new ActionDemo1();
    frame.pack();
    frame.setSize(new Dimension(650, 400));
    frame.setVisible(true);
    Regards
    Bikash

    You may find this suggestion useless, but I thnk you should seriously consider tossing your IDE in the trash and getting a good text editor and hand coding Swing until you understand how Swing components work.
    Take shortcuts when you understand where they will lead. You will find that hand coding really leads to a deeper understanding of any programming language.
    While you're at it, why don't you consider whether you really need eleven (!) toolbars in your GUI. A GUI generally needs only one toolbar -- save some for later.

Maybe you are looking for