Hiding Application To System Tray will cause Modal dialog unblock

I have a JFrame, when I minimize it, it will hide. The user can recall it back by simply double click on its icon, which is created in system tray during application initialization.
However, I am facing problem when I pop up a modal dialog box. (In Linux)
When I pop up a modal dialog box, I am expecting setVisible(true) will always being block, until the modal dialog box is closed.
However, in Linux, user is able to minimize the parent windows, even there is a modal dialog box. During minimization, I have to call JFrame.setVisible(false), in order to hide the application.
A side effect of calling setVisible(false) for a modal dialog box owner (JFrame), will cause the modal dialog box JDialog.setVisible(true) being unblocked and continue for the next statement.
How I can prevent this, to ensure the JDialog.setVisible is always blocked, until the JDialog is really closed? Thanks!

tnx Sarcommand ..i give up on that, i understand the risk if that feature is included..
all i wanted is to make an internet cafe client/server that blocks the client's pc interaction if log time is reached.blocking only the keyboard and mouse.
i have seen so many softwares sets the cursor position within the dialog bounding box only with user and password there. though my other application runs the mouse is still captured on the dialog even the dialog lost focus.
if that would not be possible I'll just send notification to the client, a dialog that does not block any application.
now, im going to try if the client can do som action whenever the server sends alert if the client java app is not the focus. i will post next time what hapens.but if you tried already, if u dont mind posting it so others could know it also..
tnx so much Sarcommand..

Similar Messages

  • Minimizing LabVIEW application to system tray or running it as a Windows process

    Hi guys,
    Is there a way I can minimize a LabVIEW application to the system tray on the right bottom corner of the screen ? My application will run all the time and all I want is a pop-up when errors or information/reports have to be displayed. I have searched exhaustively and now am posting this question. Please let me know if this can be done.
    also, Can a LabVIEW application run as a Windows process? Like it starts up automatically on booting the system?
    Thanks!
    V
    I may not be perfect, but I'm all I got!

    If you search for System Tray you'll find lots of people trying to do the same thing and a few places with example code to get it working.  But the best method I've seen is actually on the Lava forums.
    http://lavag.org/topic/14060-put-your-labview-in-the-tray-once-and-for-all/page__p__86042__hl__+syst...
    As for starting a application on startup.  Again I expect searching you'll find alot of people saying the easiest way is to create a shortcut to your application, then place the shortcut in the Startup folder in your start menu.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Minimize AIR Applications to System Tray.

    Hello. Is there any way to minimize our AIR applications to the system tray? Like Internet Download Manager can have it's window closed but still running and appearing in the system tray, and is there also any way to display balloon messages like some programs do? Any one solution would even be really helpful.
    Thank you.

    Working with the dock and the system tray | Adobe Developer Connection

  • How to get the Id of the component that caused modal dialog to terminate?

    Hi,
    I am developing a plugin for Acrobat. The plugin will have menu item. On clicking menu item a modal dialog will be opened. I am using DialogBox method to create modal dialog. But this method returns value which is the call to the EndDialog function used to terminate the dialog box. This means that on success it will always return 0.
    But I want the ID of the component in the dialog which caused the dialog to terminate. What I mean is that I want that if Ok button in the dialog was clicked and dialog terminated then DialogBox method must return the ID of the Ok button.
    Is there any other function that can be used to create dialog in Acrobat on windows??
    Thanks.

    Acrobat no longer has any API to dialog creation in a plug-in. So the question of knowing which of your buttons terminated the dialog is part of the API or library you actually use to do the display. If you are talking about the behaviour of the Windows GDI API, it's up to you what code to pass to EndDialog in your callbacks, when processing the BN_CLICKED notification. Personally I pass the control ID. If you are using a higher level wrapper it will be a function of that, but knowing what button closed a dialog is a basic need that any library should satisfy.

  • My system tray is hidden at top of screen

    system tray automatically hidden at top of screen similar to dock hide.  Reappears when cursor is at top of screen, but I do not want this.  How do I undo this?

    You are in full screen mode with the application you are using. Drag curser to top right of screen and you'll see an icon to get out of that mode. Then your menu (not system tray) will be back.

  • Minimize to System Tray?

    Is there any way to minimize the java application to system tray?
    Did some research and most of the hits returns JTRAY. An API which requires payment.
    Please advise. Thanks.

    Did more googling and I am intimidated by the results. It seems to require the knowledge of C++ and the usage of JNI to access windows API? Can anyone else shed more light to it please? Thanks.

  • How do I get firefox 3.5 back? Firefox 4 can't find yahoo.mail URL. Using your suggestions has caused me to loose my system tray icons and printers from my computer altogether and my system restore will no longer work either.

    Firefox 4.0 cannot find the Yahoo mail URL. Working with the Verizon tech we were able to get Internet Explorer to finaly find the yahoo mail web site. But not luck with Firefox 4.0 .
    Since trying your suggestions to make firefox 4 find the Yahoo mail URL. I have noticed that all of my system tray icons except the Panda anti virus and volume control icons have disapeared. My system restore will not restore and printers are gone altogether. How do I get the old firefox and all i've lost back.
    Hector, [email protected]

    Still cannot fix it to get Yahoo e-mail. This what I get now from Ff3.5 now.
    Sorry, we can't find "http://us.mc1121.mail.yahoo.com/mc/welcome". Please check the spelling of the web address.
    From Ff4 it can't find the " URL proxy server" on it's server???
    Have tried most every solutions/suggestion I could find have my computer just keeps getting worse. Where do I find the 4 solutions you mention here to see if I have not already tried them? I don't see or know where to go to find these solutions??? Can anyone help me find the fix???
    E-mail add. [email protected]

  • Why my system tray application terminates when JFrame is closed???

    Hi,
    I am using JDK 1.6 with Netbeans 5.5 and currently trying to make an system tray application. I have one main class which runs as a system tray application and one JFrame class which will be shown when user selects a menu item from system tray. So far so good but a small problem. When the JFrame form is closed, my system tray application also closes. Can somebody tell me what am I missing?
    Thanks

    set the DefaultCloseOperation of the JFrame to DISPOSE_ON_CLOSE instead of EXIT_ON_CLOSE
    db

  • Equium A60-191: What application controls battery status in system tray?

    I have had to re-install XP. This caused the loss of the drivers and quite probably other stuff I don't know about.
    One of the items missing seems to be the software or driver? for the battery. The battery no longer charges up to full power. The software that set in the system tray used to indicate the power status and whether it was ac or dc connected.
    Any suggestions what I need and where I can get it from to fix this problem, please?

    Hi
    In my knowledge you dont need any drivers or software to charge the battery to full power. Only what you need is the Toshiba Power saver utility.
    This utility is very useful because you can configure the different power modes for a different notebook usage. For example if you have disconnect the AC adaptor from the notebook the Power saver will automatically switch to the power mode which was configured for the battery usage.
    Such modes help to take care of battery and increases the battery life time and it shows a battery status in the task bar
    But it has nothing to do witch the battery charging.
    In my user manual I have found many info about the battery and how to handle the battery usage. I think the same information you will find in your user manual. Check it.
    The last possibility could be a battery malfunction.
    But in such case only a battery replacement will solve your issue.
    If you want you can try to check if the same happens with the new battery.

  • Running a forms application from the system tray

    I have a forms application.I want to run it from the system tray ,just like how norton antivirus or yahoo messenger works .How do i do it .Pls help

    You can create Actice EXE or OCX that enables your application to hide in system tray and embed it in your Forms6i Application.

  • How to make the application run in System tray?

    Hi Javamates,
    I have a Swing application. I want my application to reside in the Windows System tray when the application is minimised , and also be restored when it is clicked in the tray . How do i do this ?
    Dinesh

    Pls... do search the forum before posting.. !!
    U can hav a look at this..
    http://forum.java.sun.com/thread.jspa?forumID=257&threadID=177333

  • How to remove Application icon from system tray on uninstalling the application

    Hello Friends
                        Is there any way to remove a system tray icon when i unistalled the application?
    i am making a desktop application but i am facing a problem that during uninstallation of that application it remains on the system tray.So can any body guide me any event which fire on unistallaion of application so that i can remove the application manually using cllosing event.please help me out from this poblem i am totally confused.
    Thanks and Regards
       Vineet Osho

    I have same problem with you but I haven't find an answer for that. Did you have your answer for the problem?
    Thanks!

  • Application Explorer - Not Loading To System Tray On Login

    Hi,
    We are getting users logging into their computers in the morning, and finding that the Novell Application Explorer is not loading into the Windows system tray.
    Manually running the program does not work, only a reboot seems to cure the issue. Any thoughts?
    7.0.173.90519 - ZENworks Desktop Management 7 SP1 Interim Release 4

    No idea why, but you may want to try ...
    Killing Explorer.exe and then Trying to Run the NAL Explorer.
    NAL Explorer hooks into Explorer.exe in a fashion that a hook remains
    even after killing NAL Explorer.
    This hook may be having an issue so NAL Explorer can't start or restart
    properly until Explorer.exe is restarted.
    Again, not a fix, but may be quicker than a reboot if it helps.
    On 11/4/2010 2:36 PM, rhowelld wrote:
    >
    > Hi,
    >
    > We are getting users logging into their computers in the morning, and
    > finding that the Novell Application Explorer is not loading into the
    > Windows system tray.
    >
    > Manually running the program does not work, only a reboot seems to cure
    > the issue. Any thoughts?
    >
    >
    >
    > 7.0.173.90519 - ZENworks Desktop Management 7 SP1 Interim Release 4
    >
    >
    Craig Wilson - MCNE, MCSE, CCNA
    Novell Knowledge Partner
    Novell does not officially monitor these forums.
    Suggestions/Opinions/Statements made by me are solely my own.
    These thoughts may not be shared by either Novell or any rational human.

  • System Tray application

    I am using the Java 6 feature for creating System Tray capable applications.
    I have used the SystemTray.java example from Sun and this works fine.
    What I need to know is how I hide the application in the Task Bar. The user would then need to click the System Tray icon, for the application, to bring the application back up again.
    I look forward to someones help.

    Here's what would you do in your application:
    to make it disappear on minimize:
              applicationFrame.addWindowListener (new WindowAdapter () {
                   public void windowIconified (WindowEvent e) {
                        setVisible (false);
              });and a mouse listener to your TrayIcon to show it again on left click:
                   trayIcon.addMouseListener (new MouseAdapter () {
                        public void mouseClicked (MouseEvent e) {
                             if (e.getButton () == e.BUTTON1)
                                  applicationFrame.setVisible (true);
                   });And I'd suggest you to take a look here about window listeners
    http://java.sun.com/docs/books/tutorial/uiswing/events/windowlistener.html

  • How to put Java application in the MS. Windows System tray

    dear all,
    Is it possible to make a Java application communicate with the MS. Explorer and to put a Java application in the MS. Windows System tray
    Regards

    http://www.esus.com/docs/GetQuestionPage.jsp?uid=624
    or look for madcap on sourceforge

Maybe you are looking for

  • Questions about asus eee 701 and trayer/ openbox

    Hello, This is a two part problem and I didn't know where to post them.  I have am asus eee laptop, using arch linux with openbox. First - how can I make trayer stay below all other windows, right now it above them?  Second - I'm using Idegh acpi pac

  • Image sequence in Pro

    I have succesfully used the image sequence to produce movies in the past..now when I try it all that gets imported is the initial frame. It seems like this all started after the last update to iTunes. Thinking that I needed to upgrade I spent another

  • When I open a new photo it looks pixelated and blurry but that is not how the original looks.

    I got a message a few days ago after my computer froze, but everything is updated. How should I fix this?

  • Pull random images from iPhoto library folders

    I'm trying to come up with a script to pull random images from my iPhoto library and copy them to another folder that I can then use with another program (GeekTool) to display them on my desktop. What I'd like to be able to do is pull 30-50 of these

  • SJSAS EE 8.1_02 / Bug in jss4.jar breaks our new release

    +[Full environment description below]+ Problem description: our application server contains several applications including one J2EE application made of several WARs and EJBs. One of these EJBs starts some internal services that use an open source lib