Skip to content

Commit

Permalink
Refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
albertus82 committed Jul 26, 2015
1 parent 5c26e2e commit ebfb964
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/it/albertus/router/gui/GuiConsole.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,12 @@ public void init(final Composite container) {
}

private StyledText createStyledText(final Composite container) {
final StyledText styledText = new StyledText(container, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
final StyledText styledText = new StyledText(container, SWT.BORDER | SWT.READ_ONLY | SWT.V_SCROLL | SWT.H_SCROLL);
GridData gridData = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);
gridData.minimumHeight = 200;
gridData.heightHint = 200;
styledText.setLayoutData(gridData);
styledText.setFont(JFaceResources.getFont(JFaceResources.TEXT_FONT));
styledText.setEditable(false);

styledText.addKeyListener(new KeyAdapter() {
@Override
Expand Down

0 comments on commit ebfb964

Please sign in to comment.