I want my JDialog to be the only focusable window
Hi,
I have a JFrame containing a button. When the button is pressed a settings dialog (JDialog) pops up. Now I want only the JDialog to be focusable, I mean so that the user can't click on the JFrame so it'll be in focus before closing the dialog window.
Thanks
Its called a modal dialog. Read the JDialog API, specifically the constructors, for information on how to make a dialog modal.
Similar Messages
-
When I try to open the shared library on the 2nd computer (the one I want to xfer music to), the only songs that come up are those that are already in that same library (the library on the 2nd computer). While I can see computer #1 listed under 'shared,' when I click on it the only songs I can see are those that I already have on the 2nd computer. Hopefully that makes sense. Basically, the library from computer #1 isn't loading up.
What level of OS X is installed on your Mac (your profile is incomplete)?
Barry -
Want my JFrame to be the *only* one that can end the program when closed
Hi all,
I have an application that is essentially a launcher for other applications -- it's a holder to allow us to demo our work and other Java examples (not necessarily our work). The launcher will either run methods to launch an application or will find a class's main method and invoke that.
In all cases, the other applications open up their own JFrames, separate from my launcher (this is a good thing). The problem is that, in general, the other JFrames are set to EXIT_ON_CLOSE. This means that if the user closes the second window, everything will close.
Is there anyway to prevent this from happening? I'd like either a way to say that my JFrame is the only one that can exit the program when closed, or to say globally that JFrames can't exit on close, and then re-work my initial frame so that it is still able to exit.
Note that changing all the other applications so that they do not include the EXIT_ON_CLOSE line is not an option (several of the applications we have the right to use, but not the right to modify, for instance).
Any thoughts?
Thanks,
SamDarryl.Burke wrote:
I have a similar launcher application and this is how I tackled the issue....
Window[] windows = Window.getWindows();
This seems like a great work-around. The only problem is that Window.getWindows() is only 6.0, and unfortunately I can only assume 5.0. I can't see another method in the Window class that will return unowned windows -- is there another method that you know of?
Edit: I found I can use Frame.getFrames() instead, but unfortunately I've discovered this doesn't solve my problem. One of the applications is listening to window closing and is calling System.exit(0) itself, and is not using EXIT_ON_CLOSE as I previously thought. So I think that launching a new JVM may be the only option.... Any advice on how to do this? I'm a little stuck with the ProcessBuilder stuff above.
>
edit In future (not this time), Swing related questions should be posted in the [Swing forum|http://forums.sun.com/forum.jspa?forumID=57]
I guess I was thinking this as a process-oriented question (I had already been thinking of the "different JVM" tactic), but the other option was to think of it as a pure-swing problem, like your solution above. Guess I should have just cross-posted -- everyone loves that! ;-)
Edited by: Asbestos on Dec 18, 2008 12:32 PM -
If I want to delete Mac OS and only install windows 8, will there be ant side affects?
I know this is crazy, but I want to buy a macbook pro with retina,
and If I want to delete Mac OS completely and only install windows 8, will there be ant side affects?Mende 1,
Thank you very much!!!
But when you say windows support software, can you name it specifically?
because I'm really scared that I will mess up on this.
Or is it possible that I can ask one of the staff in the shop to do it for me when I'm buying the MacBook Pro with retina??
Do they do such service even in Taiwan??? -
I love Firefox, but this problem is frustrating me. I want to go to a favorite site and have bookmarked it. When I click on that bookmark, the site opens in a sidebar! How do I make it open in the full tab window?
You can edit the properties of that bookmark to fix this.
If you right-click it and choose Properties, you will check a checkbox toward the bottom of the dialog that opens the bookmark in the sidebar. Uncheck that and click Save.
Does it work?
(When you use a link on a website to store a bookmark, they get added this way. You can use Ctrl+d or the "star" in the location bar to add the bookmark without having it open in the sidebar.) -
How can I delete all the messages in my inbox on my iPhone 4?
To mute: Press vloume down button.
To disconnect: Press display off and on button on top.
Delete messages from Inbox: Click "Edit" button on top left and select the messages you want to delete. -
I am trying to download new version of Firefox. After I try to run the program it states to close all Firefox versions but there is no Firefox open except for the download. What else can I do
Do you have the "Green Arrow" icon on one of your toolbars? That usually will list your most recent downloads with a button to open the folder where they are saved.
If you don't have that, you can open the full download list using either:
* Ctrl+j
* Tools > Downloads
* History > Show All History, then click Downloads in the left column
Can you find the download listed there and click the "Open Containing Folder" button?
Are you downloading Flash or Acrobat/Reader?
For Flash try: http://get.adobe.com/flashplayer/
For Acrobat/Reader, you may not need an update.
Firefox's plugin check site only recognizes the Adobe XI (11) series as current, but if you have checked for updates in your Adobe Reader X or Adobe Acrobat X product (Help > Check for Updates) then you do not need to update the plugin. For this older Reader/Acrobat version, please rely on Adobe for information on available updates and not the plugin check site. -
''duplicate - locking - https://support.mozilla.com/en-US/questions/861429''
second time asking. i just downloaded the newest firefox browser
update and now when i open firefox this little widow appears and keeps asking me to jump over ditches . i do not want to jump over ditches. how do i get rid of it . i cannot get it to go away !
widows xpIs this on the Phone? Try the iPhone forum
-
I know touch id replaces the need to input a code but I would rather only have my fingerprint as the only way to access my iphone. Is this possible? Thanks!
dab74 wrote:
Thanks Chris. I had already read this. It seems like Touch Id will make it faster to access a locked iphone but the security code remains an alternative option to unlock an iphone, which is what I wanted to avoid. In other words, I would want Touch Id to be the only option to unlock my iphone but it seems like this is not an option.
If you have a concern that someone would guess your four-digit code, try turning off Simple Passcode, and choose a complex alphanumeric passcode. Perhaps that would help. -
Wanted getRemoteUser method to return the network login Id(Windows Login)
Hi,
I have an application running on websphere 3.5,
where the method HttpServletRequest.getRemoteUser() returns the users(client's) window login(the application is used across the network).
I have migrated the application to the Webshere5.0.
The problem I am facing here is the method
HttpServletRequest.getRemoteUser() return null.
I want this method to return the network login (Windows Login) id.
I did create a user(tom) in the windows(2000 Professional) registry and change the setting to custom registry in the admin console(websphere 5.0), here the getRemoteUser returns the value 'tom'.
I want this method(getRemoteUser) to return my windows login id.
For eg: If I login into the system with the id 'Anupam', it should return the id 'Anupam'. If somebody else accesses the application from another system in the network then the method should return his login id.
Please let me know if you know the solution for this.
Note: The same is working fine with Websphere 3.5.Hi Pramod,
There's a Function Module called <b>GUI_GET_DESKTOP_INFO</b> which you could use. The Function Module has got documentation so you should not have any problem using it.
Do let me know if it helped.
Regards,
Anand Mandalika. -
Alighning Popup component in the center of window
Hi
I have following code
<af:popup id="dialog">
<af:dialog title="Confirm Delete" type="yesNo" dialogListener="#{DeleteDocumentBean.deleteDocumentHandler}"
id="d3">
<af:outputText value="Do you really want to delete the document?" />
</af:dialog>
</af:popup>
if i want my popup component at the center of window what should i do
i have gone through this link but i didnt find anything useful
http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_popup.html
Regards
Mayur MitkariHi,
you just open the dialog without specifying an align-id or align orientation (just only provide the popup ID in the showPopupBehavior tag added to the command launching the popup)
Frank -
I want to add items to the bookmarks toolbar. for example: the Zoom Toolbar addon. This works, but not only the favicons appear on the bookmarks toolbar, aswell as the underlined text. How to avoid this?
I only want the favicons from an addon to appear on the bookmarks toolbar, not with the underlined text. How to do this?
This problem doesn't happen with any other toolbar. And this problem didn't happen with an earlier version of firefox. Please Help!
Thanx, BassMann.If you only want the favicons and not the names of the bookmarks on the bookmarks toolbar, you can do that with the [https://addons.mozilla.org/en-US/firefox/addon/4072/ Smart Bookmarks Bar] add-on.
-
I have an older Macbook pro with a dvi output and I want to watch movies on my tv. I have a dvi to hdmi cable but the only image I get on my TV is my desktop background. None of my movie players with appear on the TV screen. What am I doing wrong?
Hi Maryan,
Open System Preferences > Displays > select the window for you external monitor > click on the Arrangement tab and check the box next to Mirror Displays. It may be slightly different in Lion, but the idea is the same. -
I am trying to sync my ipod but it keeps saying that a previous library exists and that I can only sync to one library. I want to sync it to the original library bc that is the one that has all songs. It keeps giving me a library with just songs that I have bought on itunes. I never created a new library so I am not sure why it is doing this. How do I get it to sync to my original library? I have already tried to restore a previous version of itunes but that did not help.
It appears that something happened to yur computer/iTunes files. It happens sometimes. To recovery:
- Import the old music into the current iTunes library
- Make sure all the apps are also in the library
- If in the USA and therplaces where iCloud has benn released you can redownload most iTunes puchases by:
Downloading past purchases from the App Store, iBookstore, and iTunes Store
- You can always redownload apps at no additional cost as long as you are singned into the same iTunes account the originally purchased them.
- After all the suff in in the iTunes library, make a backup of the iPod by connecting the iPod to the computer and right clicking on the iPOd under Devices in iTunes.
- Restore the iPod from backup and restore as necessary. -
I'm relatively new to Mac and want to try and get the most out of the new MacBook Air.
My wife and I have been sharing the same Apple ID. We both have iPhones - she has a 5 and I've got a 4S.
We only have one copy of iTunes and we have been sharing the account. (She doesn't really use the computer for anything beyond writing the odd weekend assignment.)
Would I be better off setting her up with her own and making her as a separate user on the computer? Would this require much work?
In recent times with updates, we have a few problems with the duplication of texts and that sort of thing. Both of our texts are stored on the computer and that sort of thing. Also, sometimes texts I send her are sent through to me from her, if that makes any sense.
Anyway, I don't really want to overly complicate matters when it comes to accounts etc, but I wanted to know if a fresh Apple ID would be the best thing or even a new user?
Any tips etc would be greatly appreciated
Thanks in advance
MacBook
I have this question too (0) ReplyYour question is almost too much a personal one, begging the question "do we (husband and wife) feel comfy sharing one account on the Mac" maybe thats why nobody answered you.
It doesnt complicate anything, but it adds steps for switching accounts on the Mac/ purchases etc. of course
since your question is mostly personal, ..I wont answer THAT part of it, but creating a new account is easy.....messing with switching back and forth is also a personal preference 'issue' as well. I prefer to keep things simple, but...........you and yours, I dont know.......
http://support.apple.com/kb/PH11468
Maybe you are looking for
-
My computer shuts down but the restart feature will not work. It just hangs.
Hello I have a MS6547 version 1 (645 Ultra Motherboard) The problem I am having is that my computer will not restart. If I press the power off button in windows it will shut down but the restart windows function will not work it just hangs at (Window
-
I was wondering if any knows why all my programs, escpecially my internet programs(Safari&Internet Explorer) are now always "unexpectedly quit". Just recently it has been happening, and when I try to go into my yahoo email account when im in Safari,
-
I really need help with this pls....
-
Planned delivery time & GR Processing time
Hi all, I would require a clarification on this one, Scenario - After an MRP run, the Purchase Requisitions for materials are generated & the order release date is being calculated by subtracting only the planned delivery time from the requirement
-
Is it possible to save redundant bank details to one business partner?
Hi experts, is there any way to save redundant bank details data (i.e. multiple entries with the same bank account number and bank key) for one business partner, where only the bank details ID is different? I can't do so, neither via BAPI, nor direct