• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

GWT in Action: Is GWT is easy for GUI developers?

Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is GWT is easy for GUI developers using SWing or SWT?

As the concept of panel, widget are coming in the GWT
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now you are perhaps stepping on controversial ground as web designers and Swing developers meet on the web page writing the code in Java

GWT comes with a series of widgets wrapping standard HTML component (Labels, Buttons, Form elements etc) and a number of panels (HorizontalPanel, VerticalPanel, DockPanel, DisclosurePanel etc).

I think Swing users will be fairly familiar with the panels provided. There are perhaps some subtle name differences, but on the whole the concepts are there. Where you might get caught out is how some of the panels work - because of the constraints of the browsers GWT supports.

A good example of this is the FlowPanel which flows elements as the browser dictates. You might expect if you put several Labels in a FlowPanel they would run from left to right; however, they appear under each other since this is the common denominator way for all supported browsers to do this. Early versions of GWT supported a strict Flow approach, but that was not consistent across all browsers; so to keep consistency the lowest common denominator is now given.

In "the other corner" so to speak would be web developers that would prefer to position and style everything using Cascading Style Sheets as opposed to layout managers.

My honest view is that there is room for both approaches in your GWT application. Where you as a programmer need/prefer to rely on a structure being in place then use the layout managers; where you don't then use the default CSS style classes that are provided for all widgets and let the web designers perform their magic.

It does mean as a Java programmer you have to get an understanding of style sheets etc, but it gives a great amount of flexibility and freedom if you need to reuse components / change the style quickly.

Hoo hoo hoo! Looks like we got a live one! Here, wave this tiny ad at it:
the value of filler advertising in 2020
    Bookmark Topic Watch Topic
  • New Topic