Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JInternalFrame Icons  RSS feed

 
Matt James
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am using a JInternalFrame with a Windows look and feel - when I set the icon with setFrameIcon it does not seem to draw it properly, and only partially shows the image. It is fine on the main JFrame however.

I have also tried:

UIManager.put("InternalFrame.icon", new javax.swing.ImageIcon(<my image path> ;

Has anyone got any ideas where I am going wrong ?

Thanks in anticipation

Matt
 
Nacho Espinosa
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check if you layer is the problem.

Maybe you use a layer that is more small that you Image.
 
Matt James
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply - but I found a solution. I made the image 16 by 16 and it now works fine. This confused me as the bigger image 48 by 48 was OK in the JFrame, but the JInternalFrame - but there you go

Cheers

Matt
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!