Davey
Davey

Reputation: 101

Having a a large heading in coloumn headings using GWT

Im having trouble with writing coloumn names using a FlexTable in GWT my code is as follows:

public class TemplateWebInterface implements EntryPoint
{

      final protected FlexTable _templatesFlexTable  = createTable("Template Name", "Added", "Modified");

      public void onModuleLoad()
   { 
    _mainPanel.add(_templatesFlexTable);
    RootPanel.get().add(_mainPanel);

   }

}

So for "Template Name" I need it to come out like

 Template <br /> Name

I hope the question is understandable, any help is appreciated.

Upvotes: 0

Views: 94

Answers (1)

maneesh
maneesh

Reputation: 1701

FlexTable support setWidget as well as setHTML. You can use either of these for your headers.

Upvotes: 1

Related Questions