.. | .. |
---|
45 | 45 | } |
---|
46 | 46 | |
---|
47 | 47 | |
---|
48 | | - boxW = Math.min(350, boxW); |
---|
49 | | - int boxH = 18 * numLines + 10; |
---|
50 | | - int mx = this.x + this.width + 5; |
---|
51 | | - int my = this.y + this.height + 35; |
---|
| 48 | + //boxW = Math.min(350, boxW); |
---|
| 49 | + int boxH = 18 * numLines; // + 10; |
---|
| 50 | + int mx = this.x + this.width; // + 5; |
---|
| 51 | + int my = this.y + this.height; // + 35; |
---|
52 | 52 | |
---|
53 | 53 | // put box in a place where it does not obscure the data |
---|
54 | 54 | // or go off screen. |
---|
55 | | - if (my + boxH > maxH - 10) |
---|
| 55 | + if (my + boxH > maxH) // - 10) |
---|
56 | 56 | { |
---|
57 | | - my = Math.max(10, this.y - boxH - 5); |
---|
| 57 | +// my = Math.max(10, this.y - boxH - 5); |
---|
58 | 58 | } |
---|
59 | | - if (mx + boxW > maxW - 10) |
---|
| 59 | + if (mx + boxW > maxW) // - 10) |
---|
60 | 60 | { |
---|
61 | | - mx = Math.max(10, this.x - boxW - 10); |
---|
| 61 | +// mx = Math.max(10, this.x - boxW - 10); |
---|
62 | 62 | } |
---|
| 63 | + |
---|
63 | 64 | int ty = my; |
---|
64 | 65 | g.setColor(new Color(0, 0, 0, 70)); |
---|
65 | 66 | g.fillRoundRect(mx - 11, my - 16, boxW, boxH, 12, 12); |
---|