Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bouncing Pointer Overtop JPanel Serving As Titlebar

Isaac Hewitt
Ranch Hand
Posts: 191
Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am using Java 6 update 20 under Windows 7 with 4 processors and NetBeans. My program uses the Synthetica Look And Feel which does a fantastic job at decorating Swing. I am also using the Sanaware docking system.
So I have a JPanel int eh top part of a JSplitPane, that when dragged, detaches itself from the SingleDock and is thence made into a floating JDialog without Window decorations. The content is transferred to the JDialog. It is therefore possible to drag it around the screen with the pointer overtop a JPanel in the NORTH region of the BorderLayout of the JDialog. Unlike dragging a JDialog with the pointer overtop the titlebar, the pointer bounces to a specific location on the JPanel which serves as title bar. Is there a way to stop the pointer from bouncing elsewhere on the JPanel?

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic