Byte-Welt Forum

Zurück   Byte-Welt Forum > Projekte > DockingFrames

DockingFrames DockingFrames An extension of Swing, used to flexibly arrange windows. - Ist eine Erweiterung von Swing, mit der flexibel Panels angeordnet werden können.

Antwort
 
Themen-Optionen Thema durchsuchen
Alt 15.07.2010, 11:16   #1
dejan starter
 
Registriert seit: 14.07.2010
Beiträge: 2
dejan befindet sich auf einem aufstrebenden Ast
Frage How to specify initial sizes of dockables?

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
A,B,C,D are all StackDockStations, wrapped inside a SplitDockStation (root).
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).
dejan ist offline   Mit Zitat antworten
Alt 15.07.2010, 12:59   #2
dejan starter
 
Registriert seit: 14.07.2010
Beiträge: 2
dejan befindet sich auf einem aufstrebenden Ast
Standard Re: How to specify initial sizes of dockables?

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() );
Great!
dejan ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
docking , size , station


Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche

Forumregeln
Es ist Ihnen erlaubt, neue Themen zu verfassen.
Es ist Ihnen erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.


Ä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


Alle Zeitangaben in WEZ +1. Es ist jetzt 06:09 Uhr.


Powered by vBulletin® Version 3.8.2 (Deutsch)
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.