So i am not able to set icon to the JPanel as we can only set icon to the jframe.
How can i get the jframe object instead of the jpanel object. Import the Java Swing package in order to have access to the set Bounds method.
It looks like the only thing you are threading is the set Visible for the Dialog which would put the dialog in a separate thread. I am working with netbeans for making my desktop application (swings)..I want to edit my frame (like setting icon to the Jframe , etc ) but i couldn't able to do so. I cant see where the jframe object is created and so on. please can anyone tell me how to make changes to jframe manually . I'm assuming you're using the latest Version of Netbeans and you'd have used one the Swing GUI forms for the current file for your project Other than the Source Code being next to the Design tab where you could simple Drag and Drop any Swing Components you could add and customize any events to it by right clicking the Jframe from the design or from the Navigator.I think I have tried some of these things already without success.The weird thing is that when I take this code out and use it in a small simple application it works! Also in my loop I am also calling functions that call functions so all my processing is there.