![]() |
|
|||||||
| Registrieren | Benutzerliste | Interessengemeinschaften | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren | ||
| Java Link Base | Wiki | NoPaste | Chat | Boardregeln | F.A.Q. |
| DockingFrames DockingFrames An extension of Swing, used to flexibly arrange windows. - Ist eine Erweiterung von Swing, mit der flexibel Panels angeordnet werden können. |
![]() |
|
|
Themen-Optionen | Thema durchsuchen |
|
|
#1 |
|
Registriert seit: 14.07.2010
Beiträge: 2
|
Hello everybody,
I decided to use Docking Frames in an in-house developed Java application. So far I am happy but have trouble setting up initial size of docking stations... I followed examples and read the (EXCELLENT) manual (I love LaTeX ;), but cannot precisely make a layout like this: Code:
.................................................. | | | | | | | | | | | | | A | | | | | | | | | | C | | | | |........--------| | | | | | | | | | | | | | | | | | B |----------------...............| | | | | | D | | | | |________________|_______________________________J I want A and B to be of the same height, and C:D ratio to be 3:1 or so. If, for an example window is 800x600, then sizes would be A(300,300), B(300, 300), C(500,400), D(500,200)... I need help to specify these exact sizes at start, please. PS. I know the layout is going to be changed the second user starts the application, but I just want to specify these initial sizes to something "acceptable"... Kind regards Geändert von dejan (15.07.2010 um 11:30 Uhr). |
|
|
|
|
|
#2 |
|
Registriert seit: 14.07.2010
Beiträge: 2
|
OK, this worked.
Code:
grid.addDockable( 0, 0, 300, 300, navigationDockStation); grid.addDockable( 0, 300, 300, 300, actionDockStation); grid.addDockable( 300, 0, 500, 400, mainDockStation); grid.addDockable( 300, 300, 500, 200, infoDockStation); rootDockStation.dropTree( grid.toTree() ); ![]() |
|
|
|
![]() |
| Lesezeichen |
| Stichworte |
| docking , size , station |
| Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
| Themen-Optionen | Thema durchsuchen |
|
|
Ähnliche Themen
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Remove title from some dockables | Unregistered | DockingFrames | 17 | 26.04.2010 17:31 |
| How to use nested Dockables? | Sorokan | DockingFrames | 5 | 12.02.2010 18:03 |
| can be to add dockables to custom JDialog? | Unregistered | DockingFrames | 1 | 18.01.2010 08:11 |
| Moving dockables between DockingController's | parag | DockingFrames | 1 | 04.09.2009 07:48 |
| [Erledigt] Dockable sizes and dockable closing in common API | Michal Krause | DockingFrames | 11 | 27.07.2008 14:07 |