Java Reference
In-Depth Information
tabPane.setSide(Side.LEFT);
} else if ("right".equalsIgnoreCase(side)) {
tabPane.setSide(Side.RIGHT);
} else if ("top".equalsIgnoreCase(side)) {
tabPane.setSide(Side.TOP);
} else if ("bottom".equalsIgnoreCase(side)) {
tabPane.setSide(Side.BOTTOM);
}
};
}
Figure 14-15 displays the tabs application, which allows users to change the tab
orientation.
Figure 14-15 . TabPane
How It Works
When you use the TabPane control, you may already know the orientation in which
you want your tabs to appear. This application allows you to set the orientation by the
left, right, top, and bottom menu options.
If you're familiar with the Swing API, you may notice that the JavaFX TabPane
is very similar to the Swing JTabbedPanel . Instead of adding JPanels , you
 
 
Search WWH ::




Custom Search