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

TabPane-Snippet

TabPane tabpane = new TabPane();
tabpane.setTabMinHeight(22);
tabpane.setTabMaxHeight(44);


private void insertTab() {
  Button bn = new Button("xxx");
  bn.setFont(new Font(22));
  Tab tab = new Tab("caption"); 
  tab.setTooltip(new Tooltip("tooltipp")); // javafx.scene.control.Tooltip
  tab.setContent(bn); 
  tabpane.getTabs().add(tab);
}

private Tab getActualTab() {
ObservableList tabs = tabpane.getTabs(); // javafx.collections.*;
  if (tabs.size()>0) {
    for (Tab tab : tabs) {
      if (tab.isSelected()) {
        return tab;
      }
    }
    return null;
  }
  else {
   return null;
  }
} 



tabpane.getSelectionModel().selectedItemProperty().addListener(
   new ChangeListener() {
     @Override
     public void changed(ObservableValue ov, Tab told, Tab tnew) {
         TextArea editor = (TextArea)tnew.getContent();
         //editorstatus.setText(editor.filename);
     }
   }
);

TableView
TextArea-Snippet