Maximized JFrame obscuring task bar

I have an application that obscures the windows taskbar when it is maximized (using the JFrame's own maximize button - NOT programmatically). The same happens when this.setExtendedState(JFrame.MAXIMIZED_BOTH) is called.
J2SE 1.4.0 in windows 2000 is the environment (from what have read, maximize should work well in 1.4). I can create a brand new JFrame and mostly it works - is there some undocumented property that is causing it to maximize to the fullscreen instead of the usable screen?
Thanks in advance.

I was hoping that there was a way that made sure the JVM itself would do it (it works most of the time) - such a simple but important thing to end users should NOT require JNI code. Maximising on at least windows and macintosh (and most linux flavours) is pretty well defined - anyone that says it is a platform specific feature is just wrong - it can apply to any GUI system at least in some form.

Similar Messages

  • Maximized decorated JFrame covers task bar on WinXP. How to avoid?

    Hello,
    I have found that decorated JFrame covers task bar on Win XP and jdk 1.5 when maximized. I see this problem affects many users. It is annoying for most users of my applications to change window size before accessing task bar. So I have to avoid decorations, inspite the fact that I really like how decorated windows look like.
    I have read forum topic which discussed the same problem (http://forum.java.sun.com/thread.jspa?forumID=57&threadID=709917), but it contains no solution.
    Here is sample code to reproduce the problem:
    import java.awt.Dimension;
    import javax.swing.JFrame;
    public class Test extends JFrame {
         public Test() {}
         public static void main(String[] args) {
              JFrame.setDefaultLookAndFeelDecorated(true);
              Test frame = new Test();
              frame.setPreferredSize(new Dimension(200,200));
              frame.pack();
              frame.setVisible(true);
    }Run it on Win XP and click maximize button. You will see that maximized window covers task bar.
    Am I doing something wrong? Maybe it is possible somehow to correct this behaviour programmatically or at least any workaround exists?
    Regards,
    Roman

    Solved the problem finally. It seems I have not read previous forum topic (http://forum.java.sun.com/thread.jspa?forumID=57&threadID=709917) with enough attention.
    For thouse who are interested solution is following:
    import java.awt.Dimension;
    import java.awt.GraphicsEnvironment;
    import javax.swing.JFrame;
    public class Test extends JFrame {
         public Test() {}
         public static void main(String[] args) {
              JFrame.setDefaultLookAndFeelDecorated(true);
              Test frame = new Test();
              frame.setPreferredSize(new Dimension(200,200));
              GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();
              frame.setMaximizedBounds(env.getMaximumWindowBounds());
              frame.pack();
              frame.setVisible(true);
    }Regards,
    Roman

  • Hide JFrame in Task Bar

    Is there away to have a JFrame created but have it not show in the windows task bar at the bottom of the sceen?

    No, but you can with a JWindow.

  • Possible to hide JFrame yet show on task bar?

    Hello All,
    Is this possible? I would like to show the JFrame button on the taskbar, but not show the JFrame itself. This is because there is a JDialog to show, but if the user alternates windows, he is liable to lose the JDialog, unless he presses Alt-Tab, which many users may not know about. It would be preferable to have the application showing in the taskbar, but how to do it without showing the JFrame?
    Thank you,
    Linda

    Why not just use a JFrame instead of a JDialog? That way it gets its own spot on the task bar, and it can contain all the same things a dialog can. If you have some special situation that prevents this solution, please elaborate on why you want an invisible main window with a visible dialog.
    Ian

  • Hide the title bar on the task bar of a JFrame

    Hi all,
    I have create a JFrame with some controls and implement the functionality on it. Now I want to make some modification on the JFrame(actually on the GUI)
    On the visible of JFrame I can see a title bar of the GUI on the taskbar of my screen. I want to stop/hide that when the JFrame is visible. How can I possible to do it.
    I used Netbeans and there I've not found such a option.
    Thanks

    hiwa wrote:
    Try setUndecorated(true) call.Actually this only remove the frame title bar. Not the title remove on the task bar. I think I'm clear with my original post.

  • Preventing a JFrame/dialog from showing in the task bar & gaining focus.

    As the (lengthly) title suggested, I would like to know if it is possible to create a JFrame or JDialog that can run (more or less) on its own without appearing in the task bar or gaining focus when setVisible() is called.
    Anyone know how to do this, or have better Google search term to use than the ones I thought up? ;-)

    The point is for it to stay visible (normally) when when it is not hidden (it is hidden for ~1 second to take a screenshot) and then shown again. The problem with this is that the application currently in focus loosees it (which is very annoying when typing...).
    I'm trying to make a 'desktop button' of sorts that just acts as a tray icon when the system tray isn't supported. I put some effort into making it have a transparent background, but by doing that setVisible() is called every 15 seconds or so. (the frame is alwaysOnTop as well), thus the reason that I don't want the focus to be taken.
    As for not showing in the system tray, I don't really need it although it would certainly make the icon better.
    With that said, is there some way to accomplish this?
    Thanks for the quick reply!

  • SAP Signature Design & Task Bar Auto-Hide Feature

    Hi Experts,
      I'm having a problem with SAP Business One 8.8 PL18 using the new 8.8 SAP Signature Design. We are in a business with 4 professionals and 1 CRM. When we use the SAP Signature Design Skin Style and you have SBO maximized on the screen and you have Windows auto-hide the Task bar. You can't go back to the task bar with your mouse to switch applications or to just go to your start menu. The only way you can make the task bar appear is by pressing the "window key" to make the task bar display. To change applications, you can still use the "Alt Tab feature". If I put the Skin Style to Classic Mode, everything works great with no apparent display problems.
    I've tried this on 3 different operating systems. Windows 7, Windows XP and Windows 2003 Server and the same results. The task bar won't re-pop up if you move your mouse down to it (I tried moving the task bar to the left, top or right to see if that made a difference, and it didn't). I've been using the "Window Key" for now to make the task bar pop up (display), but I think it's a bug with the skin style and not the operating system.
      I've tried to get this resolved with our partner, but I don't think they understand the problem, or are just not willing to acknowledge the problem. They probably think it is a petty problem. We all like the new design and would like to use it properly while still having the task bar auto-hide.
    The question actually is, do you know of this problem, is there something I can disable or do to get it to work (ie: make it run with compatibility mode to something) or do I just have to live with this problem?
    I thank you very much in trying or helping me with this problem
    Ron
    IT Manager

    Hi Ron,
    Welcome you post on the forum.
    I don't have the same version to test. Based on your detailed explanation, I do think it is probably a bug. Since it may not be used by many users, it could have low priority to be fixed even if it is confirmed to be a bug.
    Thanks,
    Gordon

  • I can no longer place links to websites in the FF icon on my Windows 7 task bar, as I could with Firefox 4. Is it still possible? task bar since upgrading to Firefox 4. Can it be made possible?

    With FF v.3 I could place links to oft-used websites in the right-click expanded Firefox icon on the task bar. It appears that Firefox v. 4 no longer provides for that feature. Can it be done some other way? Otherwise I have to open my FF homepage and click on a toolbar bookmark for the website.

    >> Did you check what happens if you set the Task bar to be always visible?
    No, because I do not want my Task bar to always be visible. I want it to auto-hide.
    Firefox *is* maximized when this occurs. However, "maximized" window does not mean "cover up task bar", which is what FF is doing. I can maximize any of my other applications and still access the task bar as expected. For those applications, I did not have to hunt for special configuration files or anything else, because they are following what appears to be at the very least a UX best practice for Windows 7.
    I definitely appreciate your taking the time to share the information that you have shared, and I have no doubt that your suggestions work as you have outlined. However, I'm seeking a user experience with FF in which I do not have to treat it differently than other applications in order to view my Windows task bar when its window is maximized. And I can view the taskbar with FF maximized, *sometimes*. Other times, it stops appearing indefinitely, across multiple sessions/shutdowns/etc.
    (FYI, right now, I have FF maximized, and am able to view the Task bar, so I'm not currently experiencing this issue. I do not recall doing anything special to make it work.)
    Again, I appreciate your taking the time to answer, even if it wasn't what I wanted to hear. :)

  • Windows task bar locks when .vi is running

    The Windows task bar locks when the .vi is running.
    How do I enable the windows task bar so I can multi-task when my .vi is running? Is this new with LabVIEW7?

    Thanks Allen, I thought you may have had the answer as I do have a clock function running all the time, but I have a delay in that loop. I figured out what is going wrong. If I maximize the .vi, then the task bar will not function when the .vi is running. So, I did not maximize the .vi, and chose 'Size the front panel to the width and height of the entire screen' on the Window Size category under vi properties, and the task bar now works when the .vi is running. I feel that I should be able to have the front panel maximized, and still use the task bar. I do have 'Always on top' selected in my Start/Settings/Taskbar options. Thanks!

  • Task bar question

    Hi,
    i have developed a program in which the user opens often new windows (new frames)to do different jobs .how can i make the java frames not to show their names in the task bar just like the showOptionPane dialog. when you open such a dialog even when it has a title it will not be shown in the task bar.
    thanx

    Hi pietblok,
    what do you mind with
    Your main JFrame should maintain a reference to those dialogs so that it can reshow them when they are being closed by the user and the user wants them to redisplay.
    do you mind with that, that every time the user clicks over a button(which creates a new window)a new object should be created so a new JDialog and so a new window in the screen?
    thanx for the help

  • Help!  I'm stuck on the Task Bar and I can't get up!

    I recently upgraded to Premiere Elements 8, and now I can start the program but as soon as I open a project the window minimizes to the task bar.  I can not restore the window to show-up on the screen.  The Organizer works OK, and the Adobe startup window show-up OK.  Even the Premiere Elements window will show-up while it's loading a project, but as soon as the project is loaded... it hides down on the task bar.  It was working fine just after I installed it.  It's been a couple of weeks since I ran it last.  I have installed the 8.0.1 update.  What a tease!
    I've attached a couple of images of the program on the task bar just in case this helps.  My system is Window 7 Ultimate.  I have two 24" displays (both working fine), lots of memory and disk space, and it's a Dell XPS 9000 box.
    Please let me know how to coax my beloved Premiere Elements out of hiding!

    Hi Steve -- Thanks for your quick response.  I do have the 64-bit version installed on the C drive as shown in the screen  snippet below. The reference to the D drive in my earlier post was to the Premiere project file, which I dont keep on my system drive.  You've also suggested that I update my video driver, which I confirmed was up to date (as per snapshot below).
    You questions got me poking however, and I think I've found a way to circumvent the problem (which looks ilke a bug to me).  Apparently, the Welcome window always launches the Premiere editor in maximized mode.  When you subsequently open (a new or existing) project, the window resizes to the size that it was when you last used it.  When I was experiencing the problem, this size was "minimized on the task bar forever".
    To get around this, I used the settings menu on the top right of the Welcome window to set the option "Always Launch Premiere Elements Editor behind the Welcome Screen".  This show the editor window maximized, but it allows me to resize the editor window in the normal way, before I open a project.  Now when I subsequently opened a project file, the editor window did not dive into the Task Bar!
    Moreover, on subsequent launches the Welcome window still shows the editor window maximized, but the auto resize after opening a project now uses the size that I manually set in my manual sizing procedure in the above paragraph.  For me it's fixed!!
    Perhaps the context that provokes the bug is that I never set a non-maximized size for the editor, and the auto resize gets confused about the desired size of the editor window?
    -- Thanks, Ole Pa

  • PSE 6: Task bar does not pop up in Editor

    When I move the cursor to the bottom of the screen in the PSE 6 Editor, the task bar does not open. I have to hit the Windows key to do it.
    Work o.k. in the Organizer.
    Windows Vista.
    Any ideas? - Thanks!
    Alexander

    Thats a bug that seems to be fixed in PSE 7. But theres a workaround instead of maximizing the Editor, manually resize it to fill the screen except for a strip of a couple of pixels along the bottom. The Editor will remember its last position when you next open it.

  • Add Jcombo in Task Bar.

    Hi,
    Can anyone tell me how to add JComboBox or JTextField in Windows Taskbar
    for Desktop Search.
    Thanks
    Nicky

    Unless I am very much mistaken (which is not at all uncommon) there's not (at least not an easy way) way to do what you're asking. Reason being that to put something into the Windows task bar requires that you be able to get hold of the Windows hooks that make it a task bar application, and those don't exist in Java.
    I can tell you where in the Swing code you'd have to get hold of it though, and that would be in the JFrame's window listener for being iconified. But I don't know of a way to put it into the TaskBar the way you're describing. What you're asking for is a platform (very platform) specific thing that Sun understandably tries to stay away from.
    PS.

  • How to add the window icon to task bar

    hai,
    i am display one window using jwindow.how can i place that in
    window(os)task bar.plz help me.
    thnks in advance.
    kishore

    Only JFrames in the taskbar. If you are using 1.4, you can use a JFrame and use setUndecorated(). It looks a lot like a JWindow.

  • Hiding the frame in Task Bar Tray

    My Problem is
    When i minimize the frame, i want to position it in the task bar tray.
    (which is on the right side of the task bar where all icons date,volume etc are shown)
    Eg: Suppose if we minimize the yahoo messenger,it will be shown in the task bar tray.
    Thanks
    Varma

    take a look at http://systray.sourceforge.net/
    You have to do the following to hide the frame when it's minimized:
        final JFrame frame = new JFrame("test");
        frame.addWindowListener(new WindowAdapter()
          public void windowIconified(WindowEvent e)
            frame.setVisible(false);
        });use the systray api to create the systray icon and menu, and you're finished

Maybe you are looking for

  • I can only import bookmarks one at a time?

    When I navigate to my favorites folder it only lets me select one at a time? I have hundreds to import. How can I do the whole folder??? Control/select & shift/select won't work to select the list. My old computer was backed up online including favor

  • Re: iTunes for Windows, QuickTime, and Apple Application Support

    This tip is ready for consideration.

  • Update termination error while calling FM in Update task

    Hi Friends, I am calliing my Z Function Module in update task from my report, my function module contain reuse alv list display fm which should create a Spool in the spool list. When ever i am directly executing my Z function module i am getting spoo

  • Best way to load a bunch of drum sounds?

    Hey, all - In the course of getting rid of some older equipment, I've preserved a bunch of drum sounds that I want to continue using; I've recorded them and edited them into separate audio files (about 250). I'll be triggering them from a percussion

  • Web module generator: conditional formatting

    Hi, I'm trying to generate the following behaviour in a web module. There is a status code in the table and I want it to be colored red when status = 'error' and green when status = 'running' else standard color. The item property "Formatting" can't