pls tell me about the concept of JPanel, why we are using that even frame also does the same job, why we are using getContentPane method the below codings are executed similarly but wat will be the exact use of this and which situation we had to use. . . . . .
frame.getContentPane.add(panel,BorderLayout.CENTER);
is same for
frame.add(panel,BorderLayout.CENTER);
images = new ImageIcon("images/img" + i + ".gif");
i cant understand this line..please explain..then what is the name of the first image and what is the name of the second image.?
then assume that i've four images named as 123.jpg,124.jpg, 125.jpg, 126.jpg. How the above program converted to animate the four images?
imageRajesh June 3, 2011 at 9:04 PM
which folder do I put the image on, I tried putting below the code but I am not getting the image, but the code runds without the message
about JPanelmathi October 21, 2011 at 5:01 PM
pls tell me about the concept of JPanel, why we are using that even frame also does the same job, why we are using getContentPane method the below codings are executed similarly but wat will be the exact use of this and which situation we had to use. . . . . . frame.getContentPane.add(panel,BorderLayout.CENTER); is same for frame.add(panel,BorderLayout.CENTER);
Image savingShruthi February 1, 2012 at 3:25 PM
please mention how to save the image and where??
doubtMPrabhakaran August 5, 2012 at 9:34 PM
images = new ImageIcon("images/img" + i + ".gif"); i cant understand this line..please explain..then what is the name of the first image and what is the name of the second image.? then assume that i've four images named as 123.jpg,124.jpg, 125.jpg, 126.jpg. How the above program converted to animate the four images?
Post your Comment