Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Is there a "titled Border"

    I need to create an equivalent to a "Titled Border" from Swing, ie a border which has some text at the top (see attachment).

    Can anyone give me a clue, how to achieve this, I couldn't find a similar class anywhere.

    I tried to override draw() or add a draw handler, to draw my title, but none of that worked.

    I'm using GWT 2.1.0 and SmartGWT 2.3.2010-11-28
    Attached Files

    #2
    Use a dynamic form that has been grouped. You can then use any of the controls from the showcase in the form.

    ex:
    Code:
    final DynamicForm form     = new DynamicForm();
    form.setIsGroup(true);
    form.setGroupTitle("Setup");

    Comment


      #3
      thanx edgear, just what I need...

      Comment


        #4
        I have used the below mentioned code only to
        draw the title border name.


        final DynamicForm form = new DynamicForm();
        form.setIsGroup(true);
        form.setGroupTitle("Setup");

        But I wanted to set This type of title border for more than one DyanmicForm.
        So in that case what I have to Do..?

        Thanks in advance.

        Comment


          #5
          you can use
          Code:
          setIsGroup(true);
          setGroupTitle("some text");
          on any kind of layout or widget.

          Thomas

          Comment

          Working...
          X