Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

image displaying problem  RSS feed

 
gurcharan singh
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HY!
I have been devloping a program to display a number of photographs in go on JWindow in a matrix form.I make a arrray in which I add image using MediaTracker add image method.But in paint method when I want to draw image using-
for(int i=0;i<2;i++)
{
g2.drawImage(this.display_img[i],x, y, null);
y +=100;
}
I am not been able to get all these images displayed on the screen.
Could you pls tell where I am getting this thing wrong.
BY!
gurcharan
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the Swing forum.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!