Witam,
mam problem z programem napisanym w javie. Otóż program ten uruchamia się tylko na moim komputerze. Wysyłam program:
http://www.sendspace.pl/file/7d0223ee3075b2e54b2ead9
Od czego to może zależeć? Jedynie w kodzie co może budzić wątpliwości jest kod odpowiadający za przezroczystość tła i dowolny kształt.
import static java.awt.GraphicsDevice.WindowTranslucency.*;
GraphicsEnvironment ge =
GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice gd = ge.getDefaultScreenDevice();
boolean isPerPixelTranslucencySupported =
gd.isWindowTranslucencySupported(PERPIXEL_TRANSLUCENT);
//If translucent windows aren't supported, exit.
if (!isPerPixelTranslucencySupported) {
System.out.println(
"Per-pixel translucency is not supported");
System.exit(0);
}
JFrame.setDefaultLookAndFeelDecorated(true);