GWT Get Rid of Tables

I inherited a GWT project that uses Panels and Panels outside of beliefs, and all of this creates a ton of nested tables. I want to style this program and do it, I would like all my elements to become <div>, so I can draw them correctly in CSS. Can someone tell me how to do this? Are there any widgets in GWT that don't use tables, etc.?

+3
source share
2 answers

Googling for panels [gwt] I found this page which lists which panels are supported by tables and which are supported by div. You should start by removing panels that simply hold other panels, or nothing at all. Then, if possible, refactoring panels that use tables for those that use divs.

+4
source

You can use div-based widgets like FlowPanels and make your layout in css if you want to avoid tables. This works well for me. use getElement.setId () to set your panel id.

+3
source

Source: https://habr.com/ru/post/1734478/


All Articles