Package ui.dialog

Class ConfigureDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class ConfigureDialog extends JDialog
Dialog for configuring spectrometer measurement parameters. Provides input fields for integration time, gain, averaging, number of measurements, mode, and light intensity.
Version:
1.0
Author:
Spectrometer Control Software
See Also:
  • Constructor Details

    • ConfigureDialog

      public ConfigureDialog(JFrame parent, Map<String,Object> currentParams)
      Constructs the configuration dialog.
      Parameters:
      parent - Parent frame
      currentParams - Current parameter values (may be empty, uses defaults)
  • Method Details

    • isConfirmed

      public boolean isConfirmed()
      Returns whether the user confirmed the dialog (clicked OK).
      Returns:
      true if OK was clicked, false otherwise
    • getParameters

      public Map<String,Object> getParameters()
      Returns the parameter values entered by the user.
      Returns:
      Map with keys: int, gain, avg, count, mode, light