When we click turminate button in eclipse new txt file has to be created ?

when we click turminate button in eclipse new ,txt file has to be created ?
how can we do this............??

abenstex wrote:
That really would be a pity, because the final answer might be interesting...;-)Pending a definition of "turminate button", it wouldn't be too difficult to generate a new txt file on pressing it. No idea why you'd want to, though

Similar Messages

  • How do i make the old frame dissapear when i click a button for a new frame

    I have a program were you have 2 buttons in a frame. When you click on a choice a new frame pops up with another choice. I wanted to know how can i make the old frame dissapear after the user makes the choice and the new frame has come up?
    Thank you,
    Dan

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Frame extends JFrame implements ActionListener
         private JButton Three;
         private JButton Four;
         private JButton One;
         private JButton Two;
         static int num = 0;
    public Frame()
         JPanel p1 = new JPanel();
    getContentPane().add(p1);
         if(num == 0)
         p1.add(One = new JButton("Admin"));
         One.addActionListener     (this );
         p1.add(Two = new JButton("Buy"));
         Two.addActionListener     (this );
    if(num == 1)
         this.dispose();
         p1.add(Three = new JButton("Password"));
         Three.addActionListener (this);
    if(num == 2)
         p1.add(Four = new JButton("Product-ID"));
         Four.addActionListener(this);
    public void actionPerformed(ActionEvent e)
         if (e.getSource() == One)
              num = 1;
              Frame g = new Frame();
              g.pack();
              g.setVisible(true);
    if (e.getSource() == Two )
                   num = 2;
                   Frame h = new Frame();
              h.pack();
              h.setVisible(true);
         if(e.getSource() == Three )
              System.out.println("Password");
         if(e.getSource() == Four)
                   System.out.println("Product-ID");
    public static void main(String[] args)
         Frame frame = new Frame();
    frame.pack();
    frame.setVisible(true);

  • Thanks For Your Support in advance i want to know that when I open a website that time view print option and when I click close button then page also new window page also close. I want to copy it how i can stop this print option?

    WHEN I OPEN A URL THAT TIME WITH PAGE OPEN SHOWS PRINT OPTION AND WHEN I CLICK CLOSE BUTTON OF PRINT OPTION THAT TIME NEW WINDOW BUTTON IS CLOSED. I WANT TO CLOSE ONLY PRINT OPTION. PLEASE HELP ME...............THANKS

    Many sites which offer specific "print formatted" pages do that: they assume that once you have finished with the print dialog you no longer want the page itself. So for your convenience they close it. Not so convenient for you, since you still want to view the page.
    I'm not aware of an easy solution for this. I can think of a couple different approaches.
    First, maybe there's an add-on to solve this? That would be easiest.
    Second, maybe there's a userscript to solve this?
    The Greasemonkey add-on runs userscripts which you can copy or download. Be careful to install only long-establish and trusted scripts. (''Is there a site that has this bad behavior that I can view without logging in? I will test one of my existing scripts to see whether it helps.'')
    Third, Firefox has an old system for restricting site permissions in a custom text file in your profile folder (named user.js). Editing this file is a bit advanced, and I haven't been able to test it, but the system works along these lines:
    <br>// Define a policy name for window.close permission
    // (assumes you don't have this pref already)
    user_pref("capability.policy.policynames", "nowindowclose");
    // Define policy: disable sites from using window.close
    // in their scripts
    user_pref("capability.policy.nowindowclose.Window.close", "noAccess");
    // List of sites subject to this policy
    user_pref("capability.policy.nowindowclose.sites", "firstbadsite.com secondbadsite.com");
    Again, I haven't tested that and recommend looking into add-ons first.

  • I cannot get a new tab to open when I click the + button.

    Usually when I click the + button, a new tab would open up. But during the last couple of days it has not worked. I click it and nothing happens. I've searched for a solution, but I can not find one. What do I need to do to correct this problem?

    That can a problem with the Ask<i></i>.com toolbar (Tools > Add-ons > Extensions)
    See:
    * [[Troubleshooting extensions and themes]]

  • Hi, problem occurs when I'm clicking a button or a new url on the current site. For instance, when i clicked that "Ask This" button on this web site, It redirects me to the default homepage. I cant go back and I'm losing the previous web site HELP PLEASE!

    Hi, problem occurs when I'm clicking a button or a new url on the current site. For instance, when i clicked that "Ask This" button on this web site, It redirects me to the default homepage. I cant go back and I'm losing the previous web site HELP PLEASE!

    Try the Firefox SafeMode. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    # You can open the Firefox 4.0 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    # Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    If it is good in the Firefox SafeMode, your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • Clicking the button leads to new window to (Dmitry

    hai....
    i have created a portal form
    and i have written a plsql procedure to display the report... the
    plsql procedure
    is
    cvalue varchar2(10):='Report';
    cursor enquiry is select * from oredu_enqs;
    cursor enqs is select * from oredu_enqs where
    OR_REG_REGION in
    (SELECT REGION FROM ORE_REGS WHERE ACCMGR_ID=portal40.wwctx_api.get_user);
    begin
    if cvalue='Report' then
    If (portal40.wwctx_api.get_user='JAYANTHAN')then
    htp.br;
    htp.br;
    htp.tableOpen('BORDER=2');
    htp.CenterOpen();
    htp.TableRowOpen;
    htp.TableHeader('Region');
    htp.TableHeader('Enquiry No');
    htp.TableHeader('Name');
    htp.TableHeader('Address');
    htp.TableHeader('Company');
    htp.TableHeader('Phone(Office)');
    htp.TableHeader('Phone(Residence)');
    htp.TableHeader('Fax');
    htp.TableHeader('Email');
    htp.TableHeader('Accademic Qualification');
    htp.TableHeader('Professional Qualification');
    htp.TableHeader('Work Experience');
    htp.TableHeader('Request Date');
    htp.TableHeader('Comments');
    htp.TableHeader('Course Enquired For');
    htp.TableHeader('Enquiry Tyep');
    htp.TableHeader('Action Taken');
    htp.TableHeader('Date Of Action');
    htp.TableHeader('Status');
    htp.TableHeader('Remarks');
    htp.TableRowClose;
    FOR i IN enquiry LOOP
    htp.TableRowOpen;
    htp.TableData(i.or_reg_region);
    htp.TableData(i.enq_no);
    htp.TableData(i.first_name&#0124; &#0124;i.last_name);
    htp.TableData(i.address&#0124; &#0124;i.address2&#0124; &#0124;i.address3);
    htp.TableData(i.company);
    htp.TableData(i.phone_off);
    htp.TableData(i.phone_res);
    htp.TableData(i.fax);
    htp.TableData(i.email);
    htp.TableData(i.qual_acc);
    htp.TableData(i.qual_prof);
    htp.TableData(i.work_exp);
    htp.TableData(i.date_req);
    htp.TableData(i.comments);
    htp.TableData(i.course);
    htp.TableData(i.enq_type);
    htp.TableData(i.action_taken);
    htp.TableData(i.date_action);
    htp.TableData(i.status);
    htp.TableData(i.remarks);
    htp.TableRowClose;
    END LOOP;
    htp.tableclose();
    htp.appletclose();
    else
    htp.TableOpen('BORDER=2',cattributes=>'VALIGN="TOP"');
    htp.TableRowOpen;
    htp.TableHeader('Region');
    htp.TableHeader('Enquiry No');
    htp.TableHeader('Name');
    htp.TableHeader('Address');
    htp.TableHeader('Company');
    htp.TableHeader('Phone(Office)');
    htp.TableHeader('Phone(Residence)');
    htp.TableHeader('Fax');
    htp.TableHeader('Email');
    htp.TableHeader('Accademic Qualification');
    htp.TableHeader('Professional Qualification');
    htp.TableHeader('Work Experience');
    htp.TableHeader('Request Date');
    htp.TableHeader('Comments');
    htp.TableHeader('Course Enquired For');
    htp.TableHeader('Enquiry Tyep');
    htp.TableHeader('Action Taken');
    htp.TableHeader('Date Of Action');
    htp.TableHeader('Status');
    htp.TableHeader('Remarks');
    htp.TableRowClose;
    FOR j IN enqs LOOP
    htp.TableRowOpen;
    htp.TableData(j.or_reg_region);
    htp.TableData(j.enq_no);
    htp.TableData(j.first_name&#0124; &#0124;j.last_name);
    htp.TableData(j.address&#0124; &#0124;j.address2&#0124; &#0124;j.address3);
    htp.TableData(j.company);
    htp.TableData(j.phone_off);
    htp.TableData(j.phone_res);
    htp.TableData(j.fax);
    htp.TableData(j.email);
    htp.TableData(j.qual_acc);
    htp.TableData(j.qual_prof);
    htp.TableData(j.work_exp);
    htp.TableData(j.date_req);
    htp.TableData(j.comments);
    htp.TableData(j.course);
    htp.TableData(j.enq_type);
    htp.TableData(j.action_taken);
    htp.TableData(j.date_action);
    htp.TableData(j.status);
    htp.TableData(j.remarks);
    htp.TableRowClose;
    END LOOP;
    htp.tableClose();
    end if;
    end if;
    end;
    this is the plsql procedure....
    procedure is working well in the portal
    i want to call this procedure when i click the button and shows the value....
    i thing u will understand after reading my
    program....
    after checking the cvalue i want to go to
    new window,and that window should show the
    value...
    please
    thanks in advance

    953006 wrote:
    I would like to have a button that when clicked once, redirects the page to a URL in a new tab. The URL is based on a sql query from a dynamic action linked to the button.
    Way 1:
    I have tried to use redirect_url() in the dynamic action itself.
    <pre>
    htp.init;
    owa_util.redirect_url('http://myurl.com');
    </pre>
    But it didn't work at all.
    So I tried ...
    Way 2:
    1. In the dynamic action set a page item value to the url. This is Action 1 of the dynamic action.
    <pre>
    :P33_URL_ITEM := function_that_returns_the_url;
    </pre>
    2. Submit the page. This is Action 2 of the dynamic action.
    3. Action 3 of the dynamic action executes the following JavaScript code:
    <pre>
    window.location.href="&P33_URL_ITEM.";
    </pre>
    However, the problem is P33_URL_ITEM is not set the first time (or whenever the session is cleared), so that the button has to be clicked twice in order for the page to be redirected.
    Not-important question: Does anyone know how to fix it so that only 1 click is needed?
    Can't you set the P33_URL_ITEM page item in a on-load pl/sql process? It is difficult to give a precise answer unless I see what you are doing the page.
    Way 3:
    Use APEX Branch.
    Important question: Does anyone know how to make the branch open the URL in a new page?
    This thread might help:
    Open URL in new window when button pressed

  • HT1933 I am facing problems with mails after update iPhone 4S/io7. I have configured yahoo mail in iPhone 4S. When I click on refresh, it shows new mail downloaded but when I go inside inbox the new mail don't show up. Can anyone help me with this iOS 7 i

    I am facing problems with mails after update iPhone 4S/io7. I have configured yahoo mail in iPhone 4S. When I click on refresh, it shows new mail downloaded but when I go inside inbox the new mail don't show up. Can anyone help me with this iOS 7 issue ?

    Hi were you able to resolve yours?
    I was very worried losing all my medical stuff on my iPad Air 2, plus i have nothing to use for the next day! So i have to try all the possible things i read on the internet!! And this worked on my part (Thank God, and thank you Google)
    Perform a hard reboot
    Hold down the Home button and Power button on your iPhone or iPad and keep holding them until you see the Apple logo. Once you do, you can let go. When your device boots back up, go ahead and check to see if the apps have started re-downloading. If they still appear to be stuck, continue on.

  • 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

  • HT201209 Trying to redeem a free download for a song from KLove. When I get into my acct & try to redeem it, it just keeps bringing up the "sign-in" box. When I click the button on KLove's webpage to redeem it takes me to that page but does the same thing

    Trying to redeem a free download for a song from KLove. When I get into my acct & try to redeem it, it just keeps bringing up the "sign-in" box. When I click the button on KLove's webpage to redeem it takes me to that page but does the same thing

    Get the redeem code from the KLove page:
    http://www.klove.com/music/store.aspx
    ...and enter it into the Redeem Code box in the iTunes Store.
    You will have to sign in to your iTunes account.
    It worked fine here.  If that doesn't work for you, let us know what went wrong.

  • Problem report only print out when i click back button

    hi all..i having problem with my report print program. the problem is my report did not immediately print out when i click print button. the program require me to click back button before print out execute. please help me to solve this problem. Thank you.
    Edited by: padile on Jan 7, 2010 3:51 AM

    Hi,
    In your program, mention the following:
    DATA: gs_out_opt TYPE ssfcompop.
    gs_out_opt-tdimmed = 'X'           "Print immediately
    CALL FUNCTION lv_fname         "Smartform FM
          EXPORTING
            output_options     = gs_out_opt  
    Regards,
    Dawood.

  • My iPhoto library has suddenly disappeared from my computer. When i click on iPhoto it tells me to choose my library or create a new one. However no library option appears. I have searched the computer for the library but it does not seem to exist

    My iPhoto library has suddenly disappeared from my computer.
    When i click on iPhoto it tells me to choose my library or create a new one. However no library option appears. I have searched the computer for the library but it does not seem to exist anymore. I did not have time machine set up, so there is no back up. Is there any way i can retrieve my library?
    Here is a picture of what appears when i click on iPhoto:

    In terms of searching i have searched for photos on my finder. However, none of the photos that appear are from my iPhoto Library.
    Search with FindAnyFile. You can download it here:   http://apps.tempel.org/FindAnyFile/index.php
    Search for any file with "ThumbJPGSegment" in the name. If you added at least one image to your library, the library should contain a file with this name, see OldToad's post: Re: Since I updated to iPhoto 9.5.1, my library is not listed or available. How can I find it? Can I use the time machine to restore it?

  • HT5622 Actually um trying to update new iOS 7 for my iphone 4 but when i press the button to install new software suddenly it appears why " iOs 7 failed verification because you are no longer connected to the internet " even my phone is already connected

    hie there Actually um trying to update new iOS 7 for my iphone 4 but when i press the button to install new software suddenly it appears why " iOs 7 failed verification because you are no longer connected to the internet " even my phone is already connected to net

    I tried powering down and re-starting the iPhone (as suggested at http://support.apple.com/kb/TS1275). This seems to have cleared the "...not connected to the Internet" problem, and iOS 6.1 is now in the process of downloading.
    Thanks very much for your feedback.

  • Why when I click on a link a new window opens instead of a tab, this is new

    When I click on a link a new window opens instead of a new tab. This is new. I've gone into tools and checked my settings and nothing changes it. It annoys me.

    This issue can be caused by an extension that isn't working properly.<br>
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • Showing universal work list when user clicks a button in webdynpro java

    Hi,
    I am developing webdynpro java application, when user clicks a button i want to display Universal worklist in the portal, if user is logged in then it directly shows in portal otherwise it should asks for username and password.
    Thanks,
    Madhu

    Hi Pithre,
    For this you have to use portal navigation classes, Same scenario occurred in previous forums, search thoroughly before you post the question.
    Go to the below link, May u r problem will be solved.
    Universal Work List & Web Dynpro
    Regards,
    Pradeep

  • Output in a seperate list when we click a button

    hi experts,
                when we click a button in alv list it should display the output in a seperate list
    thanks
    harish

    Hi,
    It can be handled in user command event...
    Regards,
    Kumar.

Maybe you are looking for