Raise appletwindow in front of all windows

Hi,
i'm running Forms10g in a separe frame, so the forms applet windows is a button in the windows task bar.
In my form i'm receiving an event via dbms_pipe. at this moment i want to bring
my forms appletwindow in the front / foreground of all windows (such as Outlook, Excel).
In Forms6i i run winapi.
How to do this in 10g?
Please help!
Robert

import java.awt.Dimension;
import javax.swing.*;
public class JDialog_test {
     public static void main(String args[])
          JFrame jframe=new JFrame("JFrame");
          jframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          jframe.setVisible(true);
          jframe.setSize(new Dimension(200,300));
          JDialog jdialog=new JDialog(jframe,"JDialog",true);
          jdialog.setModal(true);
          jdialog.setSize(new Dimension(100,200));
          jframe.setVisible(true);
          jdialog.setAlwaysOnTop(true); //<-- here's the trick..
          jdialog.setModal(true);
          jdialog.setVisible(true);
          jdialog.toFront();
}

Similar Messages

  • POP NEW MESSAGE TO THE FRONT OF ALL WINDOWS: HOW?

    How do I set up iChat to bring a new message, current message, or any other message to the front of all other windows when received??
    The present options limit the actions to making a noise, bouncing the dock icon, and nothing else.
    I would like iChat to bring forward ALL messages received to the front of all other windows upon receipt, and put the focus on that newly received message.
    Is this possible? I have searched the interwebacles via the googlenator and have found nothing solving this issue. Be as technical as you like, I will understand any level of instructions.
    Thank you in advance.

    Try Chax It is an Add-on that adds the feature you request - or rather a chat window can be set to always be in front.
    This means new chats from the same Buddy tend to do the same.
    I have not tried it with chats from different Buddies.
    3:28 PM Thursday; August 23, 2007

  • Finder window keeps opening up and popping up in front of all windows

    Every minute or so a finder window opens and pops up in front of all open window - including the window I am working in (no matter which application). It does not even open to my regular finder - it opens to a sub folder that is on the sidebar as a shortcut. Might have started after security update that was not necessarily completed because after 6 hours I tried to cancel, then force quit, it wouldn't work, so I forced the computer to restart.

    Hi Basie & welcome to the forums!
    We should start with these...
    Have you done these two lately...
    Using Disk Utility in Mac OS X 10.4.3 or later to verify or repair disks...
    http://docs.info.apple.com/article.html?artnum=302672
    About Disk Utility's Repair Disk Permissions feature...
    http://docs.info.apple.com/article.html?artnum=25751
    Reboot afterwards.

  • Displaying JDialog box in front of all windows

    Hi guys,
    I am trying to display a Dialog box with some error message.
    I did it using the following code
    import java.awt.*;
    import javax.swing.*;
    public class JDialog_test {
         public static void main(String args[])
              Frame oframe=new Frame("JDialog Error Message");
              JDialog odialog=new JDialog(oframe,"Praveen",true);
              odialog.setModal(true);
              System.out.println("the modal is set as "+odialog.isModal());
              //odialog.setAlwaysOnTop(true);
              odialog.setVisible(true);
              System.out.println("In displayable is set as "+odialog.isDisplayable());
              odialog.toFront();
    When i run the above code, a dialog box is created successfully.
    But the problem is the dialog box is not displayed in front of all screens.
    Also the dialog box disappears when i open another window.
    Now what i require is???
    ->the dialog box should be displayed on top of all the windows
    ->as long as the dialog box is not closed , i should not be able to access other windows
    Please don put the setModal() method as solution, it isnt working.
    Also i want the solution to be compatible with only java 1.4 compiler.
    Please get back with solutions.

    import java.awt.Dimension;
    import javax.swing.*;
    public class JDialog_test {
         public static void main(String args[])
              JFrame jframe=new JFrame("JFrame");
              jframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              jframe.setVisible(true);
              jframe.setSize(new Dimension(200,300));
              JDialog jdialog=new JDialog(jframe,"JDialog",true);
              jdialog.setModal(true);
              jdialog.setSize(new Dimension(100,200));
              jframe.setVisible(true);
              jdialog.setAlwaysOnTop(true); //<-- here's the trick..
              jdialog.setModal(true);
              jdialog.setVisible(true);
              jdialog.toFront();
    }

  • JFrame close all windows and send to front

    2 JFrame questions:
    1. Is there a way to keep JFrames above all other windows? For example, if a frame was on the screen and Internet Explorer opened, the frame would stay on top of the Internet Explorer window and would still be on the screen.
    2. is there a command to close all JFrames? I have a loop that creates a new frame each time it runs. How can I say close all Boxes when the exit choice is selected?
    if (x = 1)
    JFrame frame = new JFrame ();
    Box.getContentPane ().add (new JLabel (new ImageIcon (Toolkit.getDefaultToolkit ().getImage ("Image1.gif")))); Box.setUndecorated (true);
    Box.pack (); //prepares the image
    Box.setLocation (NextPlace, 0);
    NextPlace = NextPlace + 17;
    Box.setVisible (true);
    }

    I figured it out:
    System.exit (0);
    anyway thanks for your help.
    what about the other question?
    does anyone know if there is a send to front command
    so that the JFrame is above all the other windows?System.exit(0); will close the program. But if you just want to close windows this won't work.
    Instead you can use this:
    int iterator;
         Frame[] frame = JFrame.getFrames();
              for(iterator = 0; iterator < frame.length; iterator++){
                        frame[iterator].dispose();
    This will get all windows and close them.
    Also you must add this: import java.awt.Frame;

  • Missing Feature in Lion: Expose for all Windows

    Hello!
    I've written a feedback to apple, that says it all:
    =================================================
    Since Mac OS X 10.7 (Lion) there was one Feature removed,
    which was a very important time saver for me:
    Expose for all Windows
    I'm missing this feature very much. In Mission Control you only see one window completly of every app, the other window are hidden behind. You can't entirely see, what is in that windows behind. There isn't a text Info when you float the mouse pointer over the window.
    In Mac OS X 10.6. (Snow Leopard) I loved this time saving feature. I would be so happy and grateful, if this feature were to resurface in Mac OS X 10.8. (Mountain Lion).
    Please let "Expose all Windows" return! :-)
    =================================================
    What do you think about it? Should / Could Expose return in the next Mac OS X? (I hope so)
    Greetings from Germany,
    Matthias B.

    Hello Rysz and Captfred!
    Rysz:
    I already have send this to Apple feedback.
    Captfred:
    There are two problems:
    1. I want to see all windows of all applications at once.
    2. Even the windows seperate a little bit, there are (even with only three Windows) most parts of the windows hidden because of the front window shown.
    Greetings,
    Matthias B.

  • How do I open with one click all the windows that I have been minimized? When I right click on the lower bar Firefox icon, I only see the option to close all windows.

    It is used to be that I could right click on the Firefox icon on the toolbar at the bottom of the screen and I would then be given the option to open all windows. Now I only see the option to close all windows. The ability to open all windows is very useful. Have you eliminated this capability? It was a very helpful feature because I often have more than 15 windows minimized at one time. On a regular basis I like to open them all and keep only the ones that I still need. I know that it is possible to see the name of each window that is minimized by moving my cursor over the Firefox icon, but this does not provide enough information. So I have to open each window one at a time to look at it and then decide to close it or keep it - this is a frustrating, time-consuming process. Is there another way to open all the minimized windows at the same time, instead of one at a time?

    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    You can retrieve the certificate and check details like who issued certificates and expiration dates of certificates.
    * Click the link at the bottom of the error page: "I Understand the Risks"
    Let Firefox retrieve the certificate: "Add Exception" -> "Get Certificate".
    * Click the "View..." button and inspect the certificate and check who is the issuer.
    You can see more Details like intermediate certificates that are used in the Details pane.

  • All windows/tabs aren't opening from last session, even with setting checked. What's wrong?

    For a while now in Safari, if I have to close out the browser or restart my Mac for some reason, my previous tabs in Safari are not loading when I re-open Safari. I went online this week and did a change in Settings to where it would open up the option again in Safari to allow me to check "Reopen windows from last session", however, even with this selected, it did not re-open my tabs just now. This is such an unnecessary frustration and hassle. Can anyone please help?
    Oh, and the "Reopen last closed session" and "Reopen all windows from last session" is grayed out and unelectable if I try to bring them back that way in History.

    Thank you Linc! I did do what you suggested, and it did work.
    I noticed though (because I tried to close/re-open Safari several times to make sure it would consistently load my previous pages, that when I close the window but not the program) that I can "restore my previous session" or "last closed session" under the History menu if I merely close the window, but not the app/program although it doesn't automatically reload them; but, if I close the whole Safari app/program, when I re-open Safari it does reload all of my pages. I guess I'm writing that in case it helps someone else, but it can be confusing, and may be where my issue originally started.
    Okay, another thing is, when I look in Safari preferences now (after your suggested changes), Safari doesn't give me the option of "Open new windows with previous session". Does that matter, I guess, if my previous pages/session are/is loading? It doesn't seem to make sense that that preference is missing in Safari now, but my pages reload. Just some musings. No rush to reply. I'm new to Mac, but I do like to understand how things work.
    Thanks again!

  • How do I set Safari to prompt before closing multiple tabs OR reopen all of the closed tabs when when I relaunch the application?  The "Reopen all windows from last session" is unselectable.

    How do I set Safari to prompt before closing multiple tabs OR reopen all of the closed tabs when when I relaunch the application?  The "Reopen all windows from last session" is unselectable.

    It would seem if your choose "Show my windows and tabs from last time" '''''and''''',
    *when you last closed Firefox, you had no web site open (just a blank tab), that it would open just that blank tab
    *when you last closed Firefox, you had one or more tabs/web site open, that would allow you to "Restore Previous Session"
    #Have you tried that?
    #If so, what is happening in each circumstance when you reopen Firefox?
    '''Restore Previous Session'''<br />
    Open tabs are automatically saved when closing Firefox beginning in Firefox 4. To open your last session, after Firefox starts, click History > Restore Previous Session. For this to work
    #You must be remembering history (Options > Privacy > Remember my browsing history).
    #*See [https://support.mozilla.com/en-US/kb/Options%20window%20-%20Privacy%20panel Options window-Privacy panel]
    #You must not be using Private Browsing or permanent Private Browsing
    #*See [https://support.mozilla.com/en-US/kb/Private%20Browsing Private Browsing]
    #You must not use Clear Recent History or Clear history when Firefox closes
    #*See [https://support.mozilla.com/en-US/kb/Clear%20Recent%20History Clear Recent History]
    #*See [https://support.mozilla.com/en-US/kb/Options%20window%20-%20Privacy%20panel Options window-Privacy panel]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]

  • Safari 5.1.2 opens two of every window when selecting "Reopen all windows from last session" since the latest update.

    Since the latest Saffari update to 5.1.2, every time I close Safari and reopen, and select "Reopen all windows from last session," two of every window opens.  I must go through a long list under the 'Window' menu and select one of eac pair and close them.  What a hassle. 
    Has anyone experienced this as well, and is there a fix? 

    is there a fix?
    Disable Resume...
    How To Disable Lion's 'Resume' Feature - MacRumors.com

  • Location of File Containing Data for "reopen all windows from last session"

    I'm a heavy-duty Safari user and usually keep 100+ tabs and windows open, carefully invoking the command "reopen all windows from last session" each time I restart. Unfortunately, I screwed up today and started and quit Safari without invoking "reopen all windows from last session," and all of my open tabs and windows are gone.
    I can recover the tabs manually using my history listings, but there must be an easier way: the information about the last session has to be stored somewhere. I did a Deja Vu backup on Friday and today I copied the files /~user/Library/Preferences/com.apple.Safari.plist and all the files from /~user/Library/Safari, including HistoryIndex.sk, History.plist, and LastSession.plist, from my backup to my hard drive, but the result was unchanged (that is, my 100+ tabs and windows were nowhere to be found).
    Given the time it takes for Safari to shut down, I assume it's storing a large history file somewhere, if only I knew where. Does anybody out there know or could otherwise help my recover from my stupidity?
    Thanks in advance.
    -- Kevin
    (proud Mac user for 23 years)

    I found a work-around. Since I frequently quit Safari and "reopen all windows from last session" upon restart, my history reflects all of the open tabs and windows contiguously. I thus reloaded the history file, invoked the command "History --> Show All History," found the most recent such contiguous history listing, shift-clicked and selected all relevant listings, and then double-clicked. All of my formerly open tabs and windows were reopened in tabs within a single window. I had to go back and rearrange things but it was far simpler than manually reopening all of those tabs and windows.
    -- Kevin

  • Flash Player Update disables "restore all windows from last session" in Safari on Mac

    I am on Mac OS 10.9.5, using safari 7.1.2.  Adobe Flash Player Update loses all safari windows when after update the installer automatically opens safari and just opens flash player website; the "restore all windows from last session" is grayed out in history. The "reopen last closed window" is also grayed out. It has been happening ever since and happened again when I just installed Flash Player ver 16.0.0.257.
    For all other normal working situation I can close safari and reopen and see that I can "restore all windows from last session" and there is no problem.  But on flash Player install (set on manual install), the problem is annoying and costs me a lot of time to restore one by one from history.  I do not think this is a Mac or a Safari issue, but will update to Mac Yosemite help if Adobe Flash Player is updated differently in that setup?
    Please help.

    Update: I called adobe flash player technical support phone number 1 877-587-1877.  They want $59 (warranty only 6 months) to fix this problem as they use a third party to solve this issue; they themselves provide no support.  Or buy the paid version.  They insist it is my network issue which I absolutely can not believe.
    It is adobe Flash player update that forces reopening of safari and wracks the safari losing all windows from last session. That is not my network.  Adobe does not have a proper safari compatible flash player update.
    Besides, this is a known problem at Adobe and they are not fixing it and want money to fix it one person at a time!  They also shared that 25% to 30% of the installations have this problem... wow!! and they still will not fix it in a general update!  I wonder if safari has a plug in update that can fix this?

  • Lost Preference: "(Automatically) Reopen all windows from last session"

    I was delighted that Safari, under TIGER, finally offered a preference option such that all windows open last session would automatically open when Safari re-starts. This preference seems to be missing under LION. Now I'm back to using the drag-down command "History/Reopen..." every time I restart Safari or my Mac.
    Anyone know of a LION workaround?
    Keith, on Dec1, 2011

    Thanks Carolyn... for the "reminder."
    Ironically, I had read one of your earlier postings to this type of query... and your good advice led me into trouble!
    Since my first re-boot after installing Lion had led to a loss of open Safari windows (for no apparent reason), I ended up misunderstanding your post. After reading your tip, I went into SysPrefs and DISABLED the resume feature... It seemed backwards... but I gave it a try
    Go figure, Resume didn't happen when I restarted my Mac... so I posted this thread, asking if anyone had any other ideas
    You were kind enough to point me back to that SysPreference... and voila... with Resume pref CHECKED the mac performs as we'd like... all my windows (re-)open as Resume is designed.
    I have no idea why it didn't work on my first trial... but it's working just fine now!
    Thanks for pointing me back in the right direction
    Keith

  • How to delete "Reopen All Windows From Last Session" in History?

    I use 5.0.4 in 'Private Browsing', but the above mentioned pull down choice in 'History' still remains active, and leaves my history visible for prying eyes.
    Where is the cache for "Reopen All Windows From Last Session" located? I could not find it in Safari Library. Or is there another way to manually or automatically delete the contents of this file?
    Thanks,
    PP

    Hi,
    Go to ~/Library/Safari. (Tilde) character represents the Home folder)
    Move the LastSession.plist file to the Trash.
    Check Safari / Preferences - Extensions. If you have any installed, turn that off, relaunch Safari. Try Private Browsing. You may have an Extension that's causing the problem.
    I don't know of any way to "auto" delete the .plist file but someone else might know of a Terminal command.
    Carolyn

  • Safari 5 - Lost Reopen all windows from last session

    Do you know, how to make "Reopen all windows from last session" work in Safari 5? I dont have this option in History…
    http://tinypic.com/r/2m6lwfb/6

    I have same issue and here is the solution.
    Suppose you installed SafariStand plug-in, remove "SafariStand.bundle" from your /Library/Application support/SIMBL/Plugins or ~/Library/App....
    I think it makes reopen function doesn't work, however, I still leave that file bcz Toggle Sidebar function is awesome.
    Message was edited by: JSKER

Maybe you are looking for