Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

A gray color box appear d when loading image on JPanel  RSS feed

 
Nikhil V G
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai All,

I m nikhil. I have a doubt that when I load an image in to jpanel using drawImage method of Graphics (G.drawImage(Image img,int width,int higth))...It take more time to load. When loading a gray color box will be appear on Frame. Then image loaded.How to avaoid this gray color.

I think i will get a solution from javaranch.Thanks in advance.

Regards,
NIKHIL
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nikhil, you need to post in Swing/AWT/SWT/JFace Forum.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Nikhil V G",

Two things:

Firstly, please post questions in the appropriate forum. I've moved this one to the Swing forum for you.

Secondly, there aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!