Changeset 6039


Ignore:
Timestamp:
03/18/10 04:59:49 (10 years ago)
Author:
curtis
Message:

Add scroll bars as needed to main Bio-Formats Importer dialog.

Location:
trunk/components/loci-plugins/src/loci/plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/loci-plugins/src/loci/plugins/importer/ImporterDialog.java

    r6007 r6039  
    3030import java.awt.Checkbox; 
    3131import java.awt.Choice; 
     32import java.awt.Color; 
    3233import java.awt.Component; 
    3334import java.awt.KeyboardFocusManager; 
     
    4647 
    4748import loci.plugins.prefs.OptionsDialog; 
     49import loci.plugins.util.WindowTools; 
    4850 
    4951import com.jgoodies.forms.builder.PanelBuilder; 
     
    326328 
    327329    // display dialog to user and harvest results 
     330    WindowTools.addScrollBars(gd); 
     331    gd.setBackground(Color.white); // HACK: workaround for JPanel in a Dialog 
    328332    gd.showDialog(); 
    329333    if (gd.wasCanceled()) return STATUS_CANCELED; 
  • trunk/components/loci-plugins/src/loci/plugins/util/WindowTools.java

    r5857 r6039  
    100100 
    101101    // compute best size for scrollable viewport 
    102     size.width += 15; 
     102    size.width += 25; 
    103103    size.height += 15; 
    104104    Dimension screen = Toolkit.getDefaultToolkit().getScreenSize(); 
    105     int maxWidth = 3 * screen.width / 4; 
     105    int maxWidth = 7 * screen.width / 8; 
    106106    int maxHeight = 3 * screen.height / 4; 
    107107    if (size.width > maxWidth) size.width = maxWidth; 
Note: See TracChangeset for help on using the changeset viewer.