[Commit] RRClient RRClient.java,1.8,1.9
Bart Massey
commit at keithp.com
Fri Jul 4 21:29:56 PDT 2003
Committed by: bart
Update of /local/src/CVS/RRClient
In directory home.keithp.com:/tmp/cvs-serv29600
Modified Files:
RRClient.java
Log Message:
More geometry fixes
Index: RRClient.java
===================================================================
RCS file: /local/src/CVS/RRClient/RRClient.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- RRClient.java 5 Jul 2003 03:04:11 -0000 1.8
+++ RRClient.java 5 Jul 2003 03:29:53 -0000 1.9
@@ -73,10 +73,13 @@
System.exit(0);
}
});
-
f.getContentPane().add(ctl.boardPanel, BorderLayout.CENTER);
+
String[] intstrings = {"3", "4", "5", "6", "7", "8", "9", "10"};
JComboBox bidBox = new JComboBox(intstrings);
+ bidBox.setEditable(true);
+ bidBox.setSelectedItem("");
+ bidBox.setMaximumRowCount(3);
class BidListener implements ActionListener {
public void actionPerformed(ActionEvent e) {
JComboBox b = (JComboBox) e.getSource();
@@ -85,12 +88,12 @@
};
BidListener bid_listener = new BidListener();
bidBox.addActionListener(bid_listener);
- JPanel bidPanel = new JPanel();
- bidPanel.setLayout(new BoxLayout(bidPanel, BoxLayout.Y_AXIS));
+
+ Box bidPanel = new Box(BoxLayout.Y_AXIS);
bidPanel.add(bidBox);
f.getContentPane().add(bidPanel, BorderLayout.EAST);
- f.setSize(new Dimension(496 + bidPanel.getSize().width, 496));
+ f.setSize(new Dimension(596, 496));
f.setVisible(true);
ctl.netin.start();
More information about the Commit
mailing list