GridBagLayout
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Dukman_Dukman
Posted On:   Thursday, November 22, 2001 10:09 PM

I have placed few icons on a JPanel using GridBagLayout. I now want to draw lines connecting some of the icons. How to do it?

Re: GridBagLayout

Posted By:   Patrick_Lee  
Posted On:   Thursday, November 22, 2001 11:39 PM

paint(Graphics g){

g.drawString(x1,y1,x2,y2);
}

(x1,y1) is the position of icon1 ,(x2,y2) is the position of icon2.
About | Sitemap | Contact