Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8176665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:17:18+00:00 2026-06-06T23:17:18+00:00

I have a GWT application with two TabPanels. The TabPanel generates css-classes that has

  • 0

I have a GWT application with two TabPanels.
The TabPanel generates css-classes that has the prefix gwt-TabPanel.

Is there any way to change this prefix for one of the tables? I want to be able to style the two TabPanels independently.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T23:17:19+00:00Added an answer on June 6, 2026 at 11:17 pm

    To solve this I did:

    Using setStylePrimaryName(String); This will change the prefix for the CSS class names that the TabPanel and TabBar uses.

    tabPanel.getTabBar().setStylePrimaryName("myTabBar"); 
    tabPanel.setStylePrimaryName("myTabPanel");
    

    In your CSS file your add something like this:

    .myTabBar {
    }
    
    .myTabBar .gwt-TabBarFirst {
      width: 5px;  /* first tab distance from the left */
    }
    .myTabBar .gwt-TabBarRest {
    }
    .myTabBar .gwt-TabBarItem {
      margin-left: 6px;
      padding: 3px 6px 3px 6px;
      cursor: pointer;
      cursor: hand;
      color: black;
      font-weight: bold;
      text-align: center;
      background: #3A3A3A;
    }
    .myTabBar .gwt-TabBarItem-selected {
      cursor: default;
      /* background: black; */
    } 
    .myTabBar .gwt-TabBarItem-disabled {
      cursor: default;
      color: red;
    }
    .myTabPanel {
    }
    .myTapPanel .myTabPanelBottom {
      border-width: 0px;
      overflow: hidden;
      padding: 6px;
    }
    

    For the second TabPanel you set a different with setStylePrimaryName() on both the TabPanel and the TabBar. Then you add a new section to the CSS file with the second primary name.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a GWT application that needs to display various holidays. Is there a
I have a simple java applet that is invoked from gwt application. Is there
I have a GWT application that features two frames (com.google.gwt.user.client.ui.Frame). Via Frame.setUrl(...) I can
I have a GWT application that has RPC service on its back end. I'm
I have a grid in my GWT application there are columns and rows which
I have gwt-project that is comunication to database. Application design mvp pattern and view
Our application is a Java-GWT application that uses Guice-Persist and Guice-Servlet extensively. We have
I have an application which is packaged as a .war file. It has GWT
I have an AWT applet application that needs to be ported over to GWT.
I have a Restlet API and a GWT web application in two seperate web

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.