Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / August 2004

Tip: Looking for answers? Try searching our database.

Enable AA font globally

Thread view: 
Aquila Deus - 30 Aug 2004 10:30 GMT
Hi all!

on jdk 1.4:

(src.zip) javax\swing\JComponent.java, protected void paintComponent(Graphics g)

add:

Graphics2D g2d = (Graphics2D) g;
g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
                    RenderingHints.VALUE_TEXT_ANTIALIAS_ON);

Compile and add it to rt.jar

Cheers!
Andrew Thompson - 30 Aug 2004 11:14 GMT
> Hi all!

G'Day!

<snip lovely description of program>

> Cheers!

No worries!  

Feel free to pop back in later if
you have any questions..

Signature

Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology

Aquila Deus - 31 Aug 2004 05:29 GMT
> Hi all!
>
[quoted text clipped - 9 lines]
>
> Compile and add it to rt.jar

Screenshot: http://www.aquila-deus.no-ip.org/main/aajava.png
Andrew Thompson - 31 Aug 2004 06:18 GMT
> http://www.aquila-deus.no-ip.org/main/aajava.png

Just how *big* is that .png?

I have a screen-size of 1024*768 and ADSL at the
moment, and was interested to see the 'scan-lines'
of an image larger than my screen, begin to appear.

After 4 seconds the progress bar was no more than
quarter, so I abandonned it.

Please note that if you halve the (width/height)
of an image and drop the color depth to 16 (quite
sufficient for most technical uses) for PNG/GIF
or push the compression ratio way up for JPG,
you can easily  reduce the disk size of an image
by a factor of 10, though a ratio of 30-40 is
not impossible.

Hey.. *paint* a picture, it can sometimes explain
exactly what you need/is wrong, but make it *small*.

Signature

Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology

Aquila Deus - 31 Aug 2004 12:50 GMT
> > http://www.aquila-deus.no-ip.org/main/aajava.png
>
> Just how *big* is that .png?

717KB, 16M color, 1536x1152 (the biggest resolution I can get)

> I have a screen-size of 1024*768 and ADSL at the
> moment, and was interested to see the 'scan-lines'
> of an image larger than my screen, begin to appear.
>
> After 4 seconds the progress bar was no more than
> quarter, so I abandonned it.

Ahhh... Sorry for that, it must be because my resin was still in swap
memory when you visited my site. Maybe I should use it with apache...

> Please note that if you halve the (width/height)
> of an image and drop the color depth to 16 (quite
[quoted text clipped - 3 lines]
> by a factor of 10, though a ratio of 30-40 is
> not impossible.

The color channel is 64K, but psp's png saving supports only either
256 or 16M (is this png's limitation?)

> Hey.. *paint* a picture, it can sometimes explain
> exactly what you need/is wrong, but make it *small*.

This also explains the slowness of java app :)
Aquila Deus - 31 Aug 2004 23:16 GMT
> > http://www.aquila-deus.no-ip.org/main/aajava.png
>
> Just how *big* is that .png?

http://aquila-deus.myweb.hinet.net/aajava.jpg

This should be small enough :)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.