Skip to content

Commit

Permalink
make the panel wide enough to fill its display area horizontally
Browse files Browse the repository at this point in the history
  • Loading branch information
pminos committed May 17, 2016
1 parent ae0e792 commit e2af1bd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,14 @@ public void actionPerformed(@SuppressWarnings("unused") ActionEvent actionEvent)
cons.anchor = GridBagConstraints.WEST;
contentPane.add(portPanel, cons);

cons.fill = GridBagConstraints.HORIZONTAL;
cons.anchor = GridBagConstraints.WEST;
for(JPanel extra : extraPanels) {
cons.gridy++;
cons.anchor = GridBagConstraints.WEST;
contentPane.add(extra, cons);
}

cons.fill = GridBagConstraints.NONE;
cons.gridy++;
cons.anchor = GridBagConstraints.EAST;
contentPane.add(buttonPanel, cons);
Expand Down

0 comments on commit e2af1bd

Please sign in to comment.