I am having some problems figuring out how to make the outlined red part in the screenshot below using Swing. It's a GUI issue. Specifically I'm doing a little project about TV Series and I don't know how to show the characters' name in a horizontal scrolling control.
Can anyone show me the extends JTabbedPane
about my particular problem?
If I'm missing something please let me know.
Full screenshot: http://img138.imageshack.us/img138/5381/screenxk.png
You may be looking for JTabbedPane.SCROLL_TAB_LAYOUT
, which provides platform-specific navigation controls:
If all the tabs do not fit within a single run the look and feel will provide a way to navigate to hidden tabs.
In contrast JTabbedPane.WRAP_TAB_LAYOUT
provides a (default) wrapping policy:
The tab layout policy for wrapping tabs in multiple runs when all tabs will not fit within a single run.
See How to Use Tabbed Panes for examples .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.