Skip to content

Commit

Permalink
Don't use deprecated API in demo code
Browse files Browse the repository at this point in the history
  • Loading branch information
Henri Kerola committed Feb 18, 2017
1 parent 7304098 commit 4276fd9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public DefaultView() {
}
});
textArea.setRows(10);
textCaptionButton.setComponent(textArea);
textCaptionButton.setContent(textArea);
horizontalLayout.addComponent(textCaptionButton);

PopupButton iconButton = new PopupButton();
Expand All @@ -51,7 +51,7 @@ public DefaultView() {
horizontalLayout.addComponent(iconButton);

VerticalLayout userLayout = new VerticalLayout();
iconButton.setComponent(userLayout);
iconButton.setContent(userLayout);

Button addUser = new Button("Add user");
addUser.setStyleName(ValoTheme.BUTTON_LINK);
Expand Down

0 comments on commit 4276fd9

Please sign in to comment.