|
50 | 50 | import java.awt.Image; |
51 | 51 | import java.awt.Insets; |
52 | 52 | import java.awt.LayoutManager; |
53 | | -import java.awt.Point; |
54 | 53 | import java.awt.event.ActionEvent; |
55 | 54 | import java.awt.event.ActionListener; |
56 | 55 | import java.awt.event.AdjustmentEvent; |
|
71 | 70 | import java.util.Vector; |
72 | 71 |
|
73 | 72 | import a2s.Applet; |
74 | | - |
75 | 73 | import a2s.Button; |
76 | 74 | import a2s.Canvas; |
77 | 75 | import a2s.Checkbox; |
@@ -686,19 +684,19 @@ void updateDiffraction(Graphics realg) { |
686 | 684 | boolean hideFunction = dragging && aperture.hideWhileDragging(); |
687 | 685 | if (functionChanged) { |
688 | 686 | realg.setColor(cv.getBackground()); |
689 | | - FontMetrics fm = realg.getFontMetrics(); |
690 | | - String cs = "Calculating..."; |
691 | | - realg.fillRect(0, fullWinSize.height - 30, 20 + fm.stringWidth(cs), 30); |
692 | | - realg.setColor(Color.white); |
693 | | - realg.drawString(cs, 10, fullWinSize.height - 10); |
| 687 | +// BH this does not seem necessary and is not cleared properly and is in the wrong spot |
| 688 | +// FontMetrics fm = realg.getFontMetrics(); |
| 689 | +// String cs = "Calculating..."; |
| 690 | +// realg.fillRect(0, cv.getHeight() - 30, 20 + fm.stringWidth(cs), 30); |
| 691 | +// realg.setColor(Color.white); |
| 692 | +// realg.drawString(cs, 10, cv.getHeight() - 10); |
694 | 693 | computeFunction(); |
695 | 694 | } |
696 | 695 |
|
697 | 696 | Graphics g = null; |
698 | 697 | if (winSize == null || winSize.width == 0) |
699 | 698 | return; |
700 | 699 | g = dbimage.getGraphics(); |
701 | | - g.setColor(cv.getBackground()); |
702 | 700 | g.fillRect(0, 0, fullWinSize.width, fullWinSize.height); |
703 | 701 | g.setColor(cv.getForeground()); |
704 | 702 |
|
|
0 commit comments