Skip to content

Commit

Permalink
bugfix Reflektor still visible in Kreis-Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon M. Burkhardt committed Jun 10, 2018
1 parent 5ea2f44 commit 1257fcc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/pro2e/userinterface/input/AntennaInputPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ private int getSelectedPosition() {
/**
* <pre>
* übergibt alle Werte des Panels in den Controller
* </pre>
* </pre>
*/
public void valuesToController() {
trace.methodeCall();
Expand Down Expand Up @@ -197,7 +197,8 @@ public void paintComponent(Graphics g) {
/**
* <pre>
* übernimmt die Werte aus dem Model und setzt sie aufs Userinterface
* </pre>
* </pre>
*
* @param obs
* @param obj
*/
Expand All @@ -215,6 +216,7 @@ public void update(Observable obs, Object obj) {
lbReflektor.setVisible(show);
lbRefAbstand.setVisible(show);
lbPosition.setVisible(show);
pnReflect.setVisible(show);
if (show) {
lbAntAbstand.setText("Antennenabstand d/λ");
} else {
Expand Down Expand Up @@ -246,7 +248,7 @@ public void actionPerformed(ActionEvent e) {
/**
* <pre>
* Handler für on/off Buttons
* </pre>
* </pre>
*/
@Override
public void itemStateChanged(ItemEvent e) {
Expand Down

0 comments on commit 1257fcc

Please sign in to comment.