This commit is contained in:
gac-x11ma
2022-06-14 16:29:48 +02:00
parent 6de2af0dca
commit bb9c188428
12 changed files with 688 additions and 40 deletions

View File

@@ -1,6 +1,9 @@
import ch.psi.pshell.ui.Panel;
import ch.psi.utils.State;
import ch.psi.utils.swing.SwingUtils;
import java.awt.Component;
import javax.swing.JButton;
/**
*
@@ -19,7 +22,9 @@ public class XPEEM_Settings extends Panel {
@Override
public void onStateChange(State state, State former) {
for (Component c : SwingUtils.getComponentsByType(this, JButton.class)){
c.setEnabled(state==State.Ready);
}
}
@Override
@@ -95,6 +100,9 @@ public class XPEEM_Settings extends Panel {
.addComponent(ButtonDefaultXrays))
.addContainerGap(322, Short.MAX_VALUE))
);
layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {ButtonDefaultOptics10kV, ButtonDefaultOptics15kV, ButtonDefaultXrays, ButtonNeutralizePosition});
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()