Resolução atual da tela - RESOLVIDO

3 respostas
Mantu

Olá galera!
Tem como descobrir em tempo de execução em qual resolução está setado o vídeo?

3 Respostas

Fox_McCloud

import java.awt.GraphicsDevice; import java.awt.GraphicsEnvironment; ... GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDisplayMode().getWidth(); GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDisplayMode().getHeight(); GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDisplayMode().getBitDepth(); GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDisplayMode().getRefreshRate(); ...

Mantu

Funfou! Valew!!!

MarcoParanhos

o que é o getBitDepth() e o getRefreshRate() se o getWidth() e o getHeight() já pegam largura e altura ?

Não entendi.
Vlw

Criado 20 de abril de 2006
Ultima resposta 30 de mai. de 2006
Respostas 3
Participantes 3