so you mean sir.. URL class is better for getting an image in my case..?... i will just follow your suggestions.. i dont want to take any risk in my project....tnx!
anyway..
Type: Posts; User: chronoz13
so you mean sir.. URL class is better for getting an image in my case..?... i will just follow your suggestions.. i dont want to take any risk in my project....tnx!
anyway..
can you check this one sir Json.. this one adjusts the image... in a quite amount
.getScaledInstance(300, 300, 0)
the complete block for my image icon is this
Image icon = new...
and which of the two is better to prevent some loading errors..
which one do you prefer most?
using this way of yours sir copeg.. what method should i use to call this object to load an image..
the setIconImage(), doesnt accept a URL object..
the icon is alreay loaded in the frame.. a follow up question.. if i load the image in a frame.. will the JVM set the image size into a default? i mean theres no way i can adjust its dimension just a...
never had any idea that i have to set the path of the file exactly ... all the references that im reading in google is just telling me that i just have to type the file name including the file...
import java.awt.Image;
import java.awt.Toolkit;
import javax.swing.JFrame;
public class Main {
public static void main(String[] args) {
JFrame frame = new JFrame();