|
|
@@ -30,7 +30,7 @@ public class PreparationPanel extends JPanel implements AutoGrowPanel.DocumentLi
|
|
|
setLayout(gridBagLayout);
|
|
|
|
|
|
JPanel panelLeft = new JPanel();
|
|
|
- panelLeft.setPreferredSize(new Dimension(200, 50));
|
|
|
+ panelLeft.setPreferredSize(new Dimension(300, 50));
|
|
|
GridBagConstraints gbc_panelLeft = new GridBagConstraints();
|
|
|
gbc_panelLeft.insets = new Insets(0, 0, 0, 5);
|
|
|
gbc_panelLeft.fill = GridBagConstraints.BOTH;
|
|
|
@@ -44,7 +44,7 @@ public class PreparationPanel extends JPanel implements AutoGrowPanel.DocumentLi
|
|
|
gbl_panelLeft.rowWeights = new double[]{0.0, 1.0, Double.MIN_VALUE};
|
|
|
panelLeft.setLayout(gbl_panelLeft);
|
|
|
|
|
|
- lblIndex = new JLabel("");
|
|
|
+ lblIndex = new JLabel("Prep");
|
|
|
GridBagConstraints gbc_lblIndex = new GridBagConstraints();
|
|
|
gbc_lblIndex.fill = GridBagConstraints.HORIZONTAL;
|
|
|
gbc_lblIndex.insets = new Insets(0, 0, 5, 5);
|
|
|
@@ -59,7 +59,7 @@ public class PreparationPanel extends JPanel implements AutoGrowPanel.DocumentLi
|
|
|
gbc_horizontalGlue.gridy = 0;
|
|
|
panelLeft.add(horizontalGlue, gbc_horizontalGlue);
|
|
|
|
|
|
- JLabel lblDuration = new JLabel("Duration");
|
|
|
+ JLabel lblDuration = new JLabel("Requires: " + step.getDuration().toString());
|
|
|
GridBagConstraints gbc_lblDuration = new GridBagConstraints();
|
|
|
gbc_lblDuration.insets = new Insets(0, 0, 5, 0);
|
|
|
gbc_lblDuration.gridx = 2;
|
|
|
@@ -74,15 +74,6 @@ public class PreparationPanel extends JPanel implements AutoGrowPanel.DocumentLi
|
|
|
gbc_panelIngredients.gridx = 0;
|
|
|
gbc_panelIngredients.gridy = 1;
|
|
|
panelLeft.add(panelIngredients, gbc_panelIngredients);
|
|
|
-
|
|
|
- txtpnInstructions = new JTextPane();
|
|
|
- txtpnInstructions.setPreferredSize(new Dimension(200, 30));
|
|
|
- txtpnInstructions.setText("Instructions");
|
|
|
- GridBagConstraints gbc_txtpnInstructions = new GridBagConstraints();
|
|
|
- gbc_txtpnInstructions.fill = GridBagConstraints.BOTH;
|
|
|
- gbc_txtpnInstructions.gridx = 1;
|
|
|
- gbc_txtpnInstructions.gridy = 0;
|
|
|
- add(txtpnInstructions, gbc_txtpnInstructions);
|
|
|
}
|
|
|
|
|
|
@Override
|