RFC call on click of button

Hi,
I need to make RFC call to  ABAP function module with some input parameters.
On click of a button, I need to navigate between views based on returned values.
I have followed steps similar to FlightList example. Created a  model, custom controller and all necessary contexts between them.
Basic RFC connection seems to be working fine (I tried to populate a table with the return values for testing purposes) as the table header gets the appropriate values based on model... but the actual values are not being returned.
Please guide me what needs to be done with
1) ButtonAction() method,       2) DoInit( ) method of the model,     3) ...Bapi_execute( )
Or give me the steps to start from fresh, whatever is easier...
Thanks a lot in advance,
Dil

Hi
Steps:
1. First create an instance for bapi and bind the instance to the bapi node.
  Z<bapi name> zb=new Z<bapi name>();
  wdContext.nodeZ<bapi name>. bind(zb);
2. Then if u have the import parameter u have to set them by using
    The instance of the above bapi.
    Zb.set<import parameters>;
3. Then Execute the bapi after setting the import parameters.
4.  If there is any export parameters, then get the values after execution.
public void onActionsubmit(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onActionsubmit(ServerEvent)
Z<bapi name> zb=new Z<bapi name>();
  wdContext.nodeZ<bapi name>. bind(zb);
Zb.set<import parameters>;
try
               wdContext.nodeZ<bapi name>_Input().currentZ<bapi name>_InputElement().modelObject().execute();
     catch (Exception e)
               wdComponentAPI.getMessageManager().reportWarning("Exception:"+e);
// code for getting values from response node
    //@@end
Hope this helps,
Regards,
Arun

Similar Messages

  • ACTION to be called on click of Button - BADI to be triggered.

    Hi Amigos,
    I have a requirement to create a button "Quality Notification" and when clicked it should generate the Action in WebUI. 
    Can any of you help me in calling the ACTION BADI. How do i call the badi from the event handler. Please give me some sample coding.
    Regards,
    Jagadish.G

    Hi  jagadish g,
    For the code in your new button in Web UI, maybe you can copy the sap standard code on how they call the action.
    The idea is  in your action profile, use 'processing when saving documents' in processing time. So this means when you save your transaction, your BADI will be called.
    Put breakpoint on FM CRM_ACTION_DETERM_COMPL_DOC
    So you can know how to get the parameter in below FM. 
    CALL FUNCTION 'CRM_ACTION_DETERMINE'
            EXPORTING
              iv_header_guid      = iv_header_guid
              iv_object_guid      = iv_header_guid
              iv_at_once_only     = iv_at_once_only
              iv_for_toolbar_only = iv_for_toolbar_only
              iv_no_detlog        = iv_no_detlog
              iv_context          = lv_contexts
              iv_trigger_onsave   = iv_onsave.
    The lv_context will have the data that need to your new button to trigger the action and your EXEC_METHODCALL_PPF BADI.      
    Btw, why the requirement need processing in new button ? the processing in save button is standard and you don't need to put any event handler
    Hope it's work,
    Lina

  • When I am on a phone call and I double click the button to go to my home screen, then open another application (usually my calendar program, Calengoo), my screen goes blank and I am not able to return to either the app, the phone, or the home screen.

    When I am on a phone call and I double click the button to go to my home screen, then open another application (usually my calendar program, Calengoo), my screen goes blank and I am not able to return to either the app, the phone, or the home screen. If I am speaking to a person, if they hang up then I am back to the phone application. If I'm leaving a message, I am unable to return to the phone screen to end the call, and have to wait until the other phone hangs up. I'm also unable to switch back and forth to look at my calendar if I'm calling someone about scheduling. This has only started happening since the most recent iOs update. I run into situations similar to this about once per day during the work week, as I use my phone is this manner quite often. While not life altering it is quite frustrating. Can anyone here help me figure out a way to avoid this? If it helps, I have noticed a general downgrade in overall performance starting two system updates ago (apps opening more slowly, closing unexpectedly more often, etc.). I have an iPhone 3GS with the latest OS update.
    Thank you for any help or suggestions,
    Chris

    I could be corrupted backup.
    You can check the notification settings for message.
    Settings>Notification Center>Messages>Alert Style
    It should be on Banners or Alerts.
    Settings>Messages> Turn on Imessage and send as SMS and below that "Blocked" to check if you have any numbers block might be blocking the message.
    You can also do a hard reset by holding power and home till it restarts and release after seeing the apple logo.
    Still doesn't work? Settings>General>Reset>Reset all settings

  • How to call ME21n Screen in webdynpro once you click any button

    Hi exports,
                     I have created one webdynpro application..In first view i have one button which have action...Once i click that button
    it should go to next view where it should diaplay standard Transaction ME21n screen..where i need to enter all PO details..finally PO should be created auotomatically like normal SAP...
    Can anybody plz help me how can i acheive this?
    Thanks & regards,
    Praveena.

    You have to create  Transaction iView for ME21n in portal.
    Call the iView using portal integration api
    Web Dynpro for ABAP Portal Integration [original link is broken]

  • Is there a way to answer the 5c without swiping? It really is a pain and hard to do at times one handed. Maybe allow favorites to be answered with a click of the home button or possibly all calls with a home button push

    Is there a way to answer the 5c without swiping? It really is a pain and hard to do at times one handed. Maybe allow favorites to be answered with a click of the home button or possibly all calls with a home button push. First smart phone I have owned and the old flip phone was much easier to answer.....just press one button.

    Is there a way to answer the 5c without swiping? It really is a pain and hard to do at times one handed. Maybe allow favorites to be answered with a click of the home button or possibly all calls with a home button push. First smart phone I have owned and the old flip phone was much easier to answer.....just press one button.

  • Calling URL when click on buttons using web dynpro - ABAP

    Hi All,
    I am new to web dynpro application development and i am facing issue when i try to test my application.
    simple require when i click on button i should direct the to one of url say 'http://www.google.co.in/' my application is activate with no error but when i test the application i am getting below error , can someone please provide me the solution or way out.
    The URL http://ides47:8062/sap/bc/webdynpro/sap/zwa_calling_url/ was not called due to an error.
    Note
    The following error text was processed in the system N6Q : Access via 'NULL' object reference not possible.
    The error occurred on the application server IDES47_N6Q_62 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WDR_CONTEXT_MENU_HANDLER~CONTEXT_MENU_CALLED of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
    Method: IF_WDR_CONTEXT_MENU_HANDLER~CONTEXT_MENU_CALLED of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
    Method: IF_WDR_ADAPTER_EVENT_HANDLER~HANDLE_EVENT of program CL_WDR_CONTEXT_MENU_HANDLER===CP
    Method: IF_WDR_CLIENT~GET_CLIENT_UPDATES of program CL_WDR_CLIENT_SSR=============CP
    Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    HTTP 500 - Internal Server Error
    Thanks,
    Parab

    Hi ,
    It seesms something you are missing. It would be easy for us if you could paste your code which you have written in the Action of Button.
    Sample code for your reference :
    METHOD onactionget_url .
    data lo_window_manager type ref to if_wd_window_manager.
    data lo_api_component  type ref to if_wd_component.
    data lo_window         type ref to if_wd_window.
    lo_api_component  = wd_comp_controller->wd_get_api( ).
    lo_window_manager = lo_api_component->get_window_manager( ).
    CALL METHOD lo_window_manager->CREATE_EXTERNAL_WINDOW
      EXPORTING
        URL            = 'http://www.google.co.in/'
        MODAL          = ABAP_FALSE
        HAS_MENUBAR    = ABAP_TRUE
        IS_RESIZABLE   = ABAP_TRUE
        HAS_SCROLLBARS = ABAP_TRUE
        HAS_STATUSBAR  = ABAP_TRUE
        HAS_TOOLBAR    = ABAP_TRUE
        HAS_LOCATION   = ABAP_TRUE
      RECEIVING
        WINDOW         = lo_window.lo_window->open( ).
    ENDMETHOD.

  • Call smart form on button click

    Hi Experts,
    I have a screen. In screen a button is available. I need when i clicked on button my smartform should be open. Plz provide me ur appreciated solution.
    Regards,
    Swapniks

    Hi Swapnika,
    You forgot a small code in between.
    data: v_formname type tdsfname value 'zmem',
    v_fmname type rs381_fname
    Case sy-ucomm.
    when 'okbut'.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    FORMNAME = v_formname
    IMPORTING
    FM_NAME = v_fname
    call function v_fname.
    exporting
    pernr = itab-pernr.
    tables
    itab = itab.
    Regards,
    Prakash Pandey

  • Professional way to call that frame on button click?

    Hi
    Nice to get new look and feel for forum :)
    Wel my question is I have a frame which has many buttons textfields labels and other components too.
    On clicking one of the button I am opening a frame which is like calculator(display is same as calculator)
    I am using frame for that calculator.
    My question is that what will be the most professional way to call that frame on button click?
    All you java professionals your kind attention will be appreciated
    Regards

    Good question, I've often wondered this myself!
    Personally, I don't like to use anonymous inner classes for handling events. I generally handle events two ways:
    1. Make the main class implement lots of interfaces and use action commands. eg
    public class MyFrame extends JFrame implements ActionListener {
        public static final String CALC_BUTTON = "cb";
        public MyFrame() {
            super();
            JButton cButton = new JButton("Calculator");
            cButton.addActionListener(this);
            cButton.setActionCommand(CALC_BUTTON);
        public void actionPerformed(ActionEvent ae) {
             if (ae.getActionCommand().equals(CALC_BUTTON) {
                 //do something
    2. Subclass AbstractAction.
    public class MyAction extends AbstractAction {
        //create a constructor specific to the goal
        public MyAction(/*Some arguments*/) {
            //set  variables
        public void actionPerformed(ActionEvent ae) {
             //handle the action
    //and in the main class
    JButton cButton = new JButton("Calculator");
    cButton.setAction(new MyAction());I tend to use the first method more often, but if there's some specific kind of action, then I use the second method.
    I'm interested to know what other people do though. :)
    -Muel

  • Calling default browser on button click in swings

    Hi all,
    I have built a window with tab page in it having a button on tabpage in java SWING. Now i want that when ever i click on button it calls my default browser i.e. IE6 with a predefined URL. The browser should open with in the tabpage area not beyond that. Please help........ Many people have helped till now because i am very new to this.......
    Again looking for help from experts................

    I feel like I answer this almost everyday
    search the web for JDIC and webbrowser

  • What FM is called on click of "To Form Selection" button in team viewer

    Hi experts,
         I am working in team viewer in MSS portal and need to cutomize some code in any FM that gets called when you click on button "to form selection" after selecting employee. I rsearched everywhere in portal and all documentation in company and SDN but could not find any information. Could you please share this information if you happen to know the answer?
    Thanks.
    Mithun

    Hello All,
    Can some one please help me out to find a place where we can write our code on click of Login button in EP 7.4.
    Regards,
    Rajesh

  • Calling function by clicking a button in JSP?

    Can I call specific function (present in my JSP page) by clicking a button?
    Regards,
    sumit

    I am using TimerTask in my JSP page to print some message:
    <%
                      Timer timer = new Timer();
                      TimerTask monitorTimerTask = new Monitor();
                      timer.schedule(monitorTimerTask,1000,1000);
    %>
    <%!
         private class Monitor extends TimerTask{
              int i = 0;
              public void run(){
                       System.out.println("TimerTask ["+i+"]");
                       ++i;
    %>And to stop the TimerTask daemon, I created the following function:
    <%!
         public void stopTimerTask(){
              if(monitorTimerTask != null){
                   System.out.println("Stopping the Timer Task");
                   monitorTimerTask.cancel();
    %>Now, I am trying to call funtion "stopTimerTask()" by click of a button in JSP page. The function is being called BUT the daemon keeps on printing the text message to the console. It means the above function is not able to stop the TimerTask.
    What to do?
    Please help!
    Thanks,
    sumit

  • Bug? calling javascript click() on a hidden button causes js error on page

    I call the .click() method on a hidden button to cause the page to refresh. This works OK, but when the page comes back up, it has a javascript error on it. It turns out the error is from some javascript that is trying to set the focus on the hidden button that was clicked, which causes an error in IE (This doesn't seem to bother Firefox) .
    While I imagine that there are workarounds, why should the underlying faces architecture be setting the focus to a hidden button?
    It's easy to duplicate:
    Create new page. Add two buttons. For the first, make it invisible (uncheck visible in properties), then cause it to submit a virtual form.
    For the second, add this to the onclick:
    document.getElementById("form1:button1").click();return false;
    Bring up the page, click on the visible button. The page will refresh, and you'll have a nice js error.
    BTW: Obviously, I don't want to click one button from another. What I want is a way to cause an action to happen from javascript. I can't imagine it would work to simply submit a form from javascript, so I use this method. It works fine except for the error. Is there a better way to do this?

    which causes an error in IE (This doesn't seem to bother Firefox) .Vaious browsers behave differently at times when executing javascript code. Many instances of this can be found on the net. This is a browser specific problem.So it's ok to set the focus to a hidden button because firefox is more relaxed about this obvious error than explorer is? When would anyone really want a hidden button to gain focus? What do I tell my users--don't use explorer, because it doesn't like it when faces sets the focus to a hidden button? Ignore the error message you get? What?
    BTW: Obviously, I don't want to click one button from another. >>What I want is a way to cause an action to happen from javascript.Please describe in detail what action you would like to perform from javascript. It is not clear as to what the use case is.
    I don't really see how the use case matters. I gave a very easy example how to duplicate this problem. The reason that I want to do this is that there are many places to enter javascript code that don't allow for an action to be triggered. I have many instances of this. For example, I'd like a mouseover on an edit field to cause an action. I can capture this in javascript, but I can't cause any server side processing. To get around this limitation, I call the hidden button's .click method, which does cause a server side event.
    Here's a simpler, more direct incarnation of this error that doesn't involve javascript.
    Create a new page. Put an element on it, like an edit box. Put a button on the page. For its action, put:
    public String button1_action() {
    getButton1().setVisible(false);
    return null;
    Pressing this button will cause a page refresh, and then a javascript error.
    Use Case: After the user presses the button, they shouldn't be allowed to press or see it again.

  • Calling SAP Tcode on Button click

    Hello All,
    i want to call SAP Tcode on click of button.
    below is the code for the same,
    data l_componentcontroller type ref to ig_componentcontroller .
      data l_api_componentcontroller type ref to if_wd_component.
      data l_sapgui_manager type ref to cl_wdr_sapgui_integration.
      l_componentcontroller =   wd_this->get_componentcontroller_ctr( ).
      l_api_componentcontroller = l_componentcontroller->wd_get_api( ).
      l_sapgui_manager = l_api_componentcontroller->get_sapgui_manager( ).
      if l_sapgui_manager is not initial.
        l_sapgui_manager->fire_start_transaction( transaction = 'SE38' ).
      endif.
    But the object l_sapgui_manager  is not getting instantiated. please let me know if i am calling the right method or  the code is wrong???
    Regrads,
    Chandra

    Hi Chandra,
    You need to Initialise the  l_sapgui_manager before you are accesing. see the folowing code i initialised my select options component.This code can be obtained from Wizard also. I hope this will help you.
    Please do this in the WDDOINIT of component controller. So that it will be inistatiated before you are accessing the component.
    ** initialize select options component for query creation
      lr_cmp_usage = wd_this->wd_cpuse_sel_options( ).
      wd_this->usage_name = lr_cmp_usage->name.
      IF lr_cmp_usage->has_active_component( ) IS INITIAL.
        lr_cmp_usage->create_component( ).
      ENDIF.
      l_ref_interfacecontroller = wd_this->wd_cpifc_sel_options( ).
      wd_this->mr_selopt_helper   = l_ref_interfacecontroller->init_selection_screen( ).
    Warm Regards,
    Vijay.
    Message was edited by:
            Vijaya Bhaskarudu Gangisetty

  • Calling billing and delivery transactions when i click the button in webdyn

    Hi,
    How to call the transactions like billing and delivery when i click the button.I am developing a webdynpro alv report in that 2 buttons are there.one is confirmation and another is cancel.
    I want to call the billing transaction when i press the confirmation button?

    Hi Lakshmi,
    It is not possible to directly call a transaction code from a wev application. Calling a transaction involves launching of SAP Dynpros which is not supported by WDA frame work.
    One possible ways is to use transactional iViews in Portal. We can Associate a transaction code to this and when called, it launches the same in an R/3 Screen.
    If you are using portal as a triggerring point of your web dynpro applications, then the below requirement is achieved by doing the following.
    1. Create a BDC report program to call transaction CAT2 skipping the first screen.
    2. The report has the same input parameters as that of the transaction CAT2.
    3. Associate a transaction to the report program sat 'ZCAT2'.
    In the event handler of the button in your web dynpro do that following
    Data declarations
    Local Internal tables(lt_)
    lt_bus_parameter_list TYPE wdy_key_value_table,
    lt_launcher_parameter_list TYPE wdy_key_value_table,
    Local Work area's(ls_)
    ls_keyvalue_pair TYPE wdy_key_value,
    Local Variables(l_)
    l_pcdpageurl TYPE string,
    l_componentcontroller TYPE REF TO if_wd_component,
    l_port_manager TYPE REF TO if_wd_portal_integration.
    Constants(c_)
    CONSTANTS:
    c_transaction_code TYPE string VALUE 'ZCAT2',
    c_okcode TYPE string VALUE 'F8',
    c_param1 TYPE string VALUE 'P_Data_Entry_Profile',
    c_param2 TYPE string VALUE 'P_person_number'.
    l_componentcontroller = wd_this->wd_get_api( ).
    l_port_manager = l_componentcontroller->get_portal_manager( ).
    Fill all the business parameters
    CLEAR ls_keyvalue_pair.
    ls_keyvalue_pair-key = c_param1.
    ls_keyvalue_pair-value = 'Data Entry Profile'.
    APPEND ls_keyvalue_pair TO lt_bus_parameter_list .
    CLEAR ls_keyvalue_pair.
    ls_keyvalue_pair-key = c_param2.
    ls_keyvalue_pair-value = 'Person Number'.
    APPEND ls_keyvalue_pair TO lt_bus_parameter_list .
    Fill the launcher parameters for the transaction
    CLEAR ls_keyvalue_pair.
    ls_keyvalue_pair-key = 'AutoStart'.
    ls_keyvalue_pair-value = 'Yes'.
    APPEND ls_keyvalue_pair TO lt_launcher_parameter_list.
    CLEAR ls_keyvalue_pair.
    ls_keyvalue_pair-key = 'GuiType'.
    ls_keyvalue_pair-value = 'WinGui'.
    APPEND ls_keyvalue_pair TO lt_launcher_parameter_list.
    CLEAR ls_keyvalue_pair.
    ls_keyvalue_pair-key = 'OkCode'.
    ls_keyvalue_pair-value = c_okcode.
    APPEND ls_keyvalue_pair TO lt_launcher_parameter_list.
    CLEAR ls_keyvalue_pair.
    ls_keyvalue_pair-key = 'System'.
    ls_keyvalue_pair-value = 'SAP_R3_HumanResources'.
    APPEND ls_keyvalue_pair TO lt_launcher_parameter_list.
    CLEAR ls_keyvalue_pair.
    ls_keyvalue_pair-key = 'TCode'.
    ls_keyvalue_pair-value = c_transaction_code.
    APPEND ls_keyvalue_pair TO lt_launcher_parameter_list.
    CLEAR ls_keyvalue_pair.
    ls_keyvalue_pair-key = 'Technique'.
    ls_keyvalue_pair-value = 'SSF'.
    APPEND ls_keyvalue_pair TO lt_launcher_parameter_list.
    CLEAR ls_keyvalue_pair.
    ls_keyvalue_pair-key = 'WinGui_Type'.
    ls_keyvalue_pair-value = 'Shortcut'.
    APPEND ls_keyvalue_pair TO lt_launcher_parameter_list.
    SAP has provided us with customizing table to maintain the path for the iView.Here Resource_key is the key field to get the path.
    We create a new entry in this table using which we uniquely identify the path of the iVew that needs to be launched.
    get the url of the pcd page for the common transaction iView
    SELECT SINGLE b~text
    INTO l_pcdpageurl
    FROM t7xssserstring AS b
    INNER JOIN t7xssserres AS a
    ON a~respcdpage = b~guid
    WHERE a~ressource = /rio/zcl_hse_constants=>c_common_resource.
    Navigate to the Injury Illness details
    CALL METHOD l_port_manager->navigate_absolute
    EXPORTING
    navigation_target = l_pcdpageurl
    navigation_mode = l_port_manager->co_show_external
    use_sap_launcher = abap_true
    business_parameters = lt_bus_parameter_list
    launcher_parameters = lt_launcher_parameter_list.
    The folowing is the flow of the program:
    When user clicks a button to launch transaction CAT2, the event handler associated to it called.
    Here we populate an internal table with the parameters to call transaction ZCAT2 and the iView is launched by calling navigate_absolute method with the right path.
    I am not very much sure as to how the iViews are set up but there is a provision to read the key valure pair there. The values are read and the tranzation ZCAT2 is called which will inturn launch CAT2 transaction.
    By adding Skip First screen statement we can get in the details directly.
    Hope this helps.
    Regards,
    Sravan Varagani

  • Click a button in an applet application to call up or open another window.

    Please, kindly show me how to call up or open an applet window(written in a seperate file) by clicking a button in an applet application.
    Thanks
    Alam Winner Ikenna
    import java.awt.*;  
    import javax.swing.*;  
    /*<HTML> 
      <Applet code = "Qualification.class" Height = "400" width = "400"></Applet> 
      </HTML>*/ 
    public class Qualification extends JApplet  
        JPanel p, p1, p2, p3, p4, p5, p6, p7;  
        JLabel heading, grad, grd, sh, uni, grs, tda, sco, toe, detrd;  
        JButton b;  
        JTextField tgrad, tgrd, tsh, tuni, tgrs, ttda, tsco, ttoe, tdetrd;  
        GridBagLayout gbl;  
        GridBagConstraints gbc;  
        public void init()  
            p = new JPanel();  
            p1 = new JPanel();  
            p2 = new JPanel();  
            p3 = new JPanel();  
            p4 = new JPanel();    
            p5 = new JPanel();  
            p6 = new JPanel();  
            p7 = new JPanel();  
            gbl=new GridBagLayout();  
            gbc=new GridBagConstraints();  
            p =(JPanel)getContentPane();  
            p.setLayout(gbl);  
            heading = new JLabel("QUALIFICATION DETAILS:");  
            grad = new JLabel("Graduation Degree Program:");  
            grd = new JLabel("Grade");  
            sh = new JLabel("School");  
            uni = new JLabel("University");  
            grs = new JLabel("Graduate Record Examination (GRE) Scores");  
            tda = new JLabel("Test Date:");  
            sco = new JLabel("Score(%)");  
            toe = new JLabel("TOEFL Score (If required):");  
            detrd = new JLabel("Details of Recent Hounors and Awards:");  
            tgrad = new JTextField(20);  
            tgrd = new JTextField(20);  
            tsh = new JTextField(20);  
            tuni = new JTextField(20);  
            tgrs = new JTextField(20);  
            ttda = new JTextField(20);  
            tsco = new JTextField(20);  
            ttoe = new JTextField(20);  
            tdetrd= new JTextField(20);  
            b = new JButton("SUMBIT");  
            gbc.gridwidth=GridBagConstraints.REMAINDER;  
            gbl.setConstraints(heading, gbc);  
            p.add(heading);  
            gbc.anchor = GridBagConstraints.CENTER;  
            gbc.gridwidth = 1;  
            gbc.weightx = 0;  
            gbl.setConstraints(grad, gbc);  
            p.add(grad);  
            gbc.gridx = 2;  
            gbc.gridy = 1;  
            gbl.setConstraints(tgrad, gbc);  
            p.add(tgrad);  
            gbc.gridx = 4;  
            gbc.gridy = 1;  
            gbl.setConstraints(grd, gbc);  
            p.add(grd);  
            gbc.gridx = 6;  
            gbc.gridy = 1;  
            gbl.setConstraints(tgrd, gbc);  
            p.add(tgrd);  
            gbc.anchor = GridBagConstraints.NORTHWEST;  
            gbc.gridx = 0;  
            gbc.gridy = 2;  
            gbl.setConstraints(sh, gbc);  
            p.add(sh);  
            gbc.gridx = 2;  
            gbc.gridy = 2;  
            gbl.setConstraints(tsh, gbc);  
            p.add(tsh);  
            gbc.gridx = 4;  
            gbc.gridy = 2;  
            gbl.setConstraints(uni, gbc);  
            p.add(uni);   
            gbc.gridx = 6;  
            gbc.gridy = 2;  
            gbl.setConstraints(tuni, gbc);  
            p.add(tuni);  
            gbc.anchor = GridBagConstraints.NORTHWEST;  
            gbc.gridx = 0;  
            gbc.gridy = 4;  
            gbl.setConstraints(grs, gbc);  
            p.add(grs);  
            gbc.gridx = 2;  
            gbc.gridy = 4;  
            gbl.setConstraints(tgrs, gbc);  
            p.add(tgrs);  
            gbc.anchor = GridBagConstraints.NORTHWEST;  
            gbc.gridx = 0;  
            gbc.gridy = 5;  
            gbl.setConstraints(tda, gbc);  
            p.add(tda);  
            gbc.gridx = 2;  
            gbc.gridy = 5;  
            gbl.setConstraints(ttda, gbc);  
            p.add(ttda);  
            gbc.gridx = 4;  
            gbc.gridy = 5;  
            gbl.setConstraints(sco, gbc);  
            p.add(sco);   
            gbc.gridx = 6;  
            gbc.gridy = 5;  
            gbl.setConstraints(tsco, gbc);  
            p.add(tsco);  
            gbc.anchor = GridBagConstraints.NORTHWEST;  
            gbc.gridx = 0;  
            gbc.gridy = 6;  
            gbl.setConstraints(toe, gbc);  
            p.add(toe);  
            gbc.gridx = 2;  
            gbc.gridy = 6;  
            gbl.setConstraints(ttoe, gbc);  
            p.add(ttoe);  
            gbc.anchor = GridBagConstraints.NORTHWEST;  
            gbc.gridx = 0;  
            gbc.gridy = 7;  
            gbl.setConstraints(detrd, gbc);  
            p.add(detrd );   
            gbc.gridx = 2;  
            gbc.gridy = 7;  
            gbl.setConstraints(tdetrd, gbc);  
            p.add(tdetrd);  
            gbc.anchor = GridBagConstraints.NORTHWEST;  
            gbc.gridx = 6;  
            gbc.gridy = 8;  
            gbl.setConstraints(b, gbc);  
            p.add(b);   
    }Edited by: [email protected] on Apr 8, 2009 1:16 PM

    [email protected] wrote:
    Can an applet have an actionPerformed method in it and if it does, do I need to write the code in an actionPerformed method ?Sure it can. Yes if you implement from the ActionListener interface, you must override the actionPerformed method.
    Secondly, The (new URL("otherApplet.html"), "_NEWWIN"); What does this stand for? It means open the html file "otherApplet.html" in a new window named NEWWIN. NEWWIN can be replaced by any name you want.
    Because, the compiler complained about URL, saying that, is not a class.You need to import the URL class from java.net package.

Maybe you are looking for

  • ICal error message, Server.

    Every time I open iCal (version 4,0,4) I get this error message: "The server responded with an error.  The server did not recognise your user name or password for account "[email protected]"  Make sure you enter them correctly." Where do I enter that

  • No sound after windows 7 install on T60p

    1. connect the Win7 to internet...it should find drivers with WindowsUpdate 2. there is a program on Lenovo site...it can find all the drivers needed 4 ur computer...have to look & home how is it called?check download: http://support.lenovo.com/us/en

  • HP Support Assistant not working correctly in Windows 8.1

    I reinstalled HP Support Assistant for I thought there was a problem with it when I upgraded to Windows 8, but it seems that the problem still happening.  The problem is that I can not get the Assistant to work as to going to get help with a live tec

  • Shared Services Users Export............

    Hi All, I want to export shared services users for a particular application. Is there any way for this? Thanks

  • Preset 'Standard' paper size wrong

    I have a user who somehow managed to change the preset 'standard' paper size to a custom size. He didn't go into the terminal, didn't edit any plists, etc that he is aware. Since we've got a work around already (created a new preset with US Letter) i