Closing JInternalFrame with Ctrl+F4 not using default close action

If you have a JInternalFrame and set the default close operation to HIDE, when you close the frame with Ctrl+F4, the frame is disposed instead of hidden. Anyone know if this is the way it is suppose to work, or is this a bug?

Assuming the above is correct:
public void keyPressed(KeyEvent e){
if( (e.isControlDown())&&(e.getKeyCode() == 115 ) )doDefaultCloseAction()); rykk

Similar Messages

  • Closing JInternalFrame with Ctrl+F4 in windows

    Hi,
    I am using JDK 1.4 in Windows NT.I have a JFrame with menus and a desktoppane.In menu's click item i create a JInternalFrame(say jin) if it is not created and add it to desktoppane.If it is already created i just do a jin.setVisible(true) and use moveToFront of desktoppane.I have written a InternalFrameListener in which i make the jin invisible.When i click the close button in jin it hides correctly.When i click the menu it appears again.But when i use Ctrl+F4 key combination(which we use in Windows to close internalframes) it hides,but when i click the menu it dosen't reappear.I have tried to change the defaultcloseoperation to all values but it dosen't work.Is there a problem in my code or ?
    Thanks,
    Ranga.

    Assuming the above is correct:
    public void keyPressed(KeyEvent e){
    if( (e.isControlDown())&&(e.getKeyCode() == 115 ) )doDefaultCloseAction()); rykk

  • Why is my iphone 5 not using default ring tone even though it is set for my personal tone in defaults!!

    Why is my iphone 5 not using default ring tone even though it is set for my personal tone in defaults!!

    Hello Rob,
    Welcome to the Apple Support Communities. You may have a contact that has a different ringtone assigned to it. Just navigate to the contact and see what ringtone is assigned to them.
    iPhone: Ringtones
    http://support.apple.com/kb/ta38610
    Setting Ringtones
    In addition to the default ringtone, you can assign individual ringtones to people in your contacts so that you can tell when a particular person calls.
    Alternatively you can reset all settings in Settings > General > Reset > Reset All Settings. This would put your iPhone at factory default on everything settings wise and it does not touch the data on the phone
    Regards,
    -Norm G.

  • Eliminate popup with information 'Do not use "Back" button'

    Hello,
    when your cursor is not focused in a ui-Element than in case of typing the back key, a popup open with message: please not use it. It is the same information in case of using the back button.
    Q. Is there a possibility to prevent the popup. Not the function behind, only that the popup will not open?
    Thanks a lot.
    Regards,
    Christian
    Message was edited by:
            Christian Breitenbach

    Hi Christian,
    There is no way to suppress the pop-up for your case . it is comming from the WD controllere. Just put the focus on any UI element then click on BACK manually.
    Warm Regards,
    Vijay

  • Can not use default screen saver with this version of Mac OS X

    Hello,
    I created a 10.6.4 image on a Mac Pro that I have installed on a new 27" iMac. Every thing works fine, as expected, except the screen savers (all Apple default). All screen savers appear in the list when booted off the Mac Pro, but when booted off the iMac, all but 2 disappear (Computer Name and Flurry). Also, the ones listed under Pictures show up, but when I try to use one it says "Can not use 'screen saver name' with this version of Mac OS X - Contact your vendor."
    Also, the flurry screen saver runs extremely slow.
    Unfortunately, I don't have another iMac to compare versions with, but I've compared with a new Macbook Pro and they are exactly the same. Is there a cache or a pref I can flush?

    The old screensavers were about the first things that didn't work when moving to Snow Leopard, so my guess would be the iMac is booting in 32-bit vs 64-bit mode (or whichever mode is incompatible with your screensavers).

  • Functions are not using default and will not validate without direct input

    Hi. I am recreating all of our mappings (from 9.0 to 11g). And I am finding that any function that does not have a direct input for every input variable (rather than using the defaults as defined in the function) no longer will validate in OWB. It states that the input parameter is required but is not connected.
    I have worked around this so far by adding Constants to pass the default values. I tried setting the default value in the property inspector window for each specific input parameter and this did not work, I still get the same error.
    Is there a way to fix this? i am not happy with having to add all these constants, and I don't see why it is not using the defaults that are defined in the functions themselves. Any help is appreciated.
    Thanks,
    Kaisha

    By the way for anyone who is curious....
    The reason that the functions and sp's weren't working correctly was because I had movedthem into the new DB wrapped. I don't know why it caused this but when I did dbms_metadata and replaced them all unwrapped, and then reimported them into OWB all the mappings compiled.
    K

  • Unable to load project after delete some path with files but not used at all

    Im using the demo of Premiere Pro CC last demo download today.
    All the fuc**ng day editing some videos, and saved, then I deleted som efolder containing some video files (almost not used) then when I try to open premiere the project I were working, premiere opens, load and freezes and nothing happens, it keeps on the main area withouht any windows, and I cant get my 10 hours of work What happening with thei premiere ? And Im unable to open the project in Premiere CC 7.0 from another computer as saif it was done using new version.
    I NEED A SOLUTION !
    Or never never more use premiere

    I NEED A SOLUTION !
    Don't do this mid stream in EDIT
    ... I deleted som efolder containing some video files (almost not used)...
    TRY  - Go to you Back Up project file or an Auto save and hope that recovers some of your work afterrestoring what you deleted.

  • Bex Query Designer not using default browser

    hello all, i have disabled my Internet Explorer from being my default browser, however, when i use the Bex query designer and test, it initiates my Internet Explorer, and not my default Safari browser.
    does anyone know where this setting is made ?
    thanks
    g

    Skype uses IE ("Internet Explorer") as the browser interface on Windows based systems, this currently includes many windows such as the logon screen and add Contacts screen. This is fairly normal when a program uses browser logic internally, it is not changing what you use as a default browser.
    About Me You can also use a IP Camera as your camera for Skype video Example Instructions

  • MDT 2012 with Database do not use the OSD* properties

    Greetings,
    I use MDT 2012 Update1 with Database to deploy clients. without use SCCM, and without DHCP.
    I find that the all the properties in the details settings begin with OSD**, such as "OSDComputerName", "OSDAdapter0Gateways", "OSDAdapter0IPAddressList"
    etc. cannot be used.
    for example, if I set the "ComputerName" as "Client1" and set "OSDComputerName" as "Client01" in the database, after the client installed, the client's Computer Name
    is set to Client1 but not Client01.
    and the client's IP address is not use the value in OSDAdapter0IPAddressList, but use the IP address that in the Boot WinPE begining screen I inputed.
    would you please help me in this case.
    Thanks 
    Frank@Hiweb 冯立超@瀚博资讯

    Thank you Michael,
    Glad to get help from you!
    I have according to you guide "Manipulating the Microsoft Deployment Toolkit database using PowerShell" created
    a script to bulk input clients settings just now. thank you!
    I have a question about IP address, as following:
    I use MDT 2012 with Database, without SCCM, without DHCP.
    so I must set IP address at the beginning of the WinPE.
    thus, the final IP address on the clients is the IP address I set at WinPE boot time, but not the IP address in the Database
    OSDAdapter0AddressList, even I set OSDAdapterCount to 1.
    would you please guide me how to correct it.
    Thank you and best regards.
    Frank@Hiweb 冯立超@瀚博资讯

  • Some font options not using default system language in font menus

    Font options for Helvetica and Helvetica Neue (e.g. bold, italic, light, etc.) do not use the default system language (English) in the system wide font panel, or in font options within individual applications. Any suggestions as to how to correct this?

    Roderick Ackermann1 wrote:
    Font options for Helvetica and Helvetica Neue (e.g. bold, italic, light, etc.) do not use the default system language (English) in the system wide font panel, or in font options within individual applications. Any suggestions as to how to correct this?
    Could you provide a screen shot of what you are seeing, either here or by email (tom at bluesky dot org)?

  • Issues with Apps when not using Wi-Fi

    I just recently got the Droid RAZR and I've been having trouble using some of the apps (GPS Navigation, Pandora, Play Store, Browser, etc.) when I am not using Wi-Fi. Yesterday I tried to go for a run in while the phone stated I had a full 5 bars of 4G service, my connection to the server continued to timeout. This re-occurred when I tried to search for directions to an address. I have verified that GPS is enabled... I was easily able to do run these apps without Wi-Fi on my old Droid 1...
    Does anyone have any ideas why this may be happening?

    Thanks for your contribution, Wildman.
    Hello Snunners,
    I know how frustrating it is experiencing difficulties with applications you use on a daily basis. I ask that you clear the cache on these applications by going to Settings> Applications> Manage Applications> All> Select the application and Clear Cache. Please make sure you have the latest software update installed on your device. Let us know if you continue to experience difficulties.
    DaisyP_VZW
    Follow us on Twitter @VZWSupport

  • Closing JInternalFrame with ESC-Key?

    Hi all.
    Is there a way to close JInternalFrames with the ESC-Key?
    For JDialogs that works good (adding an action to the rootPane's ActionMap) but I cannot figure out how to add this functionality for JInternalFrames as well.
    Any hints?
    Regards
    Carsten

    try this
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class TextButton extends JFrame
    JFormattedTextField tf1;
    Container con;
    public TextButton()
    con=getContentPane();
    con.setLayout(new FlowLayout());
    tf1=new JFormattedTextField();
    tf1.setValue(" ");
    tf1.addKeyListener(new KeyAdapter()
         public void keyPressed(KeyEvent ke)
         if(ke.getKeyCode()==10)     
    System.exit(0);
    con.add(tf1);
    setSize(400,400);
    setVisible(true);
    public static void main(String args[])
    new TextButton();
    }

  • Server 2012 R2 VDI with profile disks not using domain default profile

    I'm testing a VDI environment running on Windows Server 2012 R2. The VMs in the pool are running Windows 7.
    I've enabled profile disks for my test pool. I also have a domain default profile (stored under netlogon) that is used when creating profiles for new users.
    I've found that when a new user logs into the VDI pool, the domain default user profile is not being used to create the new profile. Can this be changed?

    Hi,
    I also have a domain default profile (stored under netlogon) that is used when creating profiles for new users.
    Place default profile under netlogon share doesn’t enable users to use it as their default user profiles, which only shares the profile contents to users who have access permissions.
    If you want to customize default user profile, please refer to this article below:
    Customize the Default User Profile by Using CopyProfile
    https://technet.microsoft.com/en-us/library/hh825135.aspx
    Best Regards,
    Amy
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Firefox 17 always opens the tabs that were open the last time I closed it. I do NOT use restore history.

    This has started happening since I upgraded to v.17. I close Firefox either with the Red X or the exit button on the dropdown menu. The next time I open, it displays whatever pages were open when I closed it.
    I have always had Firefox use my Google account as my home page. It will not display.
    It seems to me that in your quest to keep updated (how many this year...?) that you've lost a little something. This is very bad behavior and I'll just stop using FF altogether if it isn't fixed soon.

    Make sure that Firefox closes properly and that there are no hanging Firefox processes left in the task manager.<br />
    It is usually best to use the Exit item in the Firefox or File menu to close Firefox.
    See:
    *"Hang at exit": http://kb.mozillazine.org/Firefox_hangs
    *"Firefox hangs when you quit it": https://support.mozilla.org/kb/Firefox+hangs
    You can check for problems with the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder that store session data.
    Delete the sessionstore.js file and possible sessionstore-##.js files with a number and sessionstore.bak in the Firefox Profile Folder.
    *Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
    *http://kb.mozillazine.org/Multiple_profile_files_created

  • Dvds made with encore cs5 not using full 4.65gb as cs4 did

    The majority of my video work consists of burning DVDs of event videos that are longer than two hours. I edit the video, dynamic link over to Premiere, add a second time line with a 10 second logo video and render the DVD. And since the begining of time with CS3, these DVD images always come out to be 4.65/4.66 gb (according to OS X). Now, with CS5, changing absolutely nothing--exact same workflow--Encore is only using 4.21 gb of space. The disc info section of the build pane lists around 450mb of free space (on the particular project I'm looking at right now).
    This is a significant amount of wasted space and is unacceptable. Why is this happening?

    I was finally able to talk to someone from Adobe and they tell me that this is the expected behavior, that supposedly not all DVDs are manufactured at the correct size and this extra space is to prevent problems. Should that even be true (aren't DVD's a standard?? If it says there's 4.7gb on it doesn't than mean there's 4.7gb??) this is a STUPID decision for the following reasons:
    * It doesn't show this 500mb extra space until after you render your items. Before that time, it shows all the disc space being used--1 or 2 megs free and no more
    * If this is necessary then make the default disc image size 4.2gb and add it to the drop-down list of sizes. Then I can pick 4.7 if I want it.
    * It doesn't even always leave 500mb. Sometimes, completely unexplicably--I'd say 10% of the time, it uses the full amount of space...like it's done since Encore v1.0. So if I manually change the disc size to 5.2 in order to get the right size image, I sometimes find that nope, Encore isn't drunk today, and I now have a 5.2gb disc image and have to start over.
    It seems like every time I update my software w/ the promise of things speeding up my workflow (and other things in CS5 have), something like this pops up to F it all up and I resign myself to thinking well, I guess Adobe will fix this one day...and call it CS6 and charge me another $700 for it.

Maybe you are looking for