Escolar Documentos
Profissional Documentos
Cultura Documentos
Apostila de Java-Exe e Look
Apostila de Java-Exe e Look
Esverdeado:
UIManager.put( "nimbusBase", new Color( 59, 140, 47 ) );
UIManager.put( "nimbusBlueGrey", new Color( 170, 190, 184 ) );
UIManager.put( "control", new Color( 214, 223, 220 ) );
try {
for ( LookAndFeelInfo info : UIManager.getInstalledLookAndFeels() ) {
if ( "Nimbus".equals( info.getName() ) ) {
UIManager.setLookAndFeel( info.getClassName() );
break;
}
}
} catch ( UnsupportedLookAndFeelException exc ) {
exc.printStackTrace();
} catch ( ClassNotFoundException exc ) {
exc.printStackTrace();
} catch ( InstantiationException exc ) {
exc.printStackTrace();
} catch ( IllegalAccessException exc ) {
exc.printStackTrace();
}
Alaranjado:
UIManager.put( "nimbusBase", new Color( 140, 103, 59 ) );
UIManager.put( "nimbusBlueGrey", new Color( 190, 189, 170 ) );
UIManager.put( "control", new Color( 221, 223, 212 ) );
Avermelhado:
UIManager.put( "nimbusBase", new Color( 140, 42, 42 ) );
UIManager.put( "nimbusBlueGrey", new Color( 190, 167, 167 ) );
UIManager.put( "control", new Color( 223, 215, 214 ) );
Tons de cinza:
UIManager.put( "nimbusBase", new Color( 81, 81, 81 ) );
UIManager.put( "nimbusBlueGrey", new Color( 190, 190, 190 ) );
UIManager.put( "control", new Color( 223, 223, 223 ) );
PARA CRIAR EXECUTAVEL EM JAVA:
2. Selecionar a opção LIMPAR E CONSTRUIR, onde será criado o arquivo .JAR (executável em
Java)
3. Para verificar se o arquivo foi criado com sucesso, vá até a pasta onde o projeto está salvo e
selecione a pasta dist, dentro da pasta está o jar executável.