Search:

Type: Posts; User: chronoz13

Search: Search took 0.07 seconds.

  1. Replies
    12
    Views
    2,980

    [SOLVED] Re: I cant load the icon!!!!

    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..
  2. Replies
    12
    Views
    2,980

    [SOLVED] Re: I cant load the icon!!!!

    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...
  3. Replies
    12
    Views
    2,980

    [SOLVED] Re: I cant load the icon!!!!

    and which of the two is better to prevent some loading errors..
    which one do you prefer most?
  4. Replies
    12
    Views
    2,980

    [SOLVED] Re: I cant load the icon!!!!

    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..
  5. Replies
    12
    Views
    2,980

    [SOLVED] Re: I cant load the icon!!!!

    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...
  6. Replies
    12
    Views
    2,980

    [SOLVED] Re: I cant load the icon!!!!

    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...
  7. Replies
    12
    Views
    2,980

    [SOLVED] I cant load the icon!!!!

    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();
Results 1 to 7 of 7