Scott Kimberly wrote:
So how much of that is one method? It sounds like 1-4 is one method and 5 is a second.
Also I want to createImage and use that instead of BufferedImage for reading in my sprites?
Then create a Graphics2d object and render all my sprites to that object.
And when i dispose of my Graphics2D itll still draw it, disposing just dumps it from memory right? Sends it to garbage collection?
Scott Kimberly wrote:
Is there a way for my to add all the sprites (the final map image) into a Swing Component and then just display that component rather then draw out the entire thing? If so, which one would be the best at handling it? I really dont need the entire thing to be redrawn, i just need it made once for now.
Karan Hans wrote:what does the following staement mean:
The main() method is static but swing frames are objects so you have to figure how to get your program out of static context. This can be done by creating the application as a class that extends JFrame. the main method then calls the class constructor in effect creating an instance of itself.
mozammil muzza wrote:Hi All,
Do we have any java API to interact with hardware like c, c++ ?
Kedar Thakar wrote:Thanks for the reply. In my case I dont know the exact task and its number. Task can be 100 in number or may grow till lacs. In that case what should be my approach. Also, I woluld like to know the approach I took to change the thread size is correct or not?
Thanks
Jon Swanson wrote:Did I structure this problem wrong? Or do I need some sort of hack like setting a flag before calling the updateWeightPercent() routine and unsetting it when it is finished? I'm leaning that way, but would rather know the right way to handle this sort of thing.
At Th wrote:Thanks for the info. But this will again hardcoding of the thread size.