01: package org.columba.mail.gui.message.viewer;
02:
03: import java.awt.Color;
04: import java.awt.Graphics;
05:
06: import javax.swing.JComponent;
07: import javax.swing.JDialog;
08:
09: public class TransparentBackground extends JComponent {
10:
11: public TransparentBackground(JDialog dialog) {
12: setOpaque(true);
13:
14: // updateBackground();
15: }
16:
17: public void paintComponent(Graphics g) {
18: g.setColor(Color.LIGHT_GRAY);
19:
20: int x = 0;
21: int y = 0;
22: int width = getWidth();
23: int height = getHeight();
24:
25: g.drawRoundRect(x, y, width - 1, height - 1, 5, 5);
26: }
27: }
|