Explain how to load an image from a file in a java application

Explain how to load an image from a file in a Java application

ImageIcon icon = createImageIcon("images/xyz.gif", "text string");
Difference between a Window and a Frame
Difference between a Window and a Frame - A frame is a resizable, movable window with title bar and close button. Usually it contains Panels...
Explain how to draw text over a background image
How to draw text over a background image - BufferedImage img = ImageIO.read(new File('xxx')); // xxx is the path...
Java drawing AWT components related interview questions
Java drawing AWT components - What is paint method? What should we put in paint method? When is it invoked?...
Post your comment