Skip to content

Commit

Permalink
Update GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
AvocadoMoon committed Nov 12, 2024
1 parent 6ae2fb1 commit 5777315
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public ControlButtonsPanel(){

displayAdvancedFeatures = new JCheckBox("Advanced Features");

openOrCancel = new JButton("Open Virtually");
openOrCancel = new JButton("Open Virtual Stack");
dataReduction = new JButton("Run Measurement Script");
questionMark = new JButton("?");
questionMark.setPreferredSize(new Dimension(20, 20));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public DataReductionGUI(ArrayList<SimResultsLoader> filesToOpen, double simCSize
setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));

pane = new JOptionPane(this, JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION);
jDialog = pane.createDialog("Data Reduction");
jDialog = pane.createDialog("Measurement Script");
jDialog.setResizable(true);

selectSimRange = new SelectSimRange(jDialog, simCSize, simZSize, simTSize);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ class SelectMeasurements extends JPanel{
private final MeasurementsDataModel measurementsDataModel = new MeasurementsDataModel();

public SelectMeasurements(){
setLayout(new GridLayout(1, 2));
this.add(new JLabel("Measurement Type"));
setLayout(new GridLayout(1, 1));
this.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Measurement Type"));
chosenMeasurement = new JList<>(measurementsDataModel);
this.add(chosenMeasurement);
chosenMeasurement.setVisibleRowCount(3);
JScrollPane jScrollPane = new JScrollPane(chosenMeasurement);
this.add(jScrollPane);
}

public ArrayList<AvailableMeasurements> getChosenMeasurements(){
Expand Down

0 comments on commit 5777315

Please sign in to comment.