ola pessoal, blz…
eu fiz a traducao do jfilechooser mas ela nao funciona, simplesmente mostra o original em ingles, alguem sabe porque??
eu fiz o codigo do tipo desse para todos textos do filechooser:
ola pessoal, blz…
eu fiz a traducao do jfilechooser mas ela nao funciona, simplesmente mostra o original em ingles, alguem sabe porque??
eu fiz o codigo do tipo desse para todos textos do filechooser:
Tente o seguinte:
Depois poste ai se funcionou.
[]'s
descobri, como fazer eh soh dar um updateUI() no filechooser depois de setar todos os textos, e nao precisa de getDefaults()
eu achei o seguinte codigo no java.sun que mostra tudo sobre UIManager
import java.util.Collection;
import java.util.Enumeration;
import java.util.Iterator;
import java.util.Vector;
import javax.swing.UIDefaults;
import javax.swing.UIManager;
import javax.swing.UIManager.LookAndFeelInfo;
/**
*
*/
public class UIInformation
{
public static void main( String[] args )
{
getUIInfo();
}
/**
*
*/
public static void getUIInfo()
{
StringBuffer buffer = new StringBuffer();
final String tmp = "#################";
final String del = tmp + tmp + tmp + tmp;
buffer.append( "\n" + del + "\n" );
buffer.append( "Default look and feel:\n" );
buffer.append( "\t" + UIManager.getLookAndFeel().getID() + "\n" );
buffer.append( "\t" + UIManager.getLookAndFeel().getName() + "\n");
buffer.append( "\t" + UIManager.getLookAndFeel().getDescription() );
buffer.append( "\n\n" );
buffer.append( "System look and feel:\n" );
buffer.append( "\t" + UIManager.getSystemLookAndFeelClassName() + "\n" );
buffer.append( "\n\n" );
buffer.append( "Cross platform look and feel:\n" );
buffer.append( "\t" + UIManager.getCrossPlatformLookAndFeelClassName() + "\n" );
buffer.append( "\n\n" );
buffer.append( "Installed look and feel:\n" );
UIManager.LookAndFeelInfo lafInfo[] = UIManager.getInstalledLookAndFeels();
for ( int i = 0; i < lafInfo.length; i++ ) {
buffer.append( "\t" + lafInfo[ i ].getName() + "\t" );
buffer.append( "\t" + lafInfo[ i ].getClassName() + "\n");
}
buffer.append( "\n\n" );
int i;
Collection col;
Enumeration enum;
UIDefaults uid = UIManager.getDefaults();
buffer.append( "Keys:\n" );
i = 1;
for ( enum = uid.keys(); enum.hasMoreElements(); i++ )
buffer.append( i + ".\t " + enum.nextElement() + "\n" );
buffer.append( "\n" );
buffer.append( "Key-Values:\n" );
i = 1;
for ( enum = uid.keys(); enum.hasMoreElements(); i++ )
buffer.append( i + ".\t " + uid.get( enum.nextElement() ) + "\n" );
buffer.append( "\n" );
buffer.append( "Values:\n" );
i = 1;
col = uid.values();
for ( Iterator it = col.iterator(); it.hasNext(); i++ )
buffer.append( i + ".\t " + it.next() + "\n" );
buffer.append( "\n" + del + "\n" );
try {
java.io.File file = new java.io.File( ".\\UIInfo.txt" );
java.io.OutputStreamWriter osw = new java.io.OutputStreamWriter(
new java.io.FileOutputStream( file ) );
osw.write( buffer.toString() , 0 , buffer.length() );
osw.close();
}
catch ( Exception ex ) {
}
// System.out.println( buffer.toString() );
}
}