Changeset 256 for trunk/loci/visbio/view


Ignore:
Timestamp:
03/26/05 15:52:56 (15 years ago)
Author:
curtis
Message:

Switch all combo boxes over to BioComboBox, to more robustly work around
bug in Windows Look and Feel.

Location:
trunk/loci/visbio/view
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/visbio/view/BioColorWidget.java

    r155 r256  
    2727import java.util.Vector; 
    2828import javax.swing.*; 
     29import loci.visbio.util.BioComboBox; 
    2930import loci.visbio.util.ColorUtil; 
    3031import visad.RealType; 
     
    5253 
    5354  /** Combo box listing available range components. */ 
    54   protected JComboBox box; 
     55  protected BioComboBox box; 
    5556 
    5657  /** List of range component scalars. */ 
     
    7677    // create components 
    7778    color = new JLabel(COLOR_NAMES[model][type]); 
    78     box = new JComboBox(); 
     79    box = new BioComboBox(); 
    7980    scalars = new Vector(); 
    8081    addItem("None", ColorUtil.CLEAR); 
  • trunk/loci/visbio/view/ColorPane.java

    r179 r256  
    105105 
    106106  /** Combo box for choosing color widgets. */ 
    107   protected JComboBox selector; 
     107  protected BioComboBox selector; 
    108108 
    109109  /** Option for fixed color scaling. */ 
     
    647647    // color widget selector 
    648648    //BaseRGBMap.USE_COLOR_CURSORS = true; 
    649     selector = new JComboBox(); 
     649    selector = new BioComboBox(); 
    650650    selector.addActionListener(this); 
    651651    selector.setToolTipText("List of color tables for color components"); 
  • trunk/loci/visbio/view/StackPanel.java

    r193 r256  
    2828import javax.swing.event.ChangeEvent; 
    2929import loci.visbio.data.DataTransform; 
    30 import loci.visbio.util.FormsUtil; 
    31 import loci.visbio.util.LAFUtil; 
     30import loci.visbio.util.*; 
    3231 
    3332/** Provides GUI controls for a display stack handler. */ 
     
    4039 
    4140  /** List of axes for stacking. */ 
    42   protected JComboBox stackBox; 
     41  protected BioComboBox stackBox; 
    4342 
    4443  /** Dialog box for toggling individual slices. */ 
     
    178177  protected JPanel doDataProperties() { 
    179178    // stack axis combo box 
    180     stackBox = new JComboBox(new String[] {"None"}); 
     179    stackBox = new BioComboBox(new String[] {"None"}); 
    181180    stackBox.setToolTipText("The axis over which to stack images in 3D"); 
    182181    stackBox.setActionCommand("stackBox"); 
  • trunk/loci/visbio/view/TransformPanel.java

    r254 r256  
    7575 
    7676  /** List of axes for left/right arrow mapping. */ 
    77   protected JComboBox leftRightBox; 
     77  protected BioComboBox leftRightBox; 
    7878 
    7979  /** List of axes for up/down arrow mapping. */ 
    80   protected JComboBox upDownBox; 
     80  protected BioComboBox upDownBox; 
    8181 
    8282  /** Button for toggling status of animation. */ 
     
    8787 
    8888  /** List of axes for animation. */ 
    89   protected JComboBox animBox; 
     89  protected BioComboBox animBox; 
    9090 
    9191 
     
    408408  protected JPanel doAnimationPanel() { 
    409409    // left/right combo box 
    410     leftRightBox = new JComboBox(new String[] {"None"}); 
    411     SwingUtil.configureComboBox(leftRightBox); 
     410    leftRightBox = new BioComboBox(new String[] {"None"}); 
    412411    leftRightBox.setToolTipText("The axis " + 
    413412      "traversed by the left and right arrow keys"); 
    414413 
    415414    // up/down combo box 
    416     upDownBox = new JComboBox(new String[] {"None"}); 
    417     SwingUtil.configureComboBox(upDownBox); 
     415    upDownBox = new BioComboBox(new String[] {"None"}); 
    418416    upDownBox.setToolTipText("The axis " + 
    419417      "traversed by the up and down arrow keys"); 
     
    436434 
    437435    // animation axis combo box 
    438     animBox = new JComboBox(new String[] {"None"}); 
    439     SwingUtil.configureComboBox(animBox); 
     436    animBox = new BioComboBox(new String[] {"None"}); 
    440437    animBox.setToolTipText("The axis over which to animate"); 
    441438    animBox.setActionCommand("animBox"); 
Note: See TracChangeset for help on using the changeset viewer.