Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (416)
games submitted by our members
Games in WIP (307)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  JFileChooser, language support  (Read 1529 times)
0 Members and 1 Guest are viewing this topic.
Offline zappsweden

Junior Member




Java games rock!


« Posted 2007-08-28 16:25:49 »

I am wondering, is there any way of replacing these

"Look in"
"File Name"
"Type of File"
"Cancel"

With language strings so I can support more than English? Am I wrong, maybe those translations already exist in Java but I need to set the localization somehow to get them??
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 463
Projects: 4


Hand over your head.


« Reply #1 - Posted 2007-08-28 16:41:04 »

http://www.google.com/search?q=jfilechooser+locale (see first hit)

Then use JFileChooser.setLocale(Locale);

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Projects: Revenge of the Titans, Titan Attacks, Droid Assault, and Ultratron
Offline broumbroum

Junior Member





« Reply #2 - Posted 2007-08-28 18:50:10 »

it roughly depends on your system settings, if you want to load different locales ( i.e. languages ), there are locales package plugins to put in your classpath.

::::... :..... :::::: ;;;:::™ b23:production 2006 GNU/GPL @ http://b23prodtm.webhop.info
on sf.net: /projects/sf3jswing
Java (1.6u10 plz) Web Start pool
dev' VODcast[/ur
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
mrbenebob (16 views)
2013-06-19 05:55:23

BrassApparatus (25 views)
2013-06-18 23:52:37

NegativeZero (28 views)
2013-06-18 18:31:52

NegativeZero (31 views)
2013-06-18 18:24:09

Jesse_Attard (34 views)
2013-06-18 13:03:02

HeroesGraveDev (71 views)
2013-06-15 14:35:23

Vermeer (70 views)
2013-06-14 11:08:06

davedes (72 views)
2013-06-14 07:03:55

alaslipknot (64 views)
2013-06-12 22:56:31

Roquen (88 views)
2013-06-11 19:12:32
Smoothing Algorithm Question
by UprightPath
2013-05-27 17:58:26

Smoothing Algorithm Question
by UprightPath
2013-05-27 17:57:33

Complex number cookbook
by Roquen
2013-04-24 03:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 07:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 07:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 07:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 08:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 07:17:38
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!