This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Need ability to dock and undock TopComponents programmatically to/from a Frame or Dialog | ||
---|---|---|---|
Product: | platform | Reporter: | _ wadechandler <wadechandler> |
Component: | Window System | Assignee: | issues@platform <issues> |
Status: | NEW --- | ||
Severity: | blocker | CC: | err, geertjan, longstrb, markiewb |
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Bug Depends on: | 96321 | ||
Bug Blocks: | 179047 |
Description
_ wadechandler
2007-02-22 15:59:48 UTC
Methods would be: Dialog undockToDialog() Frame undockToFrame() Window undock()//uses the default undocking method setup for the TopComponent and by using Window it can represent a Frame or a Dialog and by using Frame and Dialog instead of JFrame and JDialog it is consistent with the WindowManager (they are really JFrames and JDialogs but these extend Frame and Dialog respectfully) The above methods return the Window, Dialog, or Frame reference so the developer can control screen placement. dock()//docks it to the mode it came from or its default The point is to just make it easier to program for the end developer. Use cases are just that...to better support the end developer with this functionality. For instance, what if in a graphics application when a certain tool is selected or when the cursor is held down on the tool button long enough the toolbox window automatically comes out to the user to be near their cursor. It sounds like something which could come in handy for me with some graphics tools I use....when I have to migrate all the way across the screen to select another tool related to what I'm doing. I really need this behavior ASAP! longstrb, go ahead and provide the API and implementation by yourself... (isn't it open source product?) It sure is an open source product (and a fine one). However, I was simply reinforcing the need for this feature. Finally, There is a little more to it than just writing your own implementaion and API. It requires a fair amount of knowledge about the Windows API and how to build Netbeans, which takes time. I have contributed bug fixes in the past and would be happy to look into this if I had time. Therefore, I will let the Netbeans core developers respond to this. If I get some down time in the months to come, I will look into a solution if not already implemented. I've filed Bug 198657. It doesn't cover this, but there is some synergy. |