Skip to content

Commit

Permalink
Reduce height since swing doesn't handle that well by default for wha…
Browse files Browse the repository at this point in the history
…tever reason.

Want to make sure people with small screens can see the window.
  • Loading branch information
tomkraljevic committed Jun 4, 2013
1 parent 98b8b0d commit 1390aca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion launcher/src/H2OLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ public H2OLauncher() {

addPadding();

final int textAreaHeightInLines = 12;
final int textAreaWidthInCharacters = 60;
final int wideFieldDiffInCharacters = 0;

Expand Down Expand Up @@ -370,7 +371,7 @@ public H2OLauncher() {
myAdd(outputLabel, makeLabelConstraints());
}

textArea = new JTextArea(30, textAreaWidthInCharacters);
textArea = new JTextArea(textAreaHeightInLines, textAreaWidthInCharacters);
textArea.setEditable(false);
JScrollPane scrollPane = new JScrollPane(textArea);
scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
Expand Down

0 comments on commit 1390aca

Please sign in to comment.