Guest User

Untitled

a guest
Feb 21st, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.68 KB | None | 0 0
  1. package de.sebastianthoma.wochenplaner.client;
  2. import com.google.gwt.dom.client.Style.Unit;
  3. import com.google.gwt.user.client.ui.Button;
  4. import com.google.gwt.user.client.ui.Composite;
  5. import com.google.gwt.user.client.ui.DockLayoutPanel;
  6. import com.google.gwt.user.client.ui.Grid;
  7. import com.google.gwt.user.client.ui.Label;
  8.  
  9. public class WochenplanerGui extends Composite {
  10.  
  11.     DockLayoutPanel panel;
  12.     Grid seite;
  13.  
  14.     public WochenplanerGui() {
  15.         panel = new DockLayoutPanel(Unit.EM);
  16.         panel.setPixelSize(400, 300);
  17.         initWidget(panel);
  18.         seite = new Grid(10, 10);
  19.         panel.add(seite);
  20.         seite.setWidget(0, 0, new Label("!!"));
  21.         seite.setWidget(1, 1, new Button("Close"));
  22.     }
  23. }
Add Comment
Please, Sign In to add comment