swing - Java window not maximising properly on screen with no taskbar using Substance LAF -


I have just seen that when I maximize one frame on my second screen - which does not have a taskbar - then it The end is almost an expected limit if the taskbar was.

I have just seen that it has changed to Windows 7. First in Vista, I had a facility to add a taskbar on both screens, so it has been an issue that if this was not the case. I'm pretty sure this is not an issue with some of the window managers in Linux that I tried ...

If I run my program with default LF, then the proper behavior is displayed (Using full horizontal position of the screen) I think stack overflow is not really the best place to enter a substance bug report, but if you can suggest a solution, or It insists that this is actually a bug and helps in identifying the circumstances under which this happens, it will be greatly appreciated. / P>

Edit: I'm just digging through a few source code and I've got some context; OK, now what I'm experiencing, which was fixed at the time (back in 2007) and reports of working properly in XP & amp; With contemporary building (4.1) Vista, I can try to debug relevant bits of code at some point; Looks quite manageable.

/ tumbleweed

I was going to say, if this is only substance laugh To be with, it definitely looks like a bug that you should report ... but I saw your editing before posting. Angry them to decide after 4 years!

In the meantime, only one realistic measure you can try is taking the inside space of the current display and setting that kind of shape. Here are some code that gives the resolution, range and how much useful space on each of your monitors:

  public static zero main throttle exception (GraphicsEnvironment ge = GraphicsEnvironment GetLocalGraphicsEnvironment (); Graphics device [] gds = ge.getScreenDevices (); (Graphics Device GD: GDS) {Graphics Configuration GC = GD.Jet Default Configuration (); System.out.println ("bounce =" + gctets ()); System.out.println ("Insets =" + Toolkit.getDefaultToolkit (). GetScreenInsets (GC)); }}   

Similar to a double-screen Windows setup, it shows the following:

 Bounds = Java.Att.Retengal [x = 0, Y = 0, width = 1280, height = 1024] Insets = java.awt.Insets [top = 0, left = 0, bottom = 30, right = 0] bounces = java.attractengel [x = 1280, y = 0, width = 1280, height = 1024] Insets = java.awt.Insets [top = 0, left = 0, bottom = 0, right = 0]  

30-pixel intestine at the bottom of the monitor Consider 1

Now you need to do what screen your application is running on. If your application is the window JFrame or any other sub-category of window , you get the window.getGraphicsConfiguration () to get the graphics configuration for the active screen . Code>.

I hope that helps (and maybe this will help people who work on substance bugs!)

Comments