Can an actionListener function be called inside a constructor?

Can an actionListener function be called inside a constructor??
class MainBean{
public MainBean(){
Can the linkDescription() function be called here?? Will there be any Parameters.??
public void linkDescription(ActionEvent e )
// actionListener Code
}

vishnuS1984 wrote:
@kevinaworkman : I am still struggling to assess how to :) what will be the syntax to call a function which takes in pameters like 'linkDescription (ActionEvent evt)'. I have not tried out yet...but can i call it by ' linkDescription() ' from inside my constructor.Its a basic java doubt as to how to call a function which accepts object of ActionEvent as parameters.I am still a begginer in Java who is trying to code in Spring:).Well, do you actually use the parameter in the method? This is completely legal:
public class NullTest {
    public NullTest() {
         doMyMethod(null);
    public void doMyMethod(String parameter){
         System.out.println("I don't care about my parameter!");
    public static void main(String[] args) {
        new NullTest();
}

Similar Messages

  • RFC function module called inside an enhancment section

    Hi All,
    I am calling a RFC function module in background task as a separate unit. I am calling this FM within an enhancement section. Is it alright to use a commit work inside this RFC enabled FM even if I am calling it within an enhancemnt? Please help

    Hi,
    Yes,  you can use a commit work inside this RFC enabled FM even if I am calling it within an enhancemnt. Please refer below link regaring this. Thanking you.
    Commit within an enhancement point

  • Using SET DATEFIRST inside a function to call into a view

    Hi,
    I need to use the statement SET DATEFIRST inside a function. This operation is not available, but I need to use this command into a function to call inside a view.
    How can I solve this issue?
    Thanks

    Eventually you will learn 2 very important things.  First, the term "working day" has no absolute definition and varies by country, organization, culture, etc.  Second is that circumstances will occur that change what should be considered a working
    day to a non-working day (or vice versa).  While you might attempt to create logic that "forecasts" whether a given date in the future is a working day, you cannot apply that logic to past dates.  The best solution is to create a calendar table for
    this purpose - some forum/internet searching will find many different variations.

  • Can i use function inside sql in a form ?????

    Here SERIAL_NUM is a function, this sql work fine in TOAD and SQLPLUS but inside the form iam getting error saying "function serial_num cannot be used in a sql" Why is it like that ?? Is there anyother way to execute this sql ?
    cursor c1 is
    SELECT msn.ATTRIBUTE7 Order_No,
    SERIAL_NUM(i.SERIAL_NUMBER) Serial_No,
    msn.ATTRIBUTE5 Firmware,
    msn.ATTRIBUTE15 Site_Pref
    FROM atrd.INSTALLER_INFO i,
    mtl_serial_numbers msn
    where SERIAL_NUM(i.SERIAL_NUMBER)=msn.SERIAL_NUMBER

    hi,
    yes of course you can use the functions in sql as well as in forms( within sql statements).
    here i think you are not connected to the Specified user which is having the function Serial_num
    or other thing may that ur syntax
    just check both of them that may help you.
    enjoy
    Tehzeeb Ahmed

  • Can we add the standard includes inside a function exit.

    Hi,
    Can we add the standard includes inside a function exit.
    I want to add 4 to 5 standard includes. If iam adding it it says report or program already exists.
    Can anyone tell me is it possible or we can modify the only the data which is coming to that function module .
    Please help me on this.
    Thanks,
    Rose.

    hi santhosh,
      The data needed for those includes are also exist in the funtion module exit. I want to add those includes and in one include just i want to add some 10 to 15 lines of code. Is it possible.
    If i include all those includes inside the function exit it says report or program name already exists. When i double clicked on the error it takes me to a line in 1 include which has function-pool statement.
    How can i eradicate this error.
    Can u please help me on this.

  • Can a function module call another function module

    Can a function module call another function module:-
      within the same function group
    (ii)  within different function  groups

    Hi,
    We can call function from another function. If there is a function which is like a calculator and all the operations are from different functions then we have to call the functions from the calculator function for different functions.
    If all the function are from same function group, Then the data is globally available to all the functions with in the group.
    Otherwise we have to declare the data definitions for each of the functions if they are in different function groups.  
    Yes it is possible to call a function module from another function module:-
    within the same function group
    (ii) within different function groups
    Reward.

  • How can we make function calls to sap in odi ?

    how can we make function calls to sap in odi ?
    to populate a column i need to make a function call which returns the value.

    There are two ODI SAP adapters available that allows extraction from SAP ERP and SAP BW. For SAP ERP we allow extraction from ERP tables, but not from RFCs/BAPIs.
    You can find details on them at
    http://www.oracle.com/technetwork/middleware/data-integrator/overview/odigs-sapabap-168070.pdf
    http://www.oracle.com/technetwork/middleware/data-integrator/overview/odigs-sapabapbw-168071.pdf

  • Help!!! I can not make or receive calls! other functions itself. Internet, sms, whatsapp work. I restored as new iphone from the phone and from itunes and still not working.

    I can not make or receive calls! other functions itself. Internet, sms, whatsapp work. I restored as new iphone from the phone and from itunes and still not working.
    Sorry for my english i'm spanish

    I have not tried that...I will look up the process so that I can do it correctly (and still transfer all of my files, contacts, etc).  Any suggestions?  What is the advantage of restoring as a new device..is this more akin to a complete wipe of a hard drive?

  • HT201263 my iPhone is disabled. since im traveling i have no access to my computer to restore the phone. What can I do to at least use the phone again with it's basic functions (make calls, send and receive sms)?

    My iphone is disabled and I'm traveling. What can I do to reset it to at least use its basic functions (make calls & send / receive sms)?

    There is nothing you can do without doing a restore via the recovery mode.  Since you have iOS 7, if you activated Find My Phone in Settings > iCloud, you can login to your iCloud account, https://www.icloud.com from a computer, and then do a remote wipe of the iPhone...that will return it to factory condition and all contents will be erased.

  • Printing function gets called twice..!

    The following is my class that prints a string array which sometimes goes into multiple pages.. The code in which i create the multiple pages is below this class.. the problem is each time i append a new page to the book the print function in the class PaintC is called twice.. so if I write some additional code inside the print function to edit the strings .. it ends up running twice and the formatting i try to do gets messed up.. !! do you guys know why this is happening..? Please help.. ive been trying to find out since a very long time..!!
    The code in which i call this function is also shown below
    CLASS FOR PRINTING
    class PaintC
        implements Printable {
      String ad[];
      public PaintC(String ac[]) {
        System.out.println("Print Class Called 1");
        this.ad = ac;
      public int print(Graphics g, PageFormat pf, int pageIndex) throws
          PrinterException {
        System.out.println("Print Function Called 1");
        Graphics2D g2 = (Graphics2D) g;
        g.setFont(new java.awt.Font("Trebuchet MS", Font.PLAIN, 8));
        int xo = 60;
        int yo = 36;
        for (int y = 0; y < 76; y++) {
          try {
            g2.drawString(ad[y], xo, yo);
            yo += 9;
          catch (Exception r) {
            y = 76;
        return Printable.PAGE_EXISTS;
    CODE FOR CREATING MULTIPLE PAGES USING ABOVE CLASS
    void dotheprint() {
        PrinterJob printerJob = PrinterJob.getPrinterJob();
        PageFormat format = new PageFormat();
        Printable painter1;
        format = printerJob.defaultPage(format);
        Paper paper = format.getPaper();
        paper.setImageableArea(60, 36, 500, 756);
        format.setPaper(paper);
        // try storing in a string array each line
        Book bk = new Book();
        String ab = jTATRRep.getText();
        int i, j, lc = jTATRRep.getLineCount();
        String ac[] = new String[lc + 3];
        String ad[] = new String[78];
        ac = ab.split("\n");
        //System.out.println("Number of Lines = " + lc);
        //setting up pages as string arrays..
        // setting up first page
        //Assuming 76 lines per page
        for (i = 0; i < 76 && i < lc; i++) {
          try {
            ad[i] = ac;
    catch (Exception ex) {
    bk.append(new PaintC(ad), format);
    ad = null;
    // setting up second page if neccessary
    // //System.out.println("Number of Lines /76= "+lc/76);
    int pagec = lc / 76;
    int modul = lc % 76;
    int k;
    if (modul > 0) {
    pagec++;
    // //System.out.println("Number of pages : "+pagec);
    j = 76;
    while (pagec > 1) {
    ad = new String[76];
    k = 0;
    for (i = j; i < (lc - 1) && k < 76; i++) {
    // //System.out.println("ac[i]= "+ac[i]);
    ad[k] = ac[i];
    k++;
    bk.append(new PaintC(ad), format);
    ad = null;
    j += 76;
    pagec--;
    printerJob.setPageable(bk);
    boolean doPrint = printerJob.printDialog();
    if (doPrint) {
    try {
    System.out.println("Print Called 1");
    printerJob.print();
    System.out.println("Print Called 2");
    catch (PrinterException exception) {
    System.err.println("Printing error: " + exception);
    CODE IN WHICH THE PRINT FUNCTION IS CALLED
    void jBPrint_actionPerformed(ActionEvent e) {
        dotheprint();
    class ContactManager_jBPrint_actionAdapter
        implements java.awt.event.ActionListener {
      ContactManager adaptee;
      ContactManager_jBPrint_actionAdapter(ContactManager adaptee) {
        this.adaptee = adaptee;
      public void actionPerformed(ActionEvent e) {
        adaptee.jBPrint_actionPerformed(e);

    You might want to check out the [url http://forum.java.sun.com/thread.jsp?forum=57&thread=500687&tstart=0&trange=15]crosspost in the swing forum before spending your time answering this question.

  • Can't make or receive calls or texts. I have FULL signal.

    I have 100% full signal, all bars are there. I CAN NOT MAKE OR RECEIVE  phone calls or text messages!! Started to happen on 6/17/2013. I have  the Samsung Galaxy. My wife and I and a friend  have the same phone and they are having the same problem as me. THEY  can not make calls or receive calls or text messages as well........they  have full signal too!!! Again, this has been happening since 6/17/2013.  IT IS ONLY HAPPENING IN MY HOMETOWN AREA!!! THE TOWN WHERE I LIVE!! WHEN I  LEAVE MY TOWN...half mile north or half mile south-IT WORKS FINE AGAIN... WHEN I COME HOME, NO CALLS, NO TEXTS, AND  THERE IS FULL SIGNAL. WHEN I TRY MAKING A CALL I WATCH THE SIGNAL, I  PRESS SEND, THE SIGNAL IS FULL SIGNAL, AND 15 SECONDS LATER IT DROPS  THE CALL (message says call ended). DOESN'T CONNECT THE CALL. THE TOWN IS WILLIAMSVILLE NY. THE  ZIP CODE IS 14221. ACADEMY STREET, MILL STREET, SCHOOL ST, EAGLE ST all in zip code 14221. These phones are our ALL IN ONE phones. We don't have home phones. We can't call anyone while at home . THERE IS A PROBLEM WITH THE  VERIZON TOWER THAT SERVICES THIS AREA. PLEASE HELP!
    AGAIN...THIS  IS HAPPENING TO ME, MY WIFE, AND FRIENDS.  IT ONLY IS HAPPENING IN ZIP CODE 14221 WHERE WE ALL LIVE. I KNOW THAT THERE ARE OTHER VERIZON CUSTOMERS HAVING THIS ISSUE HERE (14221) AS WELL. IT'S  NOT OUR PHONES. THERE IS A PROBLEM WITH THE SERVICE.

        theroamer Having issues with signal is definitely not how we want you to experience wireless service. We take this very seriously because just like you I use my cell phone for everything and recently eliminated my home phone. I would love to help you with this issue, so lets get started. I show you are in an area that has great coverage. I do show multiple customers have reported issues in your area and a few weeks ago, it shows the issue was resolved. You advised that you cant get calls inside your home. Have you always had signal issues inside the home? If you step outside your door, can you make a call, send text, or access data related functions at all? Have you tried to power cycle the devices or perform a master reset. Before you rest the device, lets try a SIM card removal. Power the device off first and follow these steps http://tiny.cc/2gn6yw . This will reconnect you with the towers. You should have your wife and friend perform the same steps. If you continue to have the issues, try performing the hard reset http://tiny.cc/9in6yw . Make sure all information is backed up first. The steps above should help with your issue. If your still having the problems with signal, send us a private message with your name and mobile number. We can try submitting another trouble ticket for the issues so that we continue to inform our technicians in hopes that your area issue is revisited. I truly apologize for the issues your having and that your trouble-tickets were closed without any resolution. I look forward to hearing from you soon.
    KinquanaH_VZW
    Follow us on Twitter @vzwsupport

  • Can i use a environment variable inside a *.sql file?

    Hello,
    I want to create a external table.
    So i am using the command
    create or replace directory abc as 'C:\folder'.... inside a sql file.
    Now i want the path "C:\folder" to be dynamic as i am using this path in many other places also inside the sql file.So i thought to create a environment variable and put this value there.I tried using as %PATH% but it gives error..... where %PATH%=C:\folder.
    Can i use a environment variable inside a *.sql file?
    But how to do that or is there any other way.
    Thanks
    Swapna
    Edited by: user11018268 on Feb 19, 2010 1:03 AM

    user11018268 wrote:
    Actually what i want is the path "C:\folder" is not fixed it can be anything which i may not know the user may decide it later. Not supported. A directory object refers to a specific physical location (directory/folder) on a file system. Not a path.
    You can work around it by (creating and) using a function (running under a super user schema with authid definer privs). The caller (e.g. schema scott ) calls it with a physical path. E.g. GetDirectoryObject( 'C:\folder\2010\feb\week4' ).
    This function determines if there is an existing directory object for the path. If not, it uses a wildcard search to determine if there are any directory objects for parents in the path (e.g. for C:\folder\2010\feb or C:\folder\2010 or C:\folder ).
    If it finds a directory object, it interrogates the data dictionary to determine if the caller, schema scott for example, has read/write access on that directory object. If it has, it creates a new directory object and grants the caller read/write access to it. The function then returns the name of the directory object to the caller.
    The caller thus do not deal directly with directory objects. The function returns the object name given a physical path as input. Also, only a single base directory needs to be created (e.g. for C:\folder ) and access granted to the schema on it. Any sub-directory in that base directory can now be dynamically accessed by the schema.

  • Can a report in ERP called from CRM system using RFCs??

    Hi All,
    Please let me know if this is possible, if so , how?
    Can a report in ERP called from CRM system using RFCs??
    Thanks
    Siva

    Yes, you should make an RFC function in ERP and inside the
    function you can call the report with a SUBMIT. Then in CRM you can call the RFC function...
    Best regards,
    Iván
    P.D.: Give points if answer helps!!

  • Function module call with destination

    Hi,
    how can check if a function module call with destination works or not ?
    How can I debug.
    What can be the reason if it is not calles
    regards
    ertas

    * to chcek the rfc Destination By pass RFC destination name and Connection Type..
    RFC_CHECK_DESTINATION
    or
    RFC_CHECK_DESTINATION_ID
    or
    You can use this FM RFC_VERIFY_DESTINATION if your release is greater than 4.6C.
    Check this sample code from Craig Cmehil's weblog.
    CALL FUNCTION 'RFC_VERIFY_DESTINATION'
      EXPORTING
        DESTINATION = TMP
            TIMEOUT = 10
      EXCEPTIONS
        INTERNAL_FAILURE           = 1
        TIMEOUT                    = 2
        DEST_COMMUNICATION_FAILURE = 3
        DEST_SYSTEM_FAILURE        = 4
        UPDATE_FAILURE             = 5
        NO_UPDATE_AUTHORITY        = 6
        OTHERS                     = 7.
      IF SY-SUBRC EQ '0'.
        "* Do code here
      ENDIF.
    Prabhu

  • Can't use function in creating record group

    Gurus,
    This question is for developers. Is this true one can't use
    function in creating record group. I am using form5.
    thanks,
    ZW

    I figured out the issue... they changed the way Group Calls are limited.
    Here's a full explaination - and a suggestion for a behavior fix: http://community.skype.com/t5/Windows-desktop-client/Please-Fix-Group-Video-Voice-Calling-Limit-Beha...
    Long story short, you can't do a video calling at all if the group has more than 10 people in it total (including you).
    Also, you can't do voice calling in groups with more than 25 people.
    Text chats are limited to 300 people (or so I've been told by Skype employees). I've been in a chat with over 100 participants though so I know it goes that high at least.

Maybe you are looking for

  • Time Capsule; To buy or not to buy?

    OK - I have read the reviews ,but want the product. I am in need of a 802.11N wireless router AND more storage for back-up. This seems like the perfect option, but I don't want the unit to die after 18 months. I am also in the market for Apple TV, so

  • IPhoto not importing T4i movie clips

    Just got a canon t4i.  Took it out for a test run. Shooting Video only. Came back to import to iPhoto then import to iMovie.  I have it set at 24 frames ps.  Of the 353 small clips only one up loaded, and I can't find it in iPhoto.  The rest were nev

  • Adobe Reader Installation Instructions for Mozilla Firefox problem

    hello. i am trying to finish installing adobe reader, however, i get this request: "Mozilla Firefox will not install Adobe Reader from web sites until you add them to the Allowed List. Please follow the steps below." and here is where the problem beg

  • Combine fillable PDF-Forms

    Hello, I am testing just the Acrobat Pro and have three PDF forms with advanced reader rights (fill and save) created. I would like to fill these PDFs via FDF save from my Access database and to then combine them into one file. When trying to use the

  • Searching for jDeveloper link

    Hi, All, I am new to the OAF and please can any one send me the link where i can download the link for this OAF development kit. Thanks Surya