Multi monitor - prevented from dragging to another monitor

I’m not sure if this is a bug or a feature. This is with the latest version on webstart.

When I drag a window outside the application, dragging is stopped at the monitor border. I can drag the entire application over to the new monitor, but not dockable windows.

Also, is it possible to changed the behavior of the flap windows so that it moves the rest of the windows over, instead of overlaying the other dockable windows. like (eclipse / IDEs). my users would prefer this as they can leave the flap open and still see the rest of the content.

thanks!

Uh, the webstart version is quite old…

Dragging is restricted by the property “ScreenDockStation.BOUNDARY_RESTRICTION”. Currently, in the latest version, this is set to a value of “MediumBoundaryRestriction”, which should work with two monitors. At least it did on my system. There was some discussion lately how to implement the restriction and I did use some of the code that was posted.

FlapWindow: sorry, that is not implemented (flapwindows are just - well - dialogs). In theory you could implement a custom “FlapWindow” that is a JPanel and somehow pushes away the other Components. I don’t know if that would really work. In any case this is on the “todo-if-there-is-far-too-much-time-at-hand”-list.

OK, I downloaded the latest and multi-monitor works with no problems.

I did notice a new border (broken into ‘sections’ that highlight on mouseover) when the dockables are dragged outside the main application. I’m curious what the intent is with the new border. I didn’t see any mention in the release notes but I know you are working on a bunch of new features.

Good to hear.

I did notice a new border (broken into ‚sections‘ that highlight on mouseover) when the dockables are dragged outside the main application. I’m curious what the intent is with the new border. I didn’t see any mention in the release notes but I know you are working on a bunch of new features.

Sometimes questions in the forum indicated that people did not know, that they can move around and resize the dialog. I thought this border would make it clear to everyone, how to use the dialog (well - almost everyone, there are always exceptions…).

The border can be replaced any time through „DockController.getThemeManager().setBorderModifier(…)“ using the key „ThemeManager.BORDER_MODIFIER + „.screen.window““.

This is happening to me too.
I have 2 monitors, (running OS: Windows 7 Enterprise, Hardware: Intel Core i5 )

I started the demo app from webstart, and although the main window move ok from one monitor to the other, any docked window, if I undock it and try to move it around, it is stuck to the main window’s monitor.

Any idea how to fix?

Did you try it with 1.1.1p5c? It also contains the demo app but also some bugfixes.

How are your monitors arranged?

Could you please let this piece of code run and tell me what the output is? It would be really interesting to know if your monitors are found.

public class Test{
  public static void main( String[] args ){
    GraphicsDevice[] devices = GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices();

    for( GraphicsDevice device : devices ){
      Rectangle bounds = device.getDefaultConfiguration().getBounds();
      System.out.println( device );
      System.out.println( bounds );
    }
  }
}

[QUOTE=Beni]Did you try it with 1.1.1p5c? It also contains the demo app but also some bugfixes.

How are your monitors arranged?

Could you please let this piece of code run and tell me what the output is? It would be really interesting to know if your monitors are found.

public class Test{
  public static void main( String[] args ){
    GraphicsDevice[] devices = GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices();

    for( GraphicsDevice device : devices ){
      Rectangle bounds = device.getDefaultConfiguration().getBounds();
      System.out.println( device );
      System.out.println( bounds );
    }
  }
}
```[/QUOTE]

Hi There

Thanks for your reply.

I ran the code, here's the output:

D3DGraphicsDevice[screen=0]
java.awt.Rectangle[x=1280,y=0,width=1280,height=1024]
D3DGraphicsDevice[screen=1]
java.awt.Rectangle[x=0,y=0,width=1280,height=1024]

I ran the demo from the following link
http://dock.javaforge.com/webstart/demo.jnlp

I'm not sure what exact version that is, but I'd expect it was the latest.
If not, could you please point me at where I can get the latest version from.

Kind Regards
Charbel

The demo is pretty old, more than 6 months. The newest version is here, at the top (the link “Preview 5c”). Download and extract the zip file, and double click on “docking-frames-demo-app.jar” or directly on one of the applications.

Thanks anyway for the printout, if the newest version does not work then I can at least reproduce the issue with this information.

Hey,

the version on the link above is working perfectly, it fixes also another problem with screen flickering as well.
Brilliant.

(It may be worth updating the demo on the main page)

Thanks a lot

I usually only update the demo when I have a new stable version. Maybe I really should update the demo more often.

Hi again,

I’m trying to understand the naming of the packages to download, they all seem to have preview before the version number. Does that mean they are not official versions? If so,
Any idea when the release preview (Download VPN for Mac - VeePN) is going to make it as final release.

The policy of the project is, that every checkin in the master branch is ready to be distributed. “Preview” versions are as good as “final” versions. The only difference is, that the documentation (the two PDFs and the tutorials) is only updated for “final” versions. If I were you, I would always take the newest version that is available.

There is no date for the final release. The only thing that is missing is the updated EclipseTheme (imitating Eclipse 4.x), but at the moment Hervé is implementing a toolbar extension and most of my time goes in helping him.