Composite windows and Fle dialogs

Hi everyone,
I am working on a GUI object of type Composite which has a text field and a (Browse) button. It has been programmed so that when the user presses the Browse button, a file dialog opens up. Now the problem that i am having is that after the file dialog opens up i am still able to bring the Composite window, sitting in the background, up front by clicking on it which i don't want. I have tried using the setEnabled() method on the Composite but it just disables the browse button and the text field, but does not completely block the user from the composite window since one can still bring it up front. Is there any way to achieve the following functionality?
The user clicks browse the file dialog opens and as long as the user selects the file the file dialog is active and the composite window in the background remains inactive, once the user has selected the file the composite becomes active again.
This is just like if, in your Internet browser, you click file->open and out pops the web address input window where you type in the web address of the web page you want to visit. During this time you can't click on anything in the background unless and until you close the web address input window. Any help is appreciated. Thanks!

As suggested above if you are using JFileChooser then
is is automatically displayed as a modal dialog.
If you are creating your own FileDialog, then you
need to make the dialog modal and specify the JFrame
as the parent when you create the dialog.Thanks for support.

Similar Messages

  • Lock the Composition Window Scale?

    Hi,
    I am new to this software and have this problem. I have a Magic Mouse and every time i roll over the Composition window and inadvertently swipe my finger across the mouse the window jumps to some random scale. Is there a way to lock it to 100%?
    Thanks,
    Steven

    Is there a way to lock it to 100%?
    Yes - you use a "decent" mouse! This is a known problem that unfortunately cannot be fixed other than using a conventional wheely mouse...
    Mylenium

  • ER?: JSPX popup dialogs/windows and the JDev IDE

    Hi JDev team
    One thing I'm starting to find tedious in the JDev 11gTP4 IDE is when I have a JSPX page with a <af:popup> dialog/window, and I want to work with the popup rather than the rest of the page (say to drag n drop something into the popup in the editor window), I need to either search through the JSPX source code, or click down many levels in the structure window until I find the actual popup (....which if I then click on the popup node in the structure window, the editor window will display in the editor window).
    Possibly I could do a search through the code searching for "popup", but if I have several popups this can also take sometime as I need to search 1 by 1.
    As such, is there a shortcut I'm not aware of for navigating popups in a JSPX page, or alternatively could we raise an ER such that the Structure Window or similar shows an easily accessible, clickable list of popups and their ids available in the JSPX page please?
    Cheers,
    CM.

    In addition to editing popups, Visual Editor also provides ways to edit ADF components which are clipped (ie., not fully visible in VE). Select the component which is clipped and select 'Design This Container' from the contextual action menu (small drop down menu on the top-right corner of the component). Visual Editor will show the component (and its hierarchy) in the visual editor.

  • Why do I get multiple security machine dialog boxes when I open Firefox, Windows and Mac?

    Whenever I open Firefox, I am asked for my security machine password multiple times. Seems to be connected to how many tabs open (on Windows) and is always three (3) on Mac. I have Sxipper.

    Strange, since Google is unlikely to do that. Maybe it was an bundled installer masquerading as the official one?
    To start your clean-up efforts, please check your home page setting. Do you get the 3 tabs when you press Command+n to launch a new window? If so, the extra URLs may be tacked on to your home page setting in the Preferences dialog. These articles describe where to find that. Note that it can be difficult to see the full details of that field due to limited space available, so often it is easier to delete it all and paste in just the URL you want.
    * [[Startup, home page and download settings]]
    * [[How to set the home page]]
    Next, please check your extensions, as they can override your settings. I suggest disabling ALL nonessential or unrecognized extensions on the Add-ons page. Either:
    * Command+Shift+a
    * Tools menu > Add-ons
    In the left column, click Extensions. Then, if in doubt, disable. (Or if obviously bad, remove.)
    Usually a link will appear above at least one disabled extension to restart Firefox. You can complete your work on the tab and click one of the links as the last step.
    Any improvement?

  • How to Remove Treeview in people and group dialog window

    I need to remove the treeview in people and group dialog window in sharepoint online. Any suggesstions?

    Hello,
    For those still looking, you should ask on the
    SharePoint forums.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?&lt;=\G.{2})'|%{if($_){[char][int]&quot;0x$_&quot;}})

  • Any way to see ICONS in Open and Close Dialog boxes?

    Is there any way to see ICONS in Open and Close Dialog boxes, instead of just lists of items names?
    I know you can preview one at a time, but I'd love to see all my artwork as picture icons, just as you can in a finder window.
    Windows does this, but not OSX that I know of. Is there a third party app that enables you to see icon view in the Open and Close Dialogs?

    Thank you Steve Jobs. I guess that feature has been added in Leopard. Now there really is nothing that I'll miss from Windoze.

  • Open and Save dialogs are painfully slow. Is there a solution?

    Open and Save dialogs are painfully slow. Is there a solution?

    I pulled this part out of one of the topics Barney-15E linked to. It absolutely works! The glacially slow Finder response has been driving me batty in Mavericks. Each time I restarted, it would take forever to list the startup drive when I opened it. Open and Save dialogues were also painfully slow to respond. Now they all snap open and list instantly. I used TextWrangler to comment out the line in the file auto_master, then ran the automount command in Terminal.
    Working workaround:
    Use the following statements in Terminal.
    sudo vi /etc/auto_master
    In this file comment out /net with #  (#/net .....)
    sudo automount -vc
    Fixed.
    Confirmed here too both for Preview.app Open file sluggishness and Finder window population. Thanks Snaggletooh_DE!
    Couple of notes:
    (1) Some folks may be more comfortable using a GUI editor like TextWrangler instead of vi
         a) in the Finder use the GO menu and select Go to Folder
         b) type  '/etc' ( without single quotes ) in the Go to folder dialog box and press the Go button
         c) Right ( Control  ) click the auto_master file in the resulting Finder window. Select "Open with...." and use TextWrangler ( your choice )
         d) Comment out the line by inserting a '#' ( pound sign ) as noted in Snaggletooth_DE's instructions
         e) Save the file  ( probably need to authenticate with your admin password  )
         f) Do the 'sudo automount -vc' per Snaggletooth_DE's instructions. Will need to authenticate again.
    (2) Notice Snaggletooth_DE described this as a "workaround" because it bypasses an Apple bug. Presumably most people have not changed their auto_master file and it worked fine in Mountain Lion and prior. In other words: If you haven't done so already, please continue to submit feedback and bug reports to Apple for this issue.
    Kudos to Snaggletooth_DE for figuring out code is trying to look at network ( NFS ) volumes that maybe don't exist.

  • Open and Save Dialogs Slow to Open and Populate

    In all of my apps, the Open and Save dialogs have become very slow to open and populate since installing Snow Leopard, when the machine is connected to a Windows server. Disconnecting from the server solves the problem; reconnecting causes it to reappear.
    This only happens on some of my machines, and not others
    Any thoughts on what this could be. The delay is significant (about 10 seconds in all).

    Roy,
    I've got the same problem. I've been charting the slowness, i.e. the time until the app responds and opens the save dialog box, and most apps hover around 2 minutes of waiting.
    My home network consists of a belkin n+ router (running only with the N radio, and WPA2 security), one ethernet-connected powerbook with a USB-connected hard disk (640GB+), and my MBP connecting by wireless. The USB HD is used as a Time Machine backup disk, and the backups are extremely slow, on the order of 2 GB's per hour at most.
    That said, I called up Apple Tech Support and they had me flash my PRAM, restart the machine, and Reset Safari (since that was the app I called about). These efforts, unfortunately, did not fix the issue.
    I will be passing on the fact that Tech Support's efforts did not solve the problem--maybe they'll get back to me on the issue. If so, I'll post it here.

  • CS5 slow to get the 'open' and 'save' dialog box over networked computer.

    I have been having this problem since the suite was installed, but recently has gotten much slower. Any time I click open or save it takes 8-10 seconds just for the dialog box to come up.  CS1 was lightening fast - I know that was ages ago, but I can't help compare the two.  I have the same problem with InDesign and Illustrator. The suite is running on a Windows 7 machine through a home network, accessing files from an XP machine as well as a Buffalo Linkstation.  Once the dialog box comes up, and I double click, the file is pretty quick to appear.  I have researched online and I believe the problem to be somewhere in the network or the settings.  The network is quick, Windows Explorer has no delay in opening or finding files, nor do other programs outside of Creative Suite. I did an experiment to narrow down the problem - I closed Photoshop, unplugged the network cable, and reopened the program.  AMAZING - it was SO FAST to open the dialog box for both opening and saving files!  I then closed Photoshop again, plugged the network cable back in, and opened Photoshop.  It was back to the slow opening of the dialog box.  Everything else in the programs runs fine - no delay when performing operations in any of the Creative Suite - it has to do with the network and how CS is looking for the files.  Can anyone help me, I am so frustrated - this is adding unnecessary time to everything I do and I dread opening and saving any files!!

    Once again - thank you!
    We used to have a network storage device attached to our home network, but it crashed and we replaced it with another model.  A while back I had added it as an item to display in the places bar.  When we removed it from the network, the link on the left side disapeared, so I forgot all about it.  When I read your posting it jogged my memory.  I searched the subject to remember how I had made the change and found this posting from Adobe Community: http://forums.adobe.com/thread/795196 (its in #6).  I found the original storage device in the places bar, removed it and replaced it with the new device.  I opened Photoshop and Acrobat and both open and save dialog boxes appear as they should - the problem has been resolved!  THANK YOU!

  • Help,how close pop-up window ,and open another view

    Hello,
    How click the pop-up window button ,then close the pop-up window .
    At the same time open another VIEW,and  transfer PO number to the VIEW.
    thanks

    Hi,
    First step is set the SCREEN TYPE as "Modal Dialog Box" in screen property tab.
    Then in PBO of the popup screen take a new GUI status and select DIALOG BOX as status type.
    Then assign some function code in 'X' button say 'CANCEL'.
    the put ur logic like below :
    PBO
    module gui_status.
    PAI.
    module user_command.
    module gui_status.
       set pf-status 'ZPOPUP'.
    endmodule.
    module user_command.
      if ok_popup = 'CANCEL'. " Where ok_popup is the ok_code variable in ur popup screen , also define it in TOP include
        leave to screen 0.
    endif.
    endmodule.
    Hope this will solve your problem and help you to put your logic.
    Thanks

  • T-Bird keeps automatically switching from composition window to main window while I am typing, which leads to typed letters being interpreted as hotkey commands

    Hi,
    Since I switched to Windows 8, I've had this problem with T-Bird. Updates and safe mode have not fixed it.
    Basically, while I am composing a mail, t-bird automatically switches to the main window. Because I am in the middle of typing, it usually freezes for a moment, sometimes longer and goes transparent and a (Not Responding) appears, but usually unfreezes and then interprets all the intervening keystrokes as commands. All sorts of damage is done: messages deleted, threads hidden, sometimes a "go to last unread message" box appears. It's a real drag.
    I thought it might be a keystroke combination that is making the program change windows, but I'm fairly sure I've seen it switch when I just have the composition window idly open. I think it may be switching whenever T-bird checks for new mail.
    One thing to mention: I often switch between US English keyboard layout and Portuguese language layout. I haven't systematically tested whether it happens in one or the other, but the POR layout has some accent marks here and there. still, I've been careful not to accidentally touch the CNTRL key and as I say, I've seen it switching while idle.
    Any help is appreciated. It's getting to the point where I can't really use T-Bird any more and am sadly looking for alternatives.
    Thanks,
    BL

    Create a new profile as a test to check if your current profile is causing the problems.
    *https://support.mozilla.org/en-US/kb/profiles-tb
    If the new profile works then you can transfer files from a previously used profile to the new profile, but be cautious not to copy corrupted files to avoid carrying over the problem
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Thunderbird
    *http://kb.mozillazine.org/Profile_Manager

  • Open and Save Dialogs Very Slow to Open and Populate

    In all of my apps, the Open and Save dialogs have become +very slow+ to open and populate since installing Snow Leapoard.
    This only happens on one of my machines, and not others. (I've unmounted all connected drives, just to eliminate that possibility.)
    Any thoughts on what this could be. The delay is significant (and feels like the old days of Windows, which I thought I'd left behind).

    The problem now appears to have gone away. The only change I've made is that I replaced an external drive that had recently died with a new one and gave it the same name as the failed drive.
    Could a the dead drive have left something behind (or failed to leave something behind) that is stumbled over (or looked for and not found) each time the file system was accessed, and that got cleaned up (or re-created) when the new drive was connected and renamed?

  • How do I switch to HTML in the composition window

    I normally compose messages in plain text, and digitally sign them. However, on occasion I'll want to embed a picture, so I want to switch to HTML. The only way I've found to do that is to change the account setting before bringing up a composition window. I'd prefer to switch to HTML for just that message, and do it from the composition window. Have a missed a feature somewhere that does this?

    Thanks for the tip. Would like an entry in one of the pull down menus for this.

  • Setting Cursor - For a window and application wide

    Hi,
    Can somebody please help with a cursor problem ? I am not able to set the busy cursor for a frame when the application is doing some work. I have tried many methods of doing this (some of them from these forums...) but still I am not able to make this work.
    1) setting the cursor before doing the work and resetting after the
    work doesnt work.
    2) setting the cursor for the window by calling
    Window window = SwingUtilities.windowForComponent(getRootPane().getGlassPane());
    window.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
    This works but the events are not blocked by the frame i.e if i
    click on any part of the window like a button or something, that
    event is fired after the work is done. So this is not good.
    3) created a glass pane for the window and blocked all the events. Then
    set the cursor for the the glass pane. This does not work either
    since the event thread is doing the work. So had to create another
    thread to do the work. This works but when the cursor is reset back,
    it doesnt reset. I have to move the mouse a bit to reset it. So this
    is not good either.
    4) created a work around for the cursor by creating a modal dialog box
    saying "Processing..." in the event thread and doing the work in the
    worker thread. The worker thread posts an event to dispose the
    dialog box after the work is done. This works perfectly though it is
    still not good because the cursor is not showing busy. Because of
    the modal dialog box, the user cant do anything in the application
    which is exactly what i want. Is this ok ? Can somebody provide any
    other work around for this ?
    5) Also I have another question for you guys. In the worker thread if i
    do something like updating the gui etc., it takes a lot of time
    almost 10 times more than when the work is done in a single threaded
    environment. Is this because of the communication between the worker
    thread and the event thread ? If I do only data related work not gui
    work in the worker thread, this is fine.
    I am new to Swing, so somebody please explain to me if they can.
    My environment is JDK 1.1.7, Swing 1.1 on Sun Solaris 2.5.1. Is this because I am using old versions. Is this resolved in the newer versions like 1.3 etc ?
    -Vijay

    moetunes wrote:I thought a
    chmod u+rw /path/to/.conf
    chmod go-rw /path/to/.conf
    would set the file to be read only by the user that owns it.
    That is all true.  The problem is the need to give a user the ability to run a program that has secrets that should only be visible by root.  If you give the user ownership, they cab see the keys to the kingdom.
    For example, you may want to allow a user to connect to an arbitrary wireless access point.  Generally, this is a privileged operation -- you want to give them permission to do it, but don't want to give them ownership.  You may also not want them to be able to see or modify the pass phrases.

  • Some apps crash out when I close their window and switch to the Finder

    It has been doing this since day one.  I'm a college student and bought a laptop to replace another really old mac system, to use as my main system.  The issue I'm noting is that on some apps, if I close out their window and switch to the Finder, by either click on the desktop, or by command tabbing.  The application seems to crash.  I say 'seems' becuase I'm not certain it's crashing.  It does this in Text Edit along with pages.  I'm trying to find out if it's supposed to this or if it's supposed to be a new feature.  There is never a crash log made that I know of, nor a dialog box stating the app crashed.  However, it does this by itself, without my quiting out the app by command q nor file>quit.
    This has been relatively minor and hasn't caused any large problems.  To me it's an annoyance and inconviencning.  Which is why I waited until summer break at school to investigate.  Other classmates with older mac book pros but the same OS version have not had this problem.  Wondering if I have a botched isntall of OS X from the factory.  I've already had it in for service for the motherboard.  The cooling system was not correctly attached to teh CPU at the factory and cooked itself.
    I'm tempted to do a reload of the OS from the diagnostics partition the system came with.  I haven't transferred much of anything from the previous system that this one is replacing.  Now would be an ideal time to do anything of this nature rather than say in the middle of next semester.
    The issue occurs in TextEdit, Pages, and that's it so far.  I really have almost nothing loaded on the system.  I dual boot into another OS for using Maya and other various software apps.  The issue does not occur with Safari nor FireFox nor Preview.  It seems confined to Pages and TextEdit.  It can be extremely annoying however when typing an essay in Pages.  Perhaps it's a feature that was introduced that I can turn off?  Going from a 5 year old Mac Mini to a MBP, LOTS has changed.

    Sorry for taking so long to reply.  It's still doing it.  I'm kind of wondering if something like a preferences file is corrupted, however, I have to do a total system reload to begin with to eliminate any potential corrupt data on the windows 7 install.
    Back story.  When I first got this thing it was running super ridiculously hot.  It's the first laptop I've ever owned however so I had nothign to use for reference.  After about two months of it getting brutally hot, it did a BSOD in the windows 7 install I did via bootcamp.  It never turned back on.  Took it to the Apple store in Novi MI and they stated it somehow ran so brutally hot the CPU did a solder reflow and the whole motherboard shorted out.  Even worse though, I had gotten this hot before rendering stuff in Maya and Vue.  I had done burn in tests when I first received the system, it had passed, or so I thought.  They couldn't even get the system to turn on at the Apple Store.
    The tech at the apple store told me that one of the heat sink pins on the CPU just plan broke off and another wasn't attached correctly.  Essentially the system kept overheating as I was consisently completely maxxing out the system doing CGI test renders for my junior animated short film.  The cooling system was never fully connected at the factory according to the Apple Tech.  I don't know how literate everyone reading this is on computer engineering but, when you overheat an IC, whether it's an ASIC or CPU, they dont' immediately crash, they corrupt data.  To further complicate the mess and increase teh chances of data corruption, with the 4th gen Intel i series CPUs (which the MBP uses), they moved the northbridge directly into the CPU die.  So if teh CPU is overheating, the chances of data corruption inadvertantly go up even higher.  I'm suspecting that happened in the first few days of owning the system but that it was minor at that point.  It can take months for the effects of corrupted data to propagate out and be visible to the user.
    I would assume that they did a diagnostic test on the SSD when it was in for service, to ensure the SSD didn't overheat.  The tech did state that if the drive failed the diagnostics, they would have ot replace the drive and henceforth all my data would be gone.  Not really a way around it.
    Currently under the windows 7 install with Maya and Vue, later iterations of the scene file, from Maya, for my animated short film, have a reproduceable glitch involving a gamma shift and camera selection.  Part of the scene files seem to be corrupt and were saved that way.
    Reloading the OS from the recovery partition did not fix the original problem I've been having that I initially asked for help with.  I'm considering wiping out the recovery partition in addition to reinstalling windows 7 and OS X again, it would be the only way to completely eliminate the possibility of any corrupted data floating around on either partition.  I don't have a way of knowing if corrupted data was written to the SSD beyond the corrupted Maya scene files.  The only way I can be sure that it's 'contained' or eliminated, is if I completely wipe the drive and start from scratch.  Now would be a great time rather than in the middle of working on my senior thesis for my BFA degree.
    I'm wondering if you could point me to documentation showing how to wipe out all the partitions, including the recovery one.  My understanding is that there is a way to do a 'net boot' or 'net recovery' over a broadband connection using Apples servers.  The idea of doing a Live boot from a Ubuntu distro to run fsck is appealing but it would be pointless.  The file system shoul be fine, it's the data the file system points to that I suspect is corrupted at somepoint.  Unless you recommend otherwise and or formatting.
    The overheating also corrupted my journal but there is no way to recover it, I overwrote the earlier file(it looks like uncompiled C++ and jibberished text) when I saved it after completing an entry.  This was many months ago.  Though the idea of attempting a restore with Ubuntu Remix or other recovery Linux distros is appealing I'm doubtful I'd get far, though it's an SSD not a traditional harddrive and they don't work the same.
    Back to the main point though, I suspect the overheating corrupted a prefs file which is causing the glitch I'm seeing, and reloading the OS did not fix it.

Maybe you are looking for

  • Suubcontracting PO

    Hi all , I am crating Subcontracting PO, which is free (mark check box for free PO). At the time of GR the account postings are happening as below Stock A/c for semi finished material - Debit  - X amount Cost of goods Manuf. - Creidit - X amount Stoc

  • How can i get HD video out from the lumia 900. ? ...

    How can i get HD video out from the lumia 900. ? Is there some kind of gable. ? N8 has HD cable port..so where is lumia`s port. ?

  • Unknown Error (-50) after syncing then attempting to update my IPod Touch

    After syncing my device and making sure everything was saved I clicked the update to the new OS for the IPod Touch and it downloaded it in about 6 mins then turned off and on a few times and then when it tried to reconnect to Itunes I recieve the -50

  • Download  resources that are not listed in the JNLP file

    There is some way to download resources that are not listed in the JNLP file, and then ask for them with DownloadService ? (isResourceCached) thanks.

  • The itunes library file cannot be saved (-48)

    After migrating my library from an xp machine to a new vista machine, I get this error whenever I open iTunes. The itunes library file cannot be saved (-48) The most annoying result appears to be that my video iPod does a full sync every time now (as