Revision 37848 branches/v2_0_0_prep/libraries/libUIComponent/src/org/gvsig/gui/beans/controls/comboscale/ComboScale.java
ComboScale.java | ||
---|---|---|
91 | 91 |
* @return void |
92 | 92 |
*/ |
93 | 93 |
private void initialize() { |
94 |
FlowLayout flowLayout = new FlowLayout(); |
|
95 |
flowLayout.setHgap(0); |
|
96 |
flowLayout.setVgap(0); |
|
94 |
FlowLayout flowLayout = new FlowLayout(FlowLayout.CENTER, 0, 0); |
|
97 | 95 |
jLabel = new JLabel(); |
98 | 96 |
jLabel.setText("1:"); |
99 | 97 |
this.setLayout(flowLayout); |
100 |
this.setSize(155, 16); |
|
101 |
// this.setBorder(javax.swing.BorderFactory.createLineBorder( |
|
98 |
// this.setSize(155, 16); |
|
102 | 99 |
this.add(jLabel, null); |
103 | 100 |
this.add(getJComboBox(), null); |
104 |
// java.awt.Color.gray, 1)); |
|
105 | 101 |
} |
106 | 102 |
|
107 | 103 |
/** |
... | ... | |
112 | 108 |
private JComboBox getJComboBox() { |
113 | 109 |
if (jComboBox == null) { |
114 | 110 |
jComboBox = new JComboBox(); |
115 |
jComboBox.setPreferredSize(new java.awt.Dimension(130, 16)); |
|
116 | 111 |
jComboBox.setEditable(true); |
117 | 112 |
jComboBox.setMaximumRowCount(5); |
118 |
jComboBox.setFont(new java.awt.Font("Dialog", java.awt.Font.BOLD, |
|
119 |
10)); |
|
120 | 113 |
jComboBox.setBackground(java.awt.SystemColor.window); |
121 | 114 |
jComboBox |
122 | 115 |
.setComponentOrientation(java.awt.ComponentOrientation.LEFT_TO_RIGHT); |
Also available in: Unified diff