How can I set a toolbar to stay at the top of the inside of a dock? #158
-
|
Add Node and Remove Node are in a JToolBar on the north edge of the JPanel contained in the dock. I'd like the toolbar to remain visible while the rest of the panel scrolls. Please tell me how? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
Wrote a new panel in the demo app as an example for you, https://github.com/andrewauclair/ModernDocking/blob/a78df1dd5ed06a805577d2b006c5c6a583ba009a/demo-single-app/src/basic/ScrollingWithToolbarPanel.java. |
Beta Was this translation helpful? Give feedback.
-
|
Nice! It works great and now another panel refuses to fill the available width. I am so dumb with Swing... |
Beta Was this translation helpful? Give feedback.


Wrote a new panel in the demo app as an example for you, https://github.com/andrewauclair/ModernDocking/blob/a78df1dd5ed06a805577d2b006c5c6a583ba009a/demo-single-app/src/basic/ScrollingWithToolbarPanel.java.