![]() |
|
|||||||
| 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 |
|
|
#11 |
|
Gast
Beiträge: n/a
|
I will try to make a test application in the next days.
Actually I have set an EclipseThemeConnector: Code:
// Removes the "empty" border from the DockStations. control.putProperty(EclipseTheme.THEME_CONNECTOR , new NoBorderThemeConnector(control)); Code:
/**
* A theme connector that removes the "empty" border from the {@link bibliothek.gui.DockStation}s.
*/
public class NoBorderThemeConnector extends CommonEclipseThemeConnector {
public NoBorderThemeConnector (CControl control) {
super(control);
}
@Override
public TitleBar getTitleBarKind (Dockable dockable) {
if (dockable.getDockParent() instanceof SplitDockStation) {
return TitleBar.NONE;
}
return super.getTitleBarKind(dockable);
}
}
|
|
|
|
#12 |
|
Moderator
|
Hehe, this "does not a lot" is the cause of the problem. "TitleBar.NONE" means "no decorations at all", and thus no tab at all. This EclipseThemeConnector just overriddes your attempt to make the tab visible. The only way to get the tab is if you return "TitleBar.ECLIPSE", unfortunatelly this means the border is back.
If you don't want the border, you'll have to implement a "TabPainter". Copy the code of "ArchGradientPainter.FACTORY" and make sure the method "getFullBorder" returns null. You then can install your new TabPainter using the property-key "EclipseTheme.TAB_PAINTER".
__________________
Geändert von Beni (20.07.2010 um 21:17 Uhr). |
|
|
|
|
|
#13 |
|
Gast
Beiträge: n/a
|
hehe
![]() After removing the EclipseThemeConnector I still got a white border around the CWorkingArea. I followed your answer in http://forum.byte-welt.de/showthread.php?t=2780 to remove it. thx a lot! |
|
![]() |
| Lesezeichen |
| Stichworte |
| - |
| Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
| Themen-Optionen | Thema durchsuchen |
|
|
Ähnliche Themen
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Maximize an externalized dockable | Peter | DockingFrames | 5 | 05.01.2009 21:41 |
| Location of a closed dockable | Peter | DockingFrames | 4 | 02.11.2008 18:21 |
| [Erledigt] Moving external dockable | Unregistered | DockingFrames | 1 | 03.09.2008 16:25 |
| Cannot close dockable which appears before focused dockable | Parag | DockingFrames | 1 | 14.08.2008 20:38 |
| [Erledigt] Dockable sizes and dockable closing in common API | Michal Krause | DockingFrames | 11 | 27.07.2008 14:07 |