• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Saloon Keeper
Posts: 15510
363
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You don't. I believe the size is always the same, and decided by the OS.
reply
    Bookmark Topic Watch Topic
  • New Topic