Changeset 6467


Ignore:
Timestamp:
06/03/10 16:05:21 (9 years ago)
Author:
curtis
Message:

Fix a couple of minor Mac OS X specific bugs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/loci-plugins/src/loci/plugins/in/SeriesDialog.java

    r6466 r6467  
    3434import java.awt.Button; 
    3535import java.awt.Checkbox; 
     36import java.awt.Color; 
    3637import java.awt.Dimension; 
    3738import java.awt.GridBagConstraints; 
     
    172173 
    173174    // rebuild dialog so that the thumbnails and checkboxes line up correctly 
    174     rebuildDialog(gd); 
     175    rebuildDialog(gd, nGroups); 
    175176 
    176177    return gd; 
     
    227228  } 
    228229 
    229   private void rebuildDialog(GenericDialog gd) { 
     230  private void rebuildDialog(GenericDialog gd, int buttonRow) { 
    230231    // rebuild dialog using FormLayout to organize things more nicely 
    231232 
     
    259260 
    260261    WindowTools.addScrollBars(gd); 
     262    gd.setBackground(Color.white); // HACK: workaround for JPanel in a Dialog 
    261263 
    262264    // add Select All and Deselect All buttons 
     
    275277 
    276278    gbc.gridx = 2; 
    277     gbc.gridy = 2; 
     279    gbc.gridy = buttonRow; 
    278280    gbc.anchor = GridBagConstraints.EAST; 
    279281    gbc.insets = new Insets(15, 0, 0, 0); 
Note: See TracChangeset for help on using the changeset viewer.