Changeset 3032


Ignore:
Timestamp:
08/01/07 11:31:50 (12 years ago)
Author:
curtis
Message:
  • Clean up overlay GUI controls a little.
  • Fix bug with text field not updating.
Location:
trunk/loci/visbio/overlays
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/visbio/overlays/OverlayOval.java

    r3015 r3032  
    269269      (major + minor) * (1 + q / (10 + Math.sqrt(4 - q)))); 
    270270 
    271     return "Oval " + COORDS + " = (" + x1 + ", " + y1 + "), " + 
    272       CTR + " = (" + centerX + ", " + centerY + "), " + 
     271    return "Oval " + COORDS + " = (" + x1 + ", " + y1 + ")\n" + 
     272      CTR + " = (" + centerX + ", " + centerY + ")\n" + 
    273273      RAD + " = (" + radiusX + ", " + radiusY + ")\n" + 
    274274      MAJ + " = " + major + "; " + MIN + " = " + minor + "\n" + 
  • trunk/loci/visbio/overlays/OverlayWidget.java

    r3015 r3032  
    282282 
    283283    // stats text area 
    284     stats = new JTextArea(5, 3 * textWidth); 
     284    stats = new JTextArea(7, 3 * textWidth); 
    285285    stats.setEditable(false); 
    286286    stats.setBorder(new EtchedBorder()); 
     
    338338      "pref, 5dlu, pref, 3dlu, pref:grow, 5dlu, pref, 3dlu, pref:grow", 
    339339      "pref, 3dlu, pref, 9dlu, pref, 3dlu, pref, 9dlu, pref, 3dlu, pref, " + 
    340       "3dlu, pref, 3dlu, pref, 3dlu, pref, 3dlu, pref, 3dlu, pref, 9dlu, " + 
    341       "pref, 3dlu, fill:pref:grow"); 
     340      "3dlu, pref, 3dlu, pref, 3dlu, pref, 3dlu, pref, 3dlu, pref, " + 
     341      "3dlu, pref, 9dlu, pref, 3dlu, fill:pref:grow"); 
    342342    PanelBuilder builder = new PanelBuilder(layout); 
    343343    CellConstraints cc = new CellConstraints(); 
     
    378378    row += 2; 
    379379    builder.add(ButtonBarFactory.buildCenteredBar(new JButton[] { 
    380       remove, copy, paste, dist, load, save, export}), 
     380      remove, copy, paste, dist}), 
     381      cc.xyw(1, row, 9, "center, center")); 
     382    row += 2; 
     383    builder.add(ButtonBarFactory.buildCenteredBar(new JButton[] { 
     384      load, save, export}), 
    381385      cc.xyw(1, row, 9, "center, center")); 
    382386    row += 2; 
     
    597601    text.setEnabled(enableText); 
    598602    text.setEditable(enableText); 
     603    text.setText(words); 
    599604 
    600605    if (sel.length > 0) { 
Note: See TracChangeset for help on using the changeset viewer.