Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java gwt draw horizontal line

Tags:

java

html

gwt

How can I draw a horizontal line in java gwt, something similar to the '< hr >' tag in HTML? I tried it by using

 com.google.gwt.user.client.Element bottomLine = DOM.createDiv();

but that somehow doesn't work in IE...

like image 917
wasp256 Avatar asked Dec 01 '22 22:12

wasp256


1 Answers

You can use the HTML widget to add whatever html you want inside your page

HTML html = new HTML("<hr  style=\"width:100%;\" />")
rootPanel.add(html); // or add it inside another widget

Or you can use css on Panel and define the border-bottom property (if you have a panel that spans the entire page).

like image 110
Athanasios Kataras Avatar answered Dec 04 '22 10:12

Athanasios Kataras