Oberflächen
  Vorlesungen     Download     DBS     Sprachen     File Formats     Impressum     Datenschutz  
C#- GUI-Programme mit Quellcode
Java-Programme mit Quellcode
C#
WPF
HTML
Java FX
Java (Swing)
Winforms
Visual Studio (MFC)
ArcView
QGis
ArcView .net
IDW
Allgemein:
Startseite
Vorlesungen
Labore
Sinnvolle Programme
Lineare Regression
GUI-Entwurfsarbeit
Single-Format
Design Pattern-Termine
Observer1
Bsp2
Json-Array
Json-Dialogelemente
Webtechnologien

MultiDocumentInterface (MDI)

Multi-Dokument-Interface

Beschreibung Download
MDI-Beispiel mit SplitPane UIBspSplitPane01.java
UIBspSplitPane01.png
UIBspSplitPane01b.png
UIBspSplitPane01c.png
UIBspSplitPane01d.png
UIBspSplitPane01e.png

private SplitPane splitpane = null;

private TextArea editor1 = new TextArea("1");
private TextArea editor2 = new TextArea("2");
private TextArea editor3 = new TextArea("3");
private TextArea editor4 = new TextArea("4");



SplitPane splitpane in BorderPane

private void setSplitPane(int nr) {
switch (nr) {
case 1:
splitpane.getItems().clear();
splitpane.getItems().add(new StackPane(editor1));
break;

case 2:
splitpane.getItems().clear();
splitpane.getItems().add(new StackPane(editor1));
splitpane.getItems().add(new StackPane(editor2));
break;

case 3:
splitpane.getItems().clear();
splitpane.getItems().add(new StackPane(editor1));
splitpane.getItems().add(new StackPane(editor2));
splitpane.getItems().add(new StackPane(editor3));
break;

case 4:
splitpane.getItems().clear();
splitpane.getItems().add(new StackPane(editor1));
splitpane.getItems().add(new StackPane(editor2));
splitpane.getItems().add(new StackPane(editor3));
splitpane.getItems().add(new StackPane(editor4));
break;

case 22:
splitpane.getItems().clear();
VBox vbox = new VBox();
SplitPane splitpane1 = new SplitPane();
SplitPane splitpane2 = new SplitPane();
vbox.getChildren().addAll(splitpane1, splitpane2);
splitpane1.getItems().add(new StackPane(editor1));
splitpane1.getItems().add(new StackPane(editor2));
splitpane2.getItems().add(new StackPane(editor3));
splitpane2.getItems().add(new StackPane(editor4));
splitpane.getItems().add(vbox);
break;
default:
errorBox("Fehlerhafter Index in setSplitPane: "+nr,"Hinweis");
break;
} // switch
}



Menu-Snippet
onClick-Snippet