Help someone with non-Windows

Hello guys,

I’ve made a nice component-change effect with swing, using only Java (no natives or smth). Works good on Win, but behaves as if nothing happened on Mac (didn’t test it on Linux). Could someone please run it on Mac and tell me if there any exceptions? BTW, if i works and you like it, I can share the code.

http://voituk.kiev.ua/demo/ws/fade/fade.jnlp

Ah, great. This wasn’t MacOS, this was Java 5.

I’ve compiled with target JVM 1.5 and still it didn’t warn me that I’m using method that is available from 1.6 only. Well, how could compiler know that.

Just in case: the method was AlphaComposite.derive.

Anyway, have a look at my bubbles-fade-out effect :slight_smile:

Neat little effect there :slight_smile:

Cas :slight_smile:

very nice indeed ;D

are you willing to give us some insight and/or share a code sample! I would really like to try that on my programs.

Just ran on a Mac that only has Java 1.5. No exceptions!

(cool effect)

[quote]are you willing to give us some insight and/or share a code sample!
[/quote]
Yeap sure, I’ll put this sample on “Shared Code” in a few hours.

Here they are: http://www.java-gaming.org/index.php/topic,19243.0.html

I get this under Linux but it works fine:

java.security.AccessControlException: access denied (java.util.PropertyPermission java.net.useSystemProxies write)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
at java.security.AccessController.checkPermission(AccessController.java:546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.System.setProperty(System.java:727)
at com.juriy.fadeout.SettingsScreen.detectSystemProxy(SettingsScreen.java:115)
at com.juriy.fadeout.SettingsScreen.createGUI(SettingsScreen.java:95)
at com.juriy.fadeout.SettingsScreen.(SettingsScreen.java:36)
at com.juriy.fadeout.FadeoutDemo.startFade(FadeoutDemo.java:120)
at com.juriy.fadeout.FadeoutDemo.access$000(FadeoutDemo.java:26)
at com.juriy.fadeout.FadeoutDemo$1.actionPerformed(FadeoutDemo.java:64)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6041)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5806)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

Ah, yeap. That’s due to the second component I use. Change it to Whatever-Other-JComponent and it’ll work fine.

Currently I’m making a proxy selection dialog for desktop app. There’s nothing unusual in this exception in the default WebStart sandbox.

Looks nice! (on a Mac :slight_smile: )