Hello Everybody,
I have a small problem with paint method.
Consider a following situation.
class comp extends JComponent
{ Graphics g;
public comp()
{
//some code
}
public void paint(Graphics g)
{
g.drawRect(10,10,200,200);
}
}
class xyz extends JFrame
{
public xyz()
{
comp c=new comp();
//some code
}
}
Now my problem is to dynamically vary the size of the
rectangle which is being plotted by paint method.
i.e. from class xyz I want to pass parameters to the
paint method in comp() to plot the rectangle. I cannot
shift my paint method to xyz as it dosen't work
properly(i.e. the tooltips displayed by JComponenet
are then not visible).
Thanking You
Alpesh
=====
KOTHARI ALPESH D.
STUDENT M. TECH.
CEDT
INDIAN INSTITUTE OF SCIENCE
BANGALORE-560 012
INDIA
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]