Revision 20903 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/panels/ColorChooserPanel.java

View differences:

ColorChooserPanel.java
134 134
				
135 135
				if(withTranspPerc) {
136 136
					int percValue = (int) (alphaValue * perc);
137
					lblTransparency.setText(" " + String.valueOf(percValue));
137
					lblTransparency.setText( String.valueOf(percValue) + "%");
138 138
				}
139 139
				fireActionPerformed();
140 140
			}
......
185 185
				sldTransparency = new JSlider(0, 255);
186 186
				sldTransparency.addChangeListener(sldAction);
187 187
				int width = withNoFill ? dim2.width - 40 : dim2.width;
188
				sldTransparency.setPreferredSize(new Dimension(width, dim2.height/2));
188
				sldTransparency.setPreferredSize(new Dimension(width-5, dim2.height/2));
189 189
				sldTransparency.setToolTipText(PluginServices.getText(this, "transparencia"));
190 190

  
191 191
				if(withTranspPerc) {	
192 192
					lblTransparency = new JLabel();
193 193
					int percValue = (int) (sldTransparency.getValue() * perc);
194
					lblTransparency.setText(" " + String.valueOf(percValue));
194
					lblTransparency.setText(String.valueOf(percValue) +"%");
195 195
					lblTransparency.setPreferredSize(new Dimension(30,20));
196 196
				}
197 197

  
......
362 362
			sldTransparency.setValue(alpha);
363 363
			sldTransparency.validate();
364 364
			int percValue = (int) (alpha * perc);
365
			lblTransparency.setText(" " + String.valueOf(percValue));
365
			lblTransparency.setText( String.valueOf(percValue)+ "%");
366 366
		}
367 367
	
368 368
		updateColorPanel();

Also available in: Unified diff