Displaying image in swing:
For displaying image, we can use the method drawImage() of Graphics class. |
Syntax of drawImage() method:
|
Example of displaying image in swing:
![Example of displaying image in swing](https://www.javatpoint.com/images/swingimage.jpg)
Java Tutorial, Java Study, Learn Java, Java Lab@home, Java Cycle test, Java Projects, Java Assignments, Java Notes and much more..
For displaying image, we can use the method drawImage() of Graphics class. |
|
No comments:
Post a Comment