You should use standards mode. Quirks mode in 2013 is a code smell.
Widgets initially designed for quirks mode (what was working the most "reliably" across browsers a few years ago, back when GWT was created) should work in standards mode, but with… quirks.
So, use TabPanel
if if fits your needs, but be prepared to work around display quirks (with CSS).
TabPanel
and TabLayoutPanel
are not interchangeable. You could also use a TabBar
with a DeckLayoutPanel
, or build your tabs "manually", it's really easy and most of the time you don't really need the higher-level abstraction that the built-in widgets provide.
BTW,
TabLayoutPanel does not work in older browser
What do you mean by "older browsers"? TabLayoutPanel
works well in all browsers that GWT support (back to IE6), and GWT 2.6 is going to deprecate (and disable by default) IE6 and IE7 support (which also removes support for quirks mode in IE8+, but as I said, you shouldn't use quirks mode anyway).