displayStr = "Double Click Me"; addMouseListener(new MyAdapter());
g.drawRect(0, 0, getSize().width-1, getSize().height-1); g.drawString(displayStr, 40, 30);