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

How to increase the size of title image in a swing application???  RSS feed

 
Sriram Sharma
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a swing application in which I have replaced the swing image (tea cup) with my own image in the title part of the application.
When I say title part, I mean the top most part of the application where the swings usual teacup image gets displayed on the top left corner.
But this image (containing alphabets) is very small and the alphabets are not clearly visible.
As such, the actual image is pretty big and the pixel size is somewhere around 1096x587.
Now, how do I increase the size of this image on the application's title bar?
Wantr to make it big anoug that it appears clearly to the user.

Code that I have used is here below...

ImageIcon acImage = new ImageIcon("newac-logo_big.jpg");
this.setIconImage(acImage.getImage());

Please help me out.... Thanks in advance!

Regards,
Sriram
 
Stephan van Hulst
Saloon Keeper
Posts: 7707
141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't. I believe the size is always the same, and decided by the OS.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!