How to make a JFileChooser response to my keyevent?

I wanna delete a file from JFileChooser as I press "Delete" key.The file is removed both from disk and from JFileChooser.How to accomplish this purpose? Thanks.

Sorry, JFileChooser doesn't support deleting files (yet).
Sometimes it actually makes sense to use java.awt.FileDialog
instead of JFileChooser, even in a program that otherwise is
pure Swing.
I also recommend posting questions like this in the Swing
forum instead. There are a lot more experts paying attention
there.
Cheers,
Leif Samuelsson
Java Swing Team
Sun Microsystems, Inc.

Similar Messages

  • How to make the DefaultMutableTreeNode response to the single click?

    I use the DefaultMutableTreeNode and JTree to construct a Tree but it seems that DefaultMutableTreeNode only response to double click.That means if I double click on the node of the tree if that node has children they will be displayed.but now I want DefaultMutableTreeNode response to single click,how can I do that?

    Hi, perhaps I could take a stab at this. I implemented such functionality by simply adding a mouse listener to my tree, and implementing the method 'public void mouseReleased(...)'. You could use the MouseEvent object to get the x,y coordinates of the click (simple so far)and then use:
    int selrow=tree.getRowForLocation(me.getX(),me.getY()); //where me is MouseEvent object and tree is the JTree.
    selrow>=1 if you have clicked any of the nodes after the root. this could then be used to check and perform the actions/code block you need when user clicks on a node.
    Hope this helps....it worked for me to show a popup menu as well as to highlight the selections...by using
    tree.setSelectionRow(selrow);
    Cheers
    Rajive

  • How to make personalaization at responsibility level

    Hi All,
    I Apologized, I have posted same thread in other place also so plz ignore that post.
    I have number of responsibilities for internet procurement responsibility like  internet procurement - 1200 , internet procurement - 1300 , internet procurement - 1250 , internet procurement - 1350 ,and so on...
    Now I want add a link on the checkout : requisition information page only for some responsibilities.How can I do this?
    When I am try to create a new item from personalization and want to select level then it only showing Site level and not others like responsibility level..
    Thnaks,

    1)Create Link Item on site level in  requisition information page by personalization.
    2)Go to internet procurement - 1200(Responsibility) -->requisition information page(Page).
    3)Click on Personalize link of requisition information page.
    4)Check newly created Link Field. Click on Yellow Pencil Icon in Personalize column.
    5)Set Render Property False at Responsibility Level.
    6)Click on Apply Button
    Do Same For other responsibilities
    Thanks,
    Dilip

  • Nokia X6 - How to make it super responsive ... ide...

    Hi friends,
    After owning the X6 for several weeks, I am beginning to wonder if there is a way of speeding up the phone ? e.g. use a lighter "os" or disabling some features, managing memory better, homescreen selection ...
    This should spark some interesting tips/tricks (hopefully).
    Thanks ...

    hi tuckster
    keep as less as images in the memory
    minimise the messages in the memory
    always use the basic home screen
    minimise keeping videos, no sooner u get a vedio transfer them to PC, same applies for images/photos.
    always remember to close any of the apps after use. do not let them run in the back ground.
    remember to clear the cache, after each and every web browes
    do not go for unwanted apps though its freely available through the web.
    minimise the involvement with unknown software expect the use of relaiable sources.
    there may be some more things you could do
    best of luck

  • How to make the backlog of responses stop?

    I have a bit of a conundrum. I created a subscription that triggers a response that does a writeXML and copy of the asset media file to a directory for MediaSilo. What I FORGOT to do was to set the asset filter for that subscription. The result is that every new and modified asset gets copied and XML written since I made the change at the beginning of the week. FCSver uploaded 4500 files to MediaSilo in the last few days!
    The problem is that I can't make it stop. It seems that there is a backlog of subscription jobs that are getting dumped three or four at a time into the Jobs window every few minutes. I turned all the subscriptions off even after I fixed it, to make sure new responses weren't being fired. The copy and writeXML is still happening. I've stopped FCSvr and restarted it, I've rebooted the server, I don't know what else to do. It just seems like there's a subscription daemon running from when I originally made the bad subscription. And when FCSvr has a ton of jobs to process, no other responses that require the job queue will work until pending jobs are completed. How do I clean out the bad responses?
    Thanks!
    Message was edited by: nylonoxygen77

    One thing that will definitely work is to destroy the destination the Copy response is set to write into. Delete that directory (if you can) or even just rename it so the string does not match the one in the Copy response. That will cause all the events in the queue to fail out (which could take a while, but give it the weekend and that should cover it). Once that is over, rebuild your setup for that automation the right way. It means nothing can go to MediaSilo while that plays out, but it sounds like that is a small price to pay given your situation.

  • How to make the UI5 application responsive ?

    I am actually followed below blog and developed a sample application
    How to create SAPUI5 application consuming Gateway service with the help of SAP NW Gateway Plug-in for Eclipse
    Can any one please explain below :
    1) I was getting an UI like this ,  but in example provided was achieved with a table like UI. May i know the reason behind this?
    How can i achieve the UI as in blog?
    my result
    example in blog result
    2) The result i achieved is not responsive. When i change the size of my browser the UI design does nt adjust itself.
    How to make this responsive?

    Hi,
    1) The difference is because my example was based on Gateway Productivity Accelerator, Version 1.0 and yours is based on Gateway Productivity Accelerator, Version 1.1.1
    below is how my index.html looks like. So the difference is because of GWPA version.
    <!DOCTYPE HTML>
    <!-- Auto-Generated by SAP NetWeaver -->
    <html>
           <head>
       <meta content="IE=edge" http-equiv="X-UA-Compatible">
      <link rel="stylesheet" type="text/css" href="css/styles.css" />
          <script id="sap-ui-bootstrap"
           type="text/javascript"
       src="resources/sap-ui-core.js"
       data-sap-ui-theme="sap_goldreflection"
       data-sap-ui-libs="sap.ui.commons,sap.ui.ux3,sap.ui.table" >
       </script>
         <script>
                         sap.ui.localResources("test");
                         var view = sap.ui.view({id:"ID_firstview", viewName:"test.resources.firstview", type:sap.ui.core.mvc.ViewType.JS});
                view.placeAt("content");
         </script>
           </head>
           <body class="sapUiBody" role="application">
                  <div id="content"></div>
           </body>
    </html>
    I also upgraded to new version and yes by default now it creates mobile based application in GWPA 1.1.1 whereas it was desktop based in earlier version GWPA 1.0
    also blue crystal theme is loaded by loadTheme("sap_bluecrystal"); in Application.js
    2) Now regarding responsiveness, you need to change mode StretchCompressMode to ShowHideMode in App.view.js
    // create splitApp
                  this.splitApp = new sap.m.SplitApp({
                         mode: "StretchCompressMode"
    Change mode value to ShowHideMode
    Regards,
    Chandra

  • How to make a multiple request without waiting for a response in java ?

    A more specific question:
    how to make a multiple HTTP request without waiting for a HTTP response in java (using httpURLConnection)?
    Thanks

    Thanks for responding.
    But i want to make further request to the same resource URL. I want to reuse the connection, don't want to create a new connection for each of individual request.
    How can i do that using HttpURLConnection ?
    Thanks.

  • Jsp waiting for servlet response how to make

    Hi All,
    i have some doubts about making servlet response for jsp request
    Am watched some online reservation sites it search some hotel names untill the hotel names display (between that time)
    the image processing shows how can i make like that via jsp and servlet plz expalin with example code plz.
    how to make jsp wait to servlet response like that plz reply
    Thanks

    It's a client side thing. Learn Javascript (and CSS) and if necessary also learn Ajax afterwards. There are nice tutorials at w3schools.com. This issue is not really related to JSP/Servlets.
    Displaying the progress image isn't that hard. Just show some <div> element with an image during the onclick.

  • How do you get a RESPONSE from Verizon?

    How does one get a response from Verizon?  Here's my situation...
    Given the amount of trouble that I have had with a recent order, you would think that I was trying to land a 747 jet on my roof.  In reality, all I was aiming to do was to cancel the $19.99 per month phone service that I never used.  I do not even own a phone, for that matter.  I also had enhanced high speed Internet, and I wanted to retain the high speed Internet.  A few days before January 13, 2012, I called Verizon and spoke to the 1st sales representative, who ensured me that it was no problem to cancel the phone service and yet retain the high speed Internet for the same monthly price.  24 hours later, my high speed DSL service was no longer functioning.  I will try to briefly explain the disastrous customer service that ensued. 
    The first several phone calls to Verizon were not productive as I was transferred to the wrong department, and then at least one of my phone calls was dropped by the Verizon server.  The representative did not call me back.  I finally got in touch with a technical support representative, the 2nd Verizon representative, who informed me that the high speed Internet had been turned off and that I had to speak to a sales representative to solve the issue.  Another sales representative, the 3rd Verizon representative, informed me that the 1st representative had cancelled my phone line, and thus cancelled all of my services.  Great.  The 3rd representative informed me that he was absolutely capable of handling the problem and that he would simply add a new order for high speed Internet, which was to be activated the next morning.  The next morning came and went, and guess what?  No Internet.  I called again.  The 4th Verizon representative told me that everything that had been done previously was incorrect and that the sales department is not capable of making such changes.  She told me that she could not help me and that my claim had to be submitted to a different department, which has the authority to un-do all of the previous changes.  She told me that I would receive a call back the same day to resolve the issue.  Given my previous experiences with Verizon, I was confident that I would not, in fact, receive a call back and so I asked her how I could get transferred to this department, if I needed to call again.  She said that I could not be transferred.  Okay.  So then I asked her what to ask for so that next time I called, I could be transferred to the correct department without dealing with yet another sales representative who gives me yet a different story.  She informed me that she could not provide that information to customers.  The Department That Shall Not Be Named (and that I cannot contact) did not call me, and I was not surprised.  Unfortunately, I did not know how to go about contacting them, because, as I was told, customers aren’t allowed to do that. 
    The 6th phone call to Verizon was dropped by the Verizon server.  The 7th phone call to Verizon went to the 5th Verizon representative, a sales associate who placed us on hold for the first 15 minutes only to inform us that she could not find any record of our Internet service.  What the heck was she doing, checking her Facebook account?  She finally returns, puts us on another extended hold, and then adamantly tells us that we need to speak with technical support, which, if you recall, was the first Verizon party that I spoke at the beginning of this debacle.  The 5th  representative transfers me again to technical support.  Of course, the technical support personnel, the 6th Verizon representative said what the first one did, that the account was inactive and that we needed to talk to the sales department.  My husband was on the phone at this point because I was DONE.  When the 6th technical support representative tried to transfer him back to the sales department, my husband insisted that the 6th technical support representative remain on the line while we spoke to yet another sales representative, the 7th Verizon representative.  The 6th technical support representative patiently waited with us while we sat in yet another long queue to speak with a member of the sales department. 
    The 7th sale representative, from the retention department based out of New Jersey, found that all previous orders had been set up erroneously.  She cancelled the old orders and reinstated a completely new order.  The DSL began working a few days later.  MAGIC.  She then left me a voicemail message saying that she would eliminate the activation and shipping fee (duh) as I never canceled the account to begin with and as I already had the equipment.  She also applied a coupon to reduce the price to around $30 per month, assured for the next 2 years.  I was relieved. 
    You can imagine our frustration then when we received the bill for $79 on February 6, 2012, which included a much higher monthly rate (around $45) and the shipping and activation fee of $19.99 that we were assured we would not pay. Again, nothing was shipped to us because we already had the equipment.
    Our next phone call to Verizon landed us with a guy, the 8th Verizon representative, who had no intention of helping us.  According to him, there was no record of these wrongs, and despite the fact that we had an old account number and three order numbers that were screwed up, he did not deem that there was enough evidence to change our monthly bill.  (Unfortunately, the 7th Verizon representative did not make notes or appropriately document the situation on the new account.)  The 8th Verizon representative then had the audacity to comment that we could be lying to him, yet he was unwilling to view the evidence that we could have presented.  Instead, he suggested that we call tech support again and try to go through the same process to get connected to the mysterious “retention department” which he knew nothing about. 
    At this point, I was beyond fed up.  The attitude of the 8th Verizon representative put me over the edge.  I filed a complaint with the Better Business Bureau (BBB) with an abbreviated version of this story.  I did not file the complaint to get back at Verizon.  Instead, I filed the complaint because I knew that another phone call to Verizon would be useless.  I’ve been dealing with this issue for over a month, and I’m sick of it.  I have better things to do with my time, believe it or not, and this situation has resulted in a significantly waste of my time over what, in my opinion, was a very simple issue to resolve. 
    The BBB processed the complaint and I was contacted last Friday afternoon by a Verizon representative (the 9th) who said that she was looking into the matter and that she would respond to me within two to three business days.  Well, it’s almost the end of the week, and I have received no response.  Again, after all of this, how could I be surprised? 
    I have been a Verizon customer, wireless and residential, for as long as I can remember, but I am reaching the point of outrage.  This situation is truly unacceptable. 
    You would think that, in 2012, with all of the technology available to us and the fact that Verizon is a COMMUNICATIONS COMPANY, that at least Verizon employees would be able to make a basic change to an existing order and that at least one out of 9 Verizon representatives would be able to solve this issue in a span of over four weeks.  Think again. 
    How does one get a response from Verizon? 

    dougiedc wrote:
    It boggles the mind.  The Verizon store on L Street downtown Washington, D.C. cannot access my Verizon account.  They can only sell cellphones then it's up to me to contact Verizon on my own to get the hook up. I even asked "Are you Verizon employes?  Is this a vendor store or is it really a Verizon owned and operated store?"  The answer "Yes, we are Verizon employes, yes this is a Verizon owned and operated store" ...
    Yes, it indeed boggles the mind.  I'm of course referring to the fact that your post concerns Verizon Wireless products and services.  This forum is dedicated exclusively to Verizon Communications services.   As you probably know, Verizon Wireless and Verizon Communications operate as separate companies.
    If you need help for a Verizon wireless product or service, it's best to direct questions to the Verizon Wireless forums.  You can reach them by clicking on "Wireless" (either here or at the top of the page).
    Good luck and I sincerely hope you get your issue resolved.

  • How to make a complaint about in store Apple customer service on iphone4S ?

    Hi all,
    I'd like to know about how to make a complaint about a very unpleasant service experience and I'd also like to share this story with you to see whether you guys have any comments (good/bad all welcomed!).
    I booked a genius bar service to see the technical consultant at 1:00 pm yesterday. I came at around 1:15 pm and I was told by the order person (i.e. the person who holds a list of bookings on an ipad and instructs customers to queue) that I had to book another service time (i.e. next week).Our conversation was not pleasant and is (roughly) the following one.
    Order person: You missed your appointment so book another one and come next week.
    Me: I had my work and that is why I am late.
    Order person: Sorry you need to book another one.
    Me: No other alternative? I took a bus and came all the way here.
    Order person: Or you can try Bondi.
    Me: ............No other alternative?
    Order person: Or you can wait for half an hour to one hour. You have seen how many people there are here.
    Me: All right. I understand so can I ask you some technical questions?
    Order person: You need to make a booking and talk to a genius service person.
    Me: I just want to know given the issue I have if I can make a replacement.
    Order person: What is your problem?
    Me: I bought this iphone here in Sydney and gave it to someone who lives overseas as a gift. When he made a call he frequently could not hear anything from the other end. I bought two iphones, one black and one white. (I showed him my reciept.) The white one works but the black one doesn't.
    Order person: Did you restore it?
    Me: Yes and I brought it here. (I showed him the iphone.)
    Order person: You do not have a micro-SIM card in the phone?
    Me: No because I do not use an iphone.
    Order person: If you do not have a SIM card then how can we assess it?
    Me: So you need a SIM card?
    Order person: Yes.
    Me: I came here three times and different people told me different things. The first two times both the came-up people said just take your phone and we can offer you a replacement. So I think this is how it should be.
    Order person: Well, I'm sorry!!! Now you know you need to have your micro-SIM card.
    Me: Can I see your manager? I want to know exactly what I need to do.
    Order person: I am the manager at the moment.
    Me: So that is all I need to bring? Iphone and its SIM card.
    Order person: Yes.
    Me: OK.
    Order person and his colleague had an unpleasant laugh after I turned.
    There are a few things I want to make a complaint on and I'd like to see you guys' opinions on this.
    The order person's attitude was not very acceptable. I understand he is an expert in this area but I believe there are non-expert customers like me who takes time to understand. Some of his words and his laugh made me very uncomfortable.
    Even I have come three times I am still confused about what I need to bring to see the genius service person. I can bring an iphone but I do not have an Australian micro-SIM card (since this iphone is a gift to other people who lives overseas).
    Thanks for reading all this! Any comments or suggestions are more than welcomed, both good and bad!
    Please let me know if you know a proper place where I can make a complaint!
    Thanks!!!

    Thanks for your response and yes, I haven't thought about the warranty being not international.
    Having said this, using all the modern technology of identifying and tracking my device to e.g. figur out the warranty status, I find it not satisfactory. People like in my case relocate from time to time and Apple as an international company with employees world-wide should know better I think and I expect a more customer oriented problem solving attitude and -if you want to make a difference - it sure is possible.
    Yes, I know the cue information from Manhattan, but in Hamburg you get other educational information on them.
    For me there is a gap between the glamourous coolness, hand-shaking and introducing oneself on one hand and the unsatisfactory problem solution from the customer's perspective. As such I am already annoyed/frustrated when my device is not working as it is supposed to. Getting just process-required and not flexible responses does not help.
    And no, I don't feel well, if I have an appointment scheduled for 10 minutes, invest already hours to make it happen and stay for much longer.
    What annoys me is that I get the impression despite the fact that as an 'already educated customer' I do a lot myself in figuring out what to do best and be considerate and I am still confronted with an attitude as if I don't 'function good enough' as customer and should know this and that and better. This *****.

  • How to make screen field enable when table control gives an error

    Hi,
        I had a scneario like when table control data wrong then one parameter of the screen should be enabled for the input, i knew that screen-name will not work since it will have always table control fields only when table control gives an error.
    How to make the other parameter enable when table control throws an error.
    Regards,
    Jaya

    Hi Gobi,
         Thanks for your response, but issue is - how to make other screen fields enable when there was an error in the table control data.
    For table control - lets say we will use the code as i mentioned above.i am sure that we cant write the code for field enable in between loop & endloop.
    as you said if we right outside the loop-endloop, the module wont be triggered when table control throws an error, because that statement was not there in the loop-endloop.
    please let me know if you need any more information on the issue. I hope there is alternative for this in SAP.
    Thanks
    Jaya

  • TS2634 I bought a composite AV cable with 30 pin connector at a proper apple store for my ipad 2 which no longer works now i have updated to ios7 - please advise how to make this work ?

    I bought a composite AV cable with 30 pin connector at a proper apple store for my ipad 2 which no longer works now i have updated to ios7 - please advise how to make this work ?

    I have the same problem.
    Two similar discussions:
    https://discussions.apple.com/message/23081658#23081658
    https://discussions.apple.com/message/23281391#23281391
    I have not yet seen any official response to the question: "Is the Apple AV Composite cable fully supported with 30pin connector devices upgraded with iOS7 - specifically ? - eg. iPad 2, iPhone 4, iPhone 4s"
    If it is not currently supported is that then due to a bug / oversight and in that case is it something that will be fixed in the near future?
    Please let us know what feedback you got from asking Apple support.

  • How to make "payment terms" not modifiable in sales order

    Hello every 1,
    please help, i want to know:
    how to make "payment terms" not modifiable in a sales order , as we know it comes directly from CMR and client wants "PAYMENT TERMS" to be not modifiable.
    Look forward for your response.
    Thanks in Advance,
    Deepak

    You need to use SHD0 or userexit chnages, like always determine from customer master, if user changes, give message like not modifiable  or ask abaper to make non modifable field

  • How to make the workflow users as active users in SAP R/3

    Hi All,
    We have got an issue in R/3 system where a certain number of users who are created only to approve work flows via Outlook emails.
    They are not required to log in to the system at all. Due to this,the users are getting locked by a Security background job which locks all the inactive users.
    Now My question is how to make these work flow users as active users in R/3 system so that we can avoid locking of these users.
    Awaiting your response.
    Thanks in advance
    Ramkumar C

    Hi All,
    We have got an issue in R/3 system where a certain number of users who are created only to approve work flows via Outlook emails.
    They are not required to log in to the system at all. Due to this,the users are getting locked by a Security background job which locks all the inactive users.
    Now My question is how to make these work flow users as active users in R/3 system so that we can avoid locking of these users.
    Awaiting your response.
    Thanks in advance
    Ramkumar C

  • How to make Address Book obey Preferences? I run MacBook Pro 4.1 laptop,  Mac OS X 10.6.8  Address Book 5.0.3 (883) Preferences set at ... General First name following Last name   Sort for Last name Address Format Canada Font size Large Phone format set a

    How to make Address Book obey Preferences?
    I run MacBook Pro 4.1 laptop,  Mac OS X 10.6.8
    Address Book 5.0.3 (883) 
    Preferences set at ...
    General
    First name following Last name 
    Sort for Last name
    Address Format Canada
    Font size Large
    Phone format set at
    +1.123.456.7890
    When application quits - it's all forgotten and it self-resets to
    unwanted configuration.

    Whenever you remove system modifications, they must be removed completely, and the only way to do that is to use the uninstallation tool, if any, provided by the third-party developers, or to follow their instructions. If the software has been incompletely removed, you may have to re-download or even reinstall it in order to finish the job.
    Here are some general guidelines. Suppose you want to remove something called “BrickYourMac.” First, consult the product's Help menu, if there is one, for instructions. Finding none there, look on the developer's website, say www.brickyourmac.com. (That may not be the actual name of the site; if necessary, search the Web for the product name.) If you don’t find anything on the website or in your search, email the developer. While you're waiting for a response, download BrickYourMac.dmg and open it. There may be an application in there such as “Uninstall BrickYourMac.” If not, open “BrickYourMac.pkg” and look for an Uninstall button.
    If you can’t remove software in any other way, you’ll have to erase your boot volume and perform a clean reinstallation of OS X. Never install any third-party software unless you're sure you know how to uninstall it; otherwise you may create problems that are very hard to solve.
    Trying to remove complex system modifications by hunting for files by name often will not work and may make the problem worse. The same goes for "utilities" that purport to remove software.

Maybe you are looking for