Skip to content

Commit

Permalink
Merge pull request #1810 from AaronGullickson/repair-bay-columns
Browse files Browse the repository at this point in the history
use grid layout for repair tab main panels
  • Loading branch information
AaronGullickson authored Jun 17, 2020
2 parents 199d1cd + 637e0ed commit 4499ea1
Showing 1 changed file with 4 additions and 29 deletions.
33 changes: 4 additions & 29 deletions MekHQ/src/mekhq/gui/RepairTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public void initTab() {
new EncodeControl());
GridBagConstraints gridBagConstraints;

setLayout(new GridBagLayout());
setLayout(new GridLayout());

JPanel panServicedUnits = new JPanel(new GridBagLayout());

Expand Down Expand Up @@ -182,9 +182,7 @@ public void propertyChange(PropertyChangeEvent evt) {
txt += String.format(" (%s missing)", PartsAcquisitionService.getMissingCount());
}
}

btnAcquisitions.setText(txt);

btnAcquisitions.repaint();
}
});
Expand Down Expand Up @@ -447,32 +445,9 @@ public void propertyChange(PropertyChangeEvent evt) {
gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
panTechs.add(astechPoolLabel, gridBagConstraints);

gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 0;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
gridBagConstraints.weightx = 1.0;
gridBagConstraints.weighty = 1.0;
add(panServicedUnits, gridBagConstraints);

gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 1;
gridBagConstraints.gridy = 0;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
gridBagConstraints.weightx = 1.0;
gridBagConstraints.weighty = 1.0;
add(panTasks, gridBagConstraints);

gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 2;
gridBagConstraints.gridy = 0;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
gridBagConstraints.weightx = 1.0;
gridBagConstraints.weighty = 1.0;
add(panTechs, gridBagConstraints);
add(panServicedUnits);
add(panTasks);
add(panTechs);

filterTechs();
}
Expand Down

0 comments on commit 4499ea1

Please sign in to comment.