public LandedValue (GridBagLayout layout, int y, String text) {
GridBagConstraints c = new GridBagConstraints();
+ c.weighty = 1;
label = new JLabel(text);
label.setFont(label_font);
c.gridx = 0; c.gridy = y;
c.insets = new Insets(10, 10, 10, 10);
c.anchor = GridBagConstraints.WEST;
+ c.weightx = 0;
+ c.fill = GridBagConstraints.VERTICAL;
layout.setConstraints(label, c);
add(label);
- value = new JTextField(20);
- value.setFont(label_font);
+ value = new JTextField(17);
+ value.setFont(value_font);
value.setHorizontalAlignment(SwingConstants.RIGHT);
c.gridx = 1; c.gridy = y;
c.anchor = GridBagConstraints.WEST;
- c.fill = GridBagConstraints.HORIZONTAL;
+ c.weightx = 1;
+ c.fill = GridBagConstraints.BOTH;
layout.setConstraints(value, c);
add(value);
}
public AltosLanded() {
layout = new GridBagLayout();
- label_font = new Font("Dialog", Font.PLAIN, 24);
- value_font = new Font("Monospace", Font.PLAIN, 24);
+ label_font = new Font("Dialog", Font.PLAIN, 22);
+ value_font = new Font("Monospaced", Font.PLAIN, 22);
setLayout(layout);
/* Elements in descent display */