summaryrefslogtreecommitdiff
path: root/ao-tools/altosui/AltosLanded.java
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2010-11-18 05:54:06 +1000
committerAnthony Towns <aj@erisian.com.au>2010-11-18 05:54:06 +1000
commit939be6793238a275b7682ecc376fed14379cf044 (patch)
treef05feaf2572cccd5eb1e8565b70fc6948f607194 /ao-tools/altosui/AltosLanded.java
parente68fe9454352087889c560d95797922493117acb (diff)
parent1a4b6e96f823035b113f01d1bdfd61afc1f33e25 (diff)
Merge branch 'buttonbox' of git://git.gag.com/fw/altos into buttonbox
Conflicts: ao-tools/altosui/AltosFlightUI.java
Diffstat (limited to 'ao-tools/altosui/AltosLanded.java')
-rw-r--r--ao-tools/altosui/AltosLanded.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/ao-tools/altosui/AltosLanded.java b/ao-tools/altosui/AltosLanded.java
index d170ccad..0656ea6c 100644
--- a/ao-tools/altosui/AltosLanded.java
+++ b/ao-tools/altosui/AltosLanded.java
@@ -48,6 +48,7 @@ public class AltosLanded extends JComponent implements AltosFlightDisplay {
public LandedValue (GridBagLayout layout, int y, String text) {
GridBagConstraints c = new GridBagConstraints();
+ c.weighty = 1;
label = new JLabel(text);
label.setFont(label_font);
@@ -55,6 +56,8 @@ public class AltosLanded extends JComponent implements AltosFlightDisplay {
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);
@@ -63,7 +66,8 @@ public class AltosLanded extends JComponent implements AltosFlightDisplay {
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);
}
@@ -192,8 +196,8 @@ public class AltosLanded extends JComponent implements AltosFlightDisplay {
public AltosLanded() {
layout = new GridBagLayout();
- label_font = new Font("Dialog", Font.PLAIN, 24);
- value_font = new Font("Monospaced", 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 */