Results 1 to 8 of 8

Thread: Window Docking

  1. #1

    Thread Starter
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099

    Window Docking

    Hey in c# I used this to dock windows.

    Is there a way to docking windows in the same way in Java. I have searched around and have only found information about frameworks which you have to buy.

    Any information about how to do this would be great. I know this could be done by re-writting the code above but I would prefer not to.


    Thanks

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Window Docking

    C# uses windows kernel functions
    Code:
    [DllImport("user32.dll")]
    public static extern UInt32 RegisterWindowMessage(
        [MarshalAs(UnmanagedType.LPTStr)]
    Code:
    [DllImport("shell32.dll")]
    public static extern UInt32 SHAppBarMessage(
        UInt32 dwMessage,         // Appbar message value to send.
        ref APPBARDATA pData);
    On the other hand java can't
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  3. #3

    Thread Starter
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099

    Re: Window Docking

    I thought you could access windows DLL's from java. Oh well.Anyone know of a way to do this?

  4. #4
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Window Docking

    It looks like I was wrong
    try this link
    Load Dlls
    Last edited by ComputerJy; Mar 4th, 2006 at 08:06 AM. Reason: found better page
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  5. #5

    Thread Starter
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099

    Re: Window Docking

    Cheers will look into it

  6. #6
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    Re: Window Docking

    You could used JLayedPanes and then use a little math to position the layeredpane according to the position of the parent frame.

  7. #7
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Window Docking

    Quote Originally Posted by System_Error
    You could used JLayedPanes and then use a little math to position the layeredpane according to the position of the parent frame.
    No
    He was talking about external windows not frames
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  8. #8
    Addicted Member
    Join Date
    May 2001
    Location
    UK
    Posts
    222

    Re: Window Docking

    Research the JDIC project, they might have something that will do it, i know they are making good advances in other native functionality, i.e. browsers, tray icons etc...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width