*/  javax.swing.JLabel l = new javax.swing.JLabel() { public void paint(Graphics g) { Shape clip = g.getClip(); g.translate(getX(),getY()); g.setClip(0, 0, getWidth(), getHeight()); super.paint(g); g.translate(-getX(),-getY()); g.setClip(clip); } };   final String html="<p align='center'><i><b><font size='5'>Visual DCT Help</font></b></i></p><div align='center'>  <center>  <table border='0' width='73%' cellspacing='2' height='195' bgcolor='#0000FF'>    <tr>      <td width='100%' colspan='2' height='41' bgcolor='#FFFFFF' align='left'>        <p align='center'><i><font size='3'><b>Mouse events</b></font></i></td>    </tr></table>  </center></div><br>"; l.setVerticalAlignment(JLabel.TOP); l.setText(html); l.setForeground(getColor());  l.setBounds(posX + 2, posY + 2, rwidth - 4, rheight - 4); l.paint(g);  drawDashedBorder(g, hilited, view, posX, posY, rwidth, rheight);
protected void draw(Graphics g, boolean hilited){	ViewState view = ViewState.getInstance();	int offsetX = view.getRx();	int offsetY = view.getRy();		int posX = getRx() - offsetX;	int posY = getRy() - offsetY;	int rwidth = getRwidth();	int rheight = getRheight();	if(hilited)		g.setColor(Constants.HILITE_COLOR);	else		g.setColor(Constants.LINE_COLOR);		if(!((posX > view.getViewWidth()) || (posY > view.getViewHeight())		|| ((posX + rwidth) < 0) || ((posY + rheight) < 0)))	{		if(hilited)			g.setColor(Constants.HILITE_COLOR);		else			g.setColor(Constants.LINE_COLOR);				g.drawRect(posX + 2, posY + 2, rwidth - 4, rheight - 4);	}}