Eliosoft / elios

Entertainment LIghting Open source Software a.k.a ELIOS is a Java application that provides remote management capabilities to your lighting system based on Art-Net. This project is released under GPL v3.
http://www.eliosoft.net
GNU General Public License v3.0
7 stars 3 forks source link

Add fullscreen mode #24

Closed acollign closed 12 years ago

acollign commented 14 years ago

A full screen mode could be useful for device with touchscreen capabilities

acollign commented 13 years ago

Could be easily enable with http://download.oracle.com/javase/tutorial/extra/fullscreen/exclusivemode.html (tested !)

jgastonraoul commented 13 years ago

just do it !

acollign commented 13 years ago

First release in 1110974485f8f3542d564a04a6983a5a76b1aa3c but I didn't work on layout issues... so Elios is really ugly in fullscreen mode !

jgastonraoul commented 13 years ago

layout changed in remote view : see #42

acollign commented 13 years ago

looks great .... and big on a 1920x1080 resolution screen :D

jgastonraoul commented 13 years ago

Before release 0.2, we have to finish the following things for this issue :

jgastonraoul commented 13 years ago

I've found another bug on my tablet when switching off fullscreen. Here is the stacktrace : Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Invalid display mode at sun.awt.X11GraphicsDevice.setDisplayMode(X11GraphicsDevice.java:413) at sun.awt.X11GraphicsDevice.setFullScreenWindow(X11GraphicsDevice.java:352) at java.awt.Window$1DisposeAction.run(Window.java:999) at java.awt.Window.doDispose(Window.java:1028) at java.awt.Window.dispose(Window.java:975) at net.eliosoft.elios.main.ToolbarFactory.turnOffFullScreen(Unknown Source) at net.eliosoft.elios.main.ToolbarFactory.access$100(Unknown Source) at net.eliosoft.elios.main.ToolbarFactory$2.actionPerformed(Unknown Source) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404) at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:308) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:253) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289) at java.awt.Component.processMouseEvent(Component.java:6108) at javax.swing.JComponent.processMouseEvent(JComponent.java:3276) at java.awt.Component.processEvent(Component.java:5873) at java.awt.Container.processEvent(Container.java:2105) at java.awt.Component.dispatchEventImpl(Component.java:4469) at java.awt.Container.dispatchEventImpl(Container.java:2163) at java.awt.Component.dispatchEvent(Component.java:4295) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055) at java.awt.Container.dispatchEventImpl(Container.java:2149) at java.awt.Window.dispatchEventImpl(Window.java:2478) at java.awt.Component.dispatchEvent(Component.java:4295) at java.awt.EventQueue.dispatchEvent(EventQueue.java:604) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177) at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

an idea ?

acollign commented 13 years ago

I have no idea ! Maybe we could set a flag (in the preferences system) if the problem occured so we have the ability to disable the fullscreen mode the next time.

acollign commented 13 years ago

I added some dummy error handling on full screen mode switching. Could you try to test on your device ?

acollign commented 12 years ago

I externalized the application state so we could now dispose the frame without shutting down the artnet server. Checkout ea683599e08c8a93d37aedca2733d9f5c52308d7 and tell me if it is ok for you

acollign commented 12 years ago

Could we consider that as closed ?

acollign commented 12 years ago

Need review !

jgastonraoul commented 12 years ago

It seems to be ok !