Skip to content

Commit

Permalink
Set min size for scrollpane
Browse files Browse the repository at this point in the history
  • Loading branch information
MilkBiscuit committed Apr 9, 2021
1 parent 3ef6827 commit 2acf7d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/com/cheng/rostergenerator/ui/NameCollector.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.cheng.rostergenerator.ui;

import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.event.ActionEvent;
Expand Down Expand Up @@ -71,6 +72,7 @@ private void initLayout() {

textArea = new JTextArea(TEXT_AREA_ROW, TEXT_AREA_COL);
var scrollPane = new JScrollPane(textArea);
scrollPane.setMinimumSize(new Dimension(618, 1000));
c.gridy = 1;
c.fill = GridBagConstraints.BOTH;
add(scrollPane, c);
Expand Down

0 comments on commit 2acf7d2

Please sign in to comment.