Changeset 15311 for release-kits/shared/ant-installer/src/org/tp23/antinstaller/renderer/swing/TargetInputRenderer.java
- Timestamp:
- 2008-04-30T17:00:38+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
release-kits/shared/ant-installer/src/org/tp23/antinstaller/renderer/swing/TargetInputRenderer.java
r15206 r15311 38 38 39 39 protected AILabel fieldLabel = new AILabel(); 40 protected AIShortLabel sizeLabel = new AIShortLabel(); 40 41 protected JCheckBox targetCheckBox = new JCheckBox(); 42 41 43 42 44 public TargetInputRenderer() { … … 80 82 private void jbInit() throws Exception { 81 83 fieldLabel.setText(outputField.getDisplayText()); 84 sizeLabel.setText(outputField.getDiskRequirement()); 85 sizeLabel.setMinimumSize( new Dimension( 80, 0 ) ); 82 86 targetCheckBox.setSelected(InputField.isTrue(outputField.getDefaultValue())); 83 87 if(InputField.isTrue(outputField.getForce())){ … … 94 98 public int addSelf(JPanel content,GBCF cf, int row,boolean overflow) { 95 99 96 JLabel h = new JLabel("help");97 h.setToolTipText(outputField.getExplanatoryText());98 100 99 JPanel p, pp; 101 JLabel hlp = new JLabel("help"); 102 hlp.setToolTipText(outputField.getExplanatoryText()); 100 103 101 pp = new JPanel(new FlowLayout(FlowLayout.LEFT)); 102 pp.add( targetCheckBox ); 103 pp.add( h ); 104 JPanel p; 104 105 105 p = new JPanel(new BorderLayout()); 106 p.add( fieldLabel, BorderLayout.WEST ); 107 p.add( pp, BorderLayout.CENTER ); 106 p = new JPanel(new FlowLayout(FlowLayout.LEFT)); 107 p.add( fieldLabel ); 108 p.add( sizeLabel ); 109 p.add( targetCheckBox ); 110 p.add( hlp ); 108 111 content.add(p); 109 112 110 p = new JPanel();111 p.setMinimumSize( new Dimension(0,1) );112 content.add(p);113 114 115 116 //if(overflow){117 // targetCheckBox.setOverflow(SizeConstants.OVERFLOW_FIELD_SIZE);118 //}119 113 return ++row; 120 114 }
Note:
See TracChangeset
for help on using the changeset viewer.