JWindow Full Screen

I created a splash screen with a JWindow so that the user can't close it while it's being displayed. Here is my code:
     GraphicsEnvironment ge = GraphicsEnvironment.
        getLocalGraphicsEnvironment();
        GraphicsDevice gs = ge.getDefaultScreenDevice();
     JPanel panel = (JPanel)window.getContentPane();
     panel.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
     panel.setBackground(Color.black);
     if (show)
          JProgressBar progressBar = new JProgressBar(JProgressBar.HORIZONTAL);
          progressBar.setIndeterminate(true);
          progressBar.setForeground(Color.blue);
          panel.setLayout(new BorderLayout());
          panel.add(new JLabel(new ImageIcon("marstotal.gif")), BorderLayout.NORTH);
          panel.add(progressBar, BorderLayout.SOUTH);
          gs.setFullScreenWindow(window);
          window.pack();
          window.show();
          mainMenu();
     }My code works full screen in Windows XP, but does not work in Linux or Windows 98,ME, or 2000. Anyone know how to fix this? OR how I can restructure my code so that it will work on all operating systems?

Thanx guys. I finally got my window (although now it's an undecorated JFrame) to get focus. Well, kinda. It says it has focus. However, whenever I press a key, it doesn't fire a KeyEvent. My class implements a KeyListener interface. I defined all the methods (obviously, otherwise it wouldn't compile). In each of the KeyListener methods, I put System.out.println ("Whatever method reached."). It doesn't print anything out, although the window has focus and I'm pressing like a thousand buttons.

Similar Messages

  • Full Screen Window on second screen minimizes when windows explorer opens..

    I did implement a full screen window on my second screen (it's a feature needed by my application)
    When I open windows explorer (I'm on windows XP), or when I click in a windows explorer window, the second screen window is minimized, even if explorer pops in the first screen.
    Is there any way to overcome this problem?
    Any help would be appreciated...
    Laurent
    (sample code below)
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JWindow;
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.awt.GraphicsDevice;
    import java.awt.GraphicsEnvironment;
    import java.awt.Window;
    import javax.swing.JButton;
    import javax.swing.JToggleButton;
    import java.awt.Rectangle;
    import java.awt.GridBagLayout;
    import javax.swing.JLabel;
    public class FullScreenTest {
         private JFrame jFrame = null;  //  @jve:decl-index=0:visual-constraint="94,35"
         private JPanel jContentPane = null;
         private JToggleButton jToggleButton = null;
         private JPanel jFSPanel = null;  //  @jve:decl-index=0:visual-constraint="392,37"
         private JLabel jLabel = null;
         private Window window;
          * This method initializes jFrame     
          * @return javax.swing.JFrame     
         private JFrame getJFrame() {
              if (jFrame == null) {
                   jFrame = new JFrame();
                   jFrame.setSize(new Dimension(474, 105));
                   jFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                   jFrame.setContentPane(getJContentPane());
              return jFrame;
          * This method initializes jContentPane     
          * @return javax.swing.JPanel     
         private JPanel getJContentPane() {
              if (jContentPane == null) {
                   jContentPane = new JPanel();
                   jContentPane.setLayout(null);
                   jContentPane.add(getJToggleButton(), null);
              return jContentPane;
          * This method initializes jToggleButton     
          * @return javax.swing.JToggleButton     
         private JToggleButton getJToggleButton() {
              if (jToggleButton == null) {
                   jToggleButton = new JToggleButton();
                   jToggleButton.setBounds(new Rectangle(50, 23, 360, 28));
                   jToggleButton.setText("Show Full Screen Window on 2nd screen");
                   jToggleButton.addActionListener(new java.awt.event.ActionListener() {
                        public void actionPerformed(java.awt.event.ActionEvent e) {
                             showFullScreenWindow(jToggleButton.isSelected());
              return jToggleButton;
         protected void showFullScreenWindow(boolean b) {
              if(window==null){
                   window = initFullScreenWindow();
              window.setVisible(b);
         private Window initFullScreenWindow() {
              GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
              GraphicsDevice[] gds = ge.getScreenDevices();
              GraphicsDevice gd = gds[1];
              JWindow window = new JWindow(gd.getDefaultConfiguration());
              window.setContentPane(getJFSPanel());
              gd.setFullScreenWindow(window);
              return window;
          * This method initializes jFSPanel     
          * @return javax.swing.JPanel     
         private JPanel getJFSPanel() {
              if (jFSPanel == null) {
                   jLabel = new JLabel();
                   jLabel.setBounds(new Rectangle(18, 19, 500, 66));
                   jLabel.setText("Hello ! Now, juste open windows explorer and see what happens...");
                   jFSPanel = new JPanel();
                   jFSPanel.setLayout(null);
                   jFSPanel.setSize(new Dimension(500, 107));
                   jFSPanel.add(jLabel, null);
              return jFSPanel;
          * @param args
         public static void main(String[] args) {
              FullScreenTest me = new FullScreenTest();
              me.getJFrame().setVisible(true);
    }

    I suppose that you have this exception when the second window is initiated...
    Excuse my remark, it may be perfectly stupid : do you have two screens? The full screen window is supposed to show itself on the user's second screen.
    Or maybe the screens are not handled the same way on each computer? (I'm not used at developping applications working on two screens...)
    thanks for your help
    LK

  • Drawing Over Full Screen Applications

    Hi,
    I am trying to create an application that will flash vocab at me while I am gaming, in the hope that I may learn it with minimal effort...
    As I play guild wars a lot, I was wondering whether there would be a way for the program to display its output over guild-wars, without guild wars losing the focus, similar to the way it is done in the xfire chat client.
    Currently the output consists of two JLabels in a JWindow.
    I would post code, but as my problem is more an abstract one I doubt that would be to any avail.
    I have read about drawing directly to screen - active rendering etc, and am not sure whether any of this would be applicable.
    Thanks in advance for any help.

    If the other app is a full-screen exclusive application, there's basically no way.
    Even if not, you can not make a truly transparent window in Java (yet), so you can't place it on top of another app and make the latter visible and accessible to events.
    Dmitri

  • Can not properly view cover flow in full screen in external display

    My mac is the new Mac book pro 15.4 inch screen and I connect my mac pro to external display e.g. Samsung LCD monitor 24 inches.
    The bug is that I can not PROPERLY view full screen (in external display) for some application e.g. iTunes, and Front Row.
    - When I use iTunes, I can not properly view Cover Flow view in full screen (in the external display screen) except the case of mirror display.
    - For Front Row, I can not view full screen in external display but only my mac display.
    However, for other DVD or VDO players, I can view movie on external display in full screen and I still be able to do other works on my mac screen.
    Please let me know how to solve it.

    found the likely issue!  are you participating in youtube's html5 trial?  go here and it will tell you if you are:
    http://www.youtube.com/html5
    exit the trial and it should fix the issue.  it worked for me!

  • Who do I complain to regarding an Apple iPhone upgrade that has taken my my full screen contact picture and turned it into a tiny circle that is hard to see at a glance!!!

    I'm trying to find an outlet for the frustration I feel regarding the "upgrade" that replaced my full screen picture for my contact numbers to a tiny, little dot in the right hand corner.  Are they going to give us an option to go back or did someone  just need to justify their job by making  changes??

    Apple.com/feedback

  • How can i print an Excel file when in the full screen mode (no print options on toolbar or right clk

    using Vista, sometimes after creating and saving an excel file, the document is not visible when the file is reopened.
    selecting full screen mode makes the document visible, but the toolbars disappear and the print option does not show up on a right click.  How can i print the document and see the document in some other mode than full screen?

    In order to print, you can click the CTRL+P keys to launch the print dialog,
    Regarding the missing toolbar, try clicking the ALT key to shouw the software menu, then look around under the view option for any available toolbar settings,
    If you cannot find it, i would recommend you to try the Microsoft support forums, as they have some more knowledge with their software features
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Any ideas for smooth scrolling of full-screen panels for iPad?

    I'm working on an app that is basically just a grid of full screen panels that the user can go through by swiping left, right, up, down. I want it to lock to a singled direction once a user starts swiping so I've got it set to only start scrolling in a direction when the swipe direction has been moved by a few percent - i.e. if delta (x or y) > 5% and delta x > delta y then scroll in the x direction. I'm using a method that detects 'fast swipes' to switch between panels but can also use 'slow swipes' where if the panel is moved more than 50% of the screen then it switches.
    To do all this, I'm using MouseEvents - up, down, enter frame etc and TweenLite. It just isn't working right at the moment - seems to work fine when testing on a computer but on my iPad it's just not working right. The locking doesn't seem to work quite right and it's jumpy. It is an iPad 3 so it's a retina display iPad with the weakest CPU/GPU but I want to make it work fine across all iPads so catering for the weakest setup would be best. I'm running my app at 60 fps and the stage is set to 1024x768 with images that are quite high resolution (more than retina). Would 30 fps make a better choice? Should I resize my imagery so that it fits 2048x1536 exactly or is the Flash Builder clever enough to do that on the fly? (I had assumed that it would be best to let it do its thing so that when I try porting this app to iPhones and other tablets, it would be easier).
    Is there anything 'out there' already that does what I'm trying to do already? I'd like to get my solution to work but if I'm just reinventing the wheel and there are existing code solutions that do exactly this then I'd appreciate being pointed in the right direction!

    If you are using a stage size of 1024x768 then you should use images of that size - that will make things faster as AIR won't have to scale the bitmap itself and images will take up less memory.
    If you are targeting retina screens then you could consider setting the stage to 2048x1536 - upscaling from 1024x768 works ok but depending on what you are displaying users on retina might notice a slight blur. 
    If you are just using sprites then performance will be poor - AIR has to do a lot of visible area calculation on sprites which really slows it down on iPad.  If you haven't already then I would suggest looking at either starling/feathers or doing your own blitting via bitmapData.draw.  Probably Starling will be best - it is quite easy to get up and running and the difference in performance can be significant (things suddenly start working like you want them to!).  There might even be something in Feathers (which is a UI component library built on Starling) that does what you want already (I don't use it so can't comment).  I am using Starling for an iPad app at the moment that involves shifting whole screens around and performance is fine with very little coding effort from iPad1 up.

  • Reader and Windows 8.1 FULL SCREEN?

    Is there a way to view a document in Reader and Windows 8.1 other than on FULL SCREEN.  In previous versions, I could look at a.pdf file while working on another file on my computer screen.  This allowed me to get info from the .pdf file and input into the other program.

    It might  be that you're viewing with an app written to Microsoft's new and exciting "modern" interface which is always full screen. Apparently it's much better and more exciting.
    Microsoft Reader comes with Windows 8 and runs that way. Adobe also offer "Adobe Reader Touch" which runs that way.
    Some of us old dinosaurs who think it might be neat to arrange multiple apps so we can do more than one thing at once like to run the "legacy" apps like Adobe Reader.

  • Full-screen (spacebar) preview quality testing

    [For background story, please read http://forums.adobe.com/thread/1056763 but be warned, it's very l-o-n-g!]
    In brief: some people have noted that Bridge full-screen (spacebar) previews (FSPs) don't accurately reflect the sharpness of a photograph. Sometimes this can be explained by individual configuration problems, but it's clear that this is a common issue amongst people using Bridge to assess/score photograph sharpness, without having to build/examine 100% previews for every image.
    [It's worth noting that one common reason why FSPs aren't very sharp is because the Bridge advanced preference "Generate Monitor-Size Previews" hasn't been ticked, as this produces a higher resolution image cache.  Another cause of very fuzzy previews is random and unexplained, but can usually be solved by restarting Bridge and/or clearing the cache for the selection.]
    This discussion concerns the lack of sharpness seen only in FSPs.  It can be described as "a subtle but significant loss of detail and sharpness, similar to a slightly out of focus photograph"; imagine a photo with a little bit of blur filter, or a Photoshop PSD at a non-standard zoom setting.  This "softening" of the image is caused by Bridge asking the graphics processor to resize the image cache to fit the display.  If you select the Bridge advanced preference "Use Software Rendering", you can improve a poor FSP slightly, at the expense of speed, by bypassing the graphics processor.
    The test
    Visit this web page and download the last image ("2362x3543 pixel, 4.5 Mb") to your computer.
    Browse to this image in Bridge, and view it full-screen by pressing Spacebar.  Take a screen capture, and save it as a TIFF or PSD.
    Adjust your slideshow settings (Ctrl/Cmd-Shift-L), picking "Scaled to Fill", then click on "Play".  Save the screen capture, as above.
    You now have two screen captures: one FSP, and one cache JPEG reference shot.  Examine them side by side at 100%, or layer them in Photoshop and use the hide layer button to flick between images.  Pay particular attention to the two left-hand photos, the sharpness check text, and the converging lines.
    Make a note of your computer's operating system, graphics processor and driver version, as well as your largest display's pixel dimensions.
    Post this information below, together with high quality (10) JPEGs of both screen captures, labelled FSP and REF, and any observations, so we can all see.

    OK, it usually takes me a while to let the penny drop, especially when it comes to maths...
    I also am busy with the transition of my new Mac pro but with al this here are my results. I include several screenshots but due to upload limit of 2 MB per image in here I downsized the original screenshots a lot, but hopefully it will be clear.
    For full screen screenshots I have the asked FSP and REF but also the 100% preview in Bridge with space bar and click. Don't know what your file size is but using EOS 1Dx with 18 MP CR2 files (converted to DNG) it does take me about 1,5 - 2 seconds for both loupe and FSP to build a 100 % preview, and I seem to recall this was not very different behavior on my previous (6 year old) Mac Pro.
    You are right (of course... :-) ) regarding the difference between FSP and REF, when studying closely there is a significant detail difference between the FSP and the REF. However, only the 100 % preview matches the original jpeg. The FSP file is on closer look not so good with details but the REF file is only slightly better, both are not correct and therefor the 100 % is still needed.
    Here is the FSP screenshot:
    and here the REF screenshot:
    also the 100 % preview in full screen screenshot:
    and finally a composed file with details from original, 100 % REF and FSP:
    As said before, at first sight I can't spot significant difference between all options and the full screen (as the preview panel HQ preview) let's me spot the vast majority of unsharpness issues, hence my multiple rounds of sorting and incases of doubt the 100 % option.
    So while your theory is correct I'm afraid I  (still) doubt the usefulness of this all. If neither the FSP and the REF (although the latter does show a bit better result) can match the results of the original but the 100 % does it well I don't see an easy solution for improvement.
    I agree with the quality from the screenshots Curt provided, but Curt also uses the embedded thumbnail instead of HQ preview option. Depending on his needs and hard ware availability it would be nice to see new results with the HQ and monitor sized previews options enabled.
    regards
    Omke

  • Bridge - How to view image in full screen resolution

    In Bridge - How to view an image in full screen resolution and not as a Preview (Space bar), like in Lightroom (F), Photoshop or ViewNX 2 ?

    The size of the Bridge Preview window will always be the absolute limit of the image display in Bridge.  Maybe I am not following you.  Sorry

  • Hi, after installing Adobe CC I tried opening Adobe Photoshop. This failed. I get the opening window where it says installing plugins searching etc, after which PS opens in full screen. Just moments after that there's a fail warning, no code number, only

    Hi, after installing Adobe CC I tried opening Adobe Photoshop. This failed.
    I get the opening window where it says installing plugins searching etc, after which PS opens in full screen.
    Just moments after that there's a failure warning, no code number, only the warning that PS failed to open and PS will close.
    I tried downloading it for a second time, but this did'nt solve the problem.
    Befor the CC version I used a one year student version of Adobe CS6.
    What can I do?

    Regarding the Flash Player problem, disable Hardware Acceleration to circumvent driver incompatibilities.
    Regarding the Flash Pro installation problems, post in the Flash forums or http://forums.adobe.com/community/download_install_setup

  • Satellite A300-20P - Games with Windows 7 not working in full screen

    I have Satellite A300-20P and VGA ATI 3650
    I made upgrade to Windows 7 Professional
    All games working well but not in full screen. I installed the last driver for ATI for Windows 7. It was working in full screen in Vista before I make upgrade.
    Same problem on my brother`s laptop after he make upgrade to Windows 7.

    Hi
    Normally you can change the screen resolution in every game and if they should run in full screen mode or not. Check this!!!
    Can you also tell us what display driver you have installed? The drivers from the Toshiba page are for desktop cards and not for mobile cards. So please use only the Toshiba drivers.

  • Can´t view photos in full screen after loading photos to dropbox? what to do?, can´t view photos in full screen after loading photos to dropbox? what to do?

    after loading photos to dropbox i can´t view them in full screen in iphoto ... i can only view them small ... when i click on them this sign "!" appears... do you know how to fix this????

    If you're loading photos to drop box why do you expect to see them in iPhoto?
    The ! turns up when iPhoto loses the connection between the thumbnail in the iPhoto Window and the file it represents.
    Remember: we cannot see your machine. There are 9 different versions of iPhoto and they run on 8 different versions of the Operating System. The tricks and tips for dealing with issues vary depending on the version of iPhoto and the version of the OS.  So to get help you need to give as much information as you can. Basic things like :
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. As full a description of the problem as you can. For instance: 'iPhoto won't export' is best explained by describing how you are trying to export, and so on.
    - History: Is this going on long? Has anything been installed or deleted?
    - Are there error messages?
    - What steps have you tried already to solve the issue.
    - Anything unusual about your set up? Or how you use iPhoto?
    Anything else you can think of that might help someone understand the problem you have.

  • Mac OS 9.2 Not in full screen

    Hi,
    I just bought iBook G3 800Mgz from ebay, to run Mac OS 9 with old apps to open some old documents.
    However, the iBook G3 work prefect with Mac OS 9.2.2 & Mac OS 10.4.11 ..
    just one problem that Mac OS 9 doesn't run in full screen !!
    I prefer to startup from full OS 9 rather than running as a classic sys under Tiger or Jaguar OS, ..
    When I startup from OS 9, the startup operation work normally full screen with Mac OS 9 logo window appear for 2 second, then the screen becomes small during the startup processing, and the OS 9 continue complete the startup with the same size.
    After several trailing to solve the issue but without effects, I discover where is the problem but can not fix it .. the problem with OS 9 feeling there are external monitor so it gives for that monitor full 1024x768, and on iBook screen 640x480 .. I found this on control strip with monitor control panel, also when I run the monitor control panel it's give me two windows, a window for each display !!
    The picture below explain more with I mean .. OS 9 desktop with half size of screen and center of the display.
    it's exactly same thing happen when you connect your mac with projector, even your screen support until 1280x800 for example, but the projector just 800x600, you will see your desktop on your laptop decrease with a large black frame ..
    Now, with all my discretion, I didn't figure out where is the problem that push my iBook feel there is another monitor .. I tried remove some extensions and reset prm but no effect.
    Please help and Thanks in Advance.

    Hi, asulaiti -
    Now I figure out what's the problem, I tried to remove Display Preferences & Monitors Preferences files. But nothing change.
    I thought that would probably not help. The problem is with some of the specific files (probably extensions) that are needed by the hardware on your iBook G3 - the ones you have are intended to support different hardware, hardware that is specific to the other model.
    You will need to replace the applicable files with ones compatible with your machine. Two ways to do this -
    • Locate someone who can furnish you with copies of those files. I don't know for sure, but I suspect they would include all extensions whose name starts with ATI.
    • Re-install the OS 9.2.2, using an original disk set intended for your model. As I mentioned previously, this may be difficult to find. A retail (or universal) OS 9.2.2 Install CD was never released; the only install CDs for OS 9.2.2 are model-specific ones.
    As far as sources go, you might check with an Apple User Group - most large cities and universities have one. This Apple support page may help in that regard -
    http://www.apple.com/usergroups/
    You may be able to find an appropriate disk set on places like eBay, but chances of doing so are slim - and you need to be careful that you get what you need.
    You might also check back with the seller of that machine - ask them for the original disk set for it (that disk set really belongs with the machine).

  • I've customized my Firefox in full screen mode by clicking on full screen option. Now I'm not getting it back in normal mode even after restarting firefox and even restarting my system. How could I get it back in normal display mode? Thanks !

    not able to come back to normal view mode from full screen view mode....

    yeah it worked.... Thanks... :)

Maybe you are looking for

  • How do i make my notebook wireless

    I tried to use a wireless router and they said there is a button on my Notebook that I have to slide over to go to wirelss, but I can't find it.

  • Using xpath.evaluate(): xpath exp with multiple namespaces

    Hi, I have to evaluate a xpath expression with parent node and child node having different namespaces. Like : env:parent/mig:child. I have set the namespacecontext for the child node[i.e., for the prefix 'mig'.] But am getting this error : javax.xml.

  • Kodo 4.0.0 Early Access 1 Now Available

    Kodo 4 Early Access 1 is now available at http://solarmetric.com/kodo/beta/4.0.0EA1/ . You can find release notes at http://solarmetric.com/kodo/Documentation/4.0.0EA1/docs/full/html/relnotes.html Kodo 4 EA1 includes support for the majority of the J

  • Model View Control

    Hi.. i need some help when designing the view part of my application. My main problem is that sometimes i do not know how to separate the control code from the one needed in the view part.For example, if I have some componentes(implementes mouse moti

  • Toplink 10.1.3.0 to EclipseLink

    We are currently using TopLink 10.1.3 and want to migrate to EclipseLink. I referred to the link http://wiki.eclipse.org/EclipseLink/Examples/MigratingFromOracleTopLink but the link for deprecated APIs on the page "Oracle TopLink API Modification Gui