ClosingWindow by clicking on a Button

Hello,
I have created a Window with to Buttons "A" & "B". How can I make sure that when I click on the button "A" that a new Window opens and the window where "A" is in Closes. And when I click "B" the window closes, like a cancel button for example.
Who can give me a tip to solve this problem.
I.G.

Add an ActionListener to your buttons and in the actionPerformed method see which button was pressed and do the stuff.
public void actionPerformed(ActionEvent ae) {
     if(ae.getActionCommand().equals("Cancel"))
        myWindow.setVisible(false);
} like that..

Similar Messages

  • Stop the report from firing until the user clicks the Go button?

    Hi All,
    Is there a way to stop the report from firing until the user clicks the Go button? At the moment it is populating when I open the dashboard page. I found something online that said i could use the Page Options>Save Current Settings> For Others.. but even though i am signed in as an administrator i only see a For Me.. option. Also, even after setting this option i would like to be able to hit the 'Go' button to run the report and have it uncollapse the section. Is this possible?
    Thanks

    Thanks for the replies,
    In my report i am trying to constrain the report to todays data only. However the only prompt i have is for another column. If i place a filter on the date column with Year=0000 it will not change with the prompt selection and so will never return any results. Is there any other way?
    It seems wasteful to fire a request to the database onload of the page. Is there an option to only fire a request what the prompts are entered? I will be using a stored proc which needs parameters to run the request so it would be good to be able to set the report to not run until it has parameters entered
    Thanks

  • Creation of UI elements on click of a button in ADOBE form

    Hello Experts,
    I have a requirement which is ,
    on the ADOBE form after pressing some action Button i need to create a row of UI elements like Textbox label and Radio button with the values coming from Backend WDA application.
    Number of rows created are equivalent to number of  times button is clicked.
    Also in some cases i have to preload the rows with the existing data.
    Please let me know if this requirement can be accomplished in ADOBE form.
    Any inputs ,Suggestion and help will be very helpful.
    Thanks,
    Siddharth

    Thanks for the help,
    I resolved this by creating elemnts in WD context on click of a button in ADOBE form,And in form i used the WD context structure as a table with required cell editors.
    PDF form should be of type dynamic in this case.

  • I get a tab opening that says that I have won and to click on the button to get my prize, I am unable to close that and therefore uninstalled Firefox... What is that all about? It appears to be malware.

    The tab that opens does so in a second tab after the home page tab has opened, but it does not allow access to the home page tab, and it will not allow closing of the tab. It says that you have "WON", and you need to click on the button to collect your prize. It is clearly malicious software, but what, why and how to avoid it is not at all clear. It does not corrupt Internet Explorer.

    Click the Firefox button, go to Options | Options | Advanced and in the General tab, remove the checkmark from "'''Warn me when websites try to redirect or reload the page'''".
    You won't get that dropdown banner anymore afterwards.

  • How can I automatically close a dialog box using Javascript after I click the OK button to submit it?

    How can I automatically close a dialog box using Javascript after I click the OK button to submit it? I don't want to have to X out of the dialog box after I am done.
    Thanks
    Linda

    JS can not interact with open dialogs in any way, unless it's a dialog
    created in JS using the Dialog object.
    On Thu, Jul 24, 2014 at 11:13 PM, lindaeliseruble <[email protected]>

  • How to close main window on click of a button on popup window

    Hi All,
    I have created a web page which on certain condition display a popup window to to provide information. Wht i want is that when i click on close button on my popup window, my main window should also close.
    Can anyone please help with this requierment!!!
    Regards,
    tushar

    Hi All,
    Could anyone of you please help me by answering the thread
    WDDOEXIT method not called when the application is closed from the portal
    Thanks,
    Subash M

  • The itunes store wont let me download anything i click the buy button and it asks for my password but it wont download

    when i went to itunes on my computer it would start downloading the apps i purchased on my phone but would get stuck a processing file, then when i went to purchase a movie i would click the buy button and it would ask my password but then would not purchase or download. So i decided to buy the movie from my phone and then try to download on my computer from the purchased section but still wont download on my computer and it doesnt give me a reason why

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico my first language is Spanish. I do not speak English, however I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    Are you putting in the address where the bank sends the monthly statement?
    Apple's servers are very picky about the format of the address. If you live in the USA, then the server is expecting the style that the US Postal Service uses. One way to do this is to use the USPS ZIP Code lookup service;
    https://tools.usps.com/go/ZipLookupAction!input.action
    Enter the address to look up the ZIP code and then copy the exact USPS output into your iTunes account information.

  • When I click the home button, it takes me to my home page AND opens a blank tab. How can I get it to stop opening the new tab!

    I have igoogle as my hompage. When I click the home button, it will open my igoogle page but also open up a blank tab as well. Firefox didn't always do this, it just started. Maybe when I upgraded to the 5.0. I've tried looking in the options and I can't find something there and there doesn't seem to be a solution on the web. How do I get it to stop doing that?

    Troubleshooting extensions and themes
    * https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes
    Restore the default home page
    * https://support.mozilla.com/en-US/kb/How%20to%20set%20the%20home%20page#w_restore-the-default-home-page
    Check and tell if its working.

  • When I open firefox 4 beta the webpage does not load and i am unable to click on any buttons or access menus

    This has only started happening today. When I start firefox 4 beta it opens and begins to load my homepage (google.co.uk) but the page never fully loads and firefox freezes. I am unable to click on any buttons on the navigation bar or access menus. Keyboard shortcuts are also unresponsive.
    All that I am able to do on the browser is to use the three window buttons in the top right of the screen (minimise, maximise and close).
    After closing the window if I try to open it again I get a message saying that Firefox is already running, but not responding. Once going into task manager and stopping firefox under the processes tab and then restarting firefox the window again freezes as soon as it opens.
    I have tried restarting my computer and reinstalling the beta but with no success. I am still able to use firefox 3.6.13 as well as chrome with no problems.
    Any help would be much appreciated

    I had this too. Starting firefox in safe-mode and disabling all add-ons solved the problem. After re-enabling all add-ons did not bring back the problem.

  • When I left-click the home button, how can it open my home page in a new tab?

    I thought it used to do that. I had to do a clean install of Windows, I believe I was only on FF 22 or 23 when this happened. Now I'm on FF 26 and obviously all my settings are gone.
    I'm 99% sure that when I left-clicked on my home button, it opened my home page in a new tab. I know I can middle-click to get that affect, but it used to be left-click and I do that automatically now. But I don't want to lose the current window I have up, so something's wrong.
    Anyone know how to fix this? Or an add-on to do this?

    If you hold down the Ctrl key while left clicking the Home button then the home page opens in a new tab.<br />
    You can also middle-click the home button like you can with any other link

  • Tried purchasing iTunes music. Put in my apple id and password then i was directed to a 'Terms and Conditions' page. I checked the box then clicked the 'accept' button next page read 'your Session has timed out '  try again  with a Done button to click on

    Tried purchasing music from the iTunes Store. When the window popped up I put in my apple id and password. Then I was directed to a 'Terms and Conditions' page. I checked the box next to the 'Yes I agree to these terms and conditions' - then clicked the 'accept' button next page read 'Your Session has timed out. Try again.'  with a 'Done' button to click on. Oh the same thing happens when i try to download  free iTunes. Yes I have tried & tried it again I even logged off and singed back in-- no joy 
    After accessing my iTunes account I was not able to change anything like my credit card number when I tried and was sent right to the 'Your session has timed out. Try again.'
    The last time I purchased any anything was on September 25th 2011 and the 'terms & conditions' page was last updated on October 12, 2011
    Does anyone have an idea to what is going on with my iTunes version 9.2.1 (5) and I can not upgrade to a higher version my iMac does not have the intel processor chip.Thank you for your time and help with this matter. You are greatly appreciated 

    I am having the same problem also! I posted on here about it, but no one has responded with ideas. I called technical support and e-mailed them, the only suggestions they gave was for the to turn off my firewall. But I didn't change anything, so it shouldn't suddenly stop working. Maybe this is just an iTunes issue? But it doesn't even recognize my account anymore, and I cannot log in now.
    If you happen to get an answer, will you please let me know what works for you?
    Thanks!

  • Crystal Report/STRUTS: Error (404) when clicking on Control Buttons (Print, Export, Next, Previous, etc...) on report viewer

    Post Author: jwenny
    CA Forum: Deployment
    Need help badly!!!
    We are using the crystal reports plugin for STRUTS.
    We are able to display the report in the crystal report viewer.  However, when we click any control buttons (print, export, etc...), then we get:
    JSPG0036E:  Failed to find resource /Report-viewer.jsp
    We then moved Report-viewer.jsp to the WebContents folder (root directory) and got a different error when we clicked any control button:
    Error:  400 page not found
    Does anyone know how to solve this problem?  For instance, is there a setting or parameter that needs to be set?
    Greatly appreciate any help!

    HI,
    Whenever we print the viewer does an auto postback, I believe due to this some of the values are getting missed. Moreover we are referring to the viewer and reportdocument object, it seems. So can you try this simple code in an application to see if it helps:
    ReportDocument rdoc = new ReportDocument();
    rdoc.Load("C:\TASKECrystalReports\Intraday.rpt");
    rdoc.SetDatabaseLogon("uid","pwd");
    rdoc.SetParameterValues("parameter name","value");
    CrystalReportViewer.ReportSource = rdoc;
    Helps?
    Thanks.

  • Report is Blank after Click on Save button

    Hi All,
    I am having a Real Time Infocube, which is been used by Monthly and Yearly report separately using different Aggregation Levels.
    During Monthly report testing, I made changes in Yearly Report (common for monthly as well) and clicked on SAVE button.
    As a result, a new request generated into the Cube, whereas my old request (yellow one) was still there and was containing only 700 records.
    Step1:
    Now,  after that when I activated aggregation level. The output of the report was blank.
    Same thing happened with monthly report also.
    Step2:
    So, I deleted that new request from Cube after changing its behaviour from Planned mode --> Load mode.
    Now, when I tried to get it back. It was asking me to green the existing request (old request).
    Step3:
    when the cube was containing only old yellow request (before changing the behaviour) monthly report was showing me correct data. But, Yearly report was blank.
    So, I manually green the request and changed the behaviour to Planned mode.
    Whereas, Now (after changing behavior to Planned mode) both reports are blank.
    Please help!!
    Best Regards,
    Jatin

    Hi,
    first you the correct settings in transaction RSDIPROP for your InfoCube:
    On tab 'Roll Up' you should set the flag Set Quality Status to OK Automatically.
    Second delete the cache for the planbuffer query; the name of the plan buffer queries are as follows
    - if your aggregation level is defined on InfoCube CUBE the name is CUBE/!!1CUBE
    - if your aggregation level is defined on MultiProvider IPROV the name is IPROV/!!1IPROV
    - if you are using a query on a MultiProvider containing aggregatiion levels delete also the cache of the query.
    Now check the values of your query again.
    Note 1136163 contains the recommended cache settings in RSRT.
    Regards,
    Gregor

  • What to do to add some UI elements in a group element on click of a button?

    I want to add Input fields and labels in the a group in a view on click of a button.
    How to :
    1)Access the right gropu in view through code?
    2)Create elements in the group through code?
    Please reply soon!
    Sumit

    You need a flag to signal that the elements should be added with the next call to wdDoModifyView().
    Add a boolean context attribute "AddFields" to the view context and set it to true in the action handler for the button:
    void onActionAddFields(...)
      wdContext.currentContextElement().setAddFields(true);
    In method wdDoModifyView(), check the flag and reset it after the code that adds the fields:
    (I assume the group has a MatrixLayout)
    static void wdDoModifyView(...)
      if (wdContext.currentContextElement().getAddFields())
        /* access group by ID given at designtime */
        IWDGroup group = (IWDGroup) view.getElement("groupID");
        IWDLabel label = (IWDLabel) view.createElement(IWDLabel.class, null);
        /* if new row in MatrixLayout should be started: */
        IWDMatrixHeadData labelLayoutData = label.createLayoutData(IWDMatrixHeadData.class);
        /* change settings for layout data if needed */
        label.setText("whatever");
        IWDInputField field = (IWDInputField) view.createElement(IWDInputField.class, null);
        /* if in same row as label: */
        IWDMatrixData fieldLayoutData = field.createLayoutData(IWDMatrixData.class);
        /* change field layout data if needed */
        field.bindValue("context.attribute.path");
        label.setLabelFor(field);
        group.addChild(label);
        group.addChild(field);
        wdContext.currentContextElement().setAddFields(false);
    Armin

  • Mouse Clicks' Queue when Button is Disabled

    Hi, I was wondering about the Disable property for UI
    Components.
    In the docs it says that when the component is disabled it
    ignores all
    interaction whatsoever - in particular - user interaction.
    In my case, the button is disabled for a few seconds right
    after it
    was clicked by the user (I disable it till the httprequest is
    returned
    and then enable it).
    What happens is that if the user clicks the button while it's
    disabled
    - nothing happens. But when the button turns enabled - it
    acts as if
    it just got the click event.
    It seems like the mouse click event went into this queue and
    the
    button listened to it right after to turned enable?
    Am I correct? If so - how can I prevent this problem?
    If I'm wrong, what's the reason for this? And again, how can
    I sort
    this so the user can't send mouse clicks to the button when
    it's
    disabled??
    Many thanks :)
    Gilad

    "giladozer" <[email protected]> wrote in
    message
    news:gnbng6$o6m$[email protected]..
    > Hi, I was wondering about the Disable property for UI
    Components.
    > In the docs it says that when the component is disabled
    it ignores all
    > interaction whatsoever - in particular - user
    interaction.
    > In my case, the button is disabled for a few seconds
    right after it
    > was clicked by the user (I disable it till the
    httprequest is returned
    > and then enable it).
    > What happens is that if the user clicks the button while
    it's disabled
    > - nothing happens. But when the button turns enabled -
    it acts as if
    > it just got the click event.
    > It seems like the mouse click event went into this queue
    and the
    > button listened to it right after to turned enable?
    > Am I correct? If so - how can I prevent this problem?
    > If I'm wrong, what's the reason for this? And again, how
    can I sort
    > this so the user can't send mouse clicks to the button
    when it's
    > disabled??
    No idea about whether you're correct or wrong, but you might
    want to try
    setting mouseEvents = false on the button and see if that
    helps.

Maybe you are looking for

  • System exception while deleting the file from app server in background job

    Hi All, I have a issue while the deleting the file from application server. I am using the statement DELETE DATASET in my program to delete the file from app server. I am able to delete the file from the app server when i run the program from app ser

  • Itunes wma

    i have some wma files that i want to open in itunes but they will not open, they will open and play in quicktime but not itunes

  • Certificate of origin(Urgent)

    Hi All, My client wants to have seperate Certificate of Origin's(Output) for each Material at Delivery Item -level. Actually Certificate of Origin is a Output type which appears in Billing, but we cant have provision to display the "Certificate of or

  • How to split this select query

    Hi all, Can any one help me to split this single select query into 9 select query.    select KNA1STCEG VBRKBUKRS VBRKVKORG VBRKVBELN VBRKFKDAT VBRKFKART VBRKVBTYP VBRKVBUND VBRKKUNAG VBRKKUNRG VBRK~NETWR            VBRKWAERK VBRKFKSTO VBRKSFAKN VBRKL

  • Sql tuning advisor for concurrent requests

    Dear all, I am having one doubt in my mind from very long time.Can we use sql tuning advisor from 10G(EM) to tune concurrent requests and reports? Regards