Пример #1
0
 TipWindow(Frame owner) {
   super(owner);
   textLabel =
       new ImageTextLabel() {
         public void paint(Graphics g) {
           super.paint(g);
           g.setColor(getForeground());
           Dimension s = getSize();
           g.drawRect(0, 0, s.width - 1, s.height - 1);
         }
       };
   textLabel.setMargin(new Insets(2, 2, 2, 2));
   setLayout(new GridLayout(1, 1));
   add(textLabel);
 }