Maximize a window in a method

Questions and answers for designing and implementing forms in Servoy

Postby pbakker » Wed Aug 04, 2004 1:38 pm

My soon to release Tools plugin will have a function to maximize the main application window.

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Re: Maximize a window in a method

Postby Harjo » Wed Jun 22, 2011 12:22 pm

This is very old topic, but still in 5.x there is not a (simple) method to maximize the main-window!

(yes you can work-around, a lot, but still there is no cross platform solution, that always works correct, and btw: all those workarounds are not really maximizing the window, it's all about setting a window size.)

I agree fully with Johan, that every time I open a solution, and my sizes, or positions are changed every time, I really hate that too!!
So that's not I want. I want to set a size(that's possible) or maximize (not possible) the the main-window, only the first time

If you download for the first time a Servoy Client, it is opened, in such a (IMHO ridiculous) small window, that developers are tempted to tune it.

Also,if you look at Microsoft Word, Excel, or openOffice they are ALL started maximized on Windows (only the first time!)

So, still hoping, that there is some room, for enhancement in this area.... :roll: :wink:
Harjo Kompagnie
Direct ICT / Servoy Hosting / ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
User avatar
Harjo
 
Posts: 4307
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Maximize a window in a method

Postby pbakker » Wed Jun 22, 2011 12:56 pm

Very old topic indeed.

Already possible in Servoy 6.0: see plugins.window.maximize()

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Re: Maximize a window in a method

Postby Harjo » Wed Jun 22, 2011 1:30 pm

ahh. that one I missed! thanks!!

(maybe already,, should be: finally!) :lol:
Harjo Kompagnie
Direct ICT / Servoy Hosting / ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
User avatar
Harjo
 
Posts: 4307
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Maximize a window in a method

Postby ptalbot » Wed Jun 22, 2011 2:38 pm

If you look at the window plugin, you will see that there is a maximize([windowName]) method in Servoy 6!

I sent a patch to Johan 4 months ago, and he added it to the trunk: https://www.servoyforge.net/projects/servoy/repository/revisions/2540
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
http://www.servoy-stuff.net
https://www.servoyforge.net
--------------------------------------------
Servoy 5.2.16 / 6.0.9 / 6.1.6 / 7.3.1
All OSes / Java 5 & 6 & 7
User avatar
ptalbot
 
Posts: 1616
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC

Re: Maximize a window in a method

Postby amcgilly » Fri Sep 06, 2013 9:47 am

I am having some weird behavior with plugins.window.maximize() on Macs running Java 7 update 25 and Servoy 7.2.

Works fine in Windows.

In Developer on Mac it causes Servoy to hang and I have to force quit.

On smart clients running on Macs, 99% of the time it's not doing anything. Somtimes it works just once, but 99% of the time It seems to grow the main window by just a couple pixels instead of maximizing it. It doesn't generate any errors in the server error log or call the onError method.

To diagnose this I created a test app - all it does is open a form with a button on it that runs the plugins.window.maximize() command and nothing else. When I click the button, Developer crashes. Below is the stack dump from the crash. The dump below says it's running Java 1.6 but the Java Control Panel says Java 7 update 25.

Can anyone tell me what's going on and/or what I'm doing wrong? Thanks!

Code: Select all
Current time: Fri Sep 06 00:21:35 PDT 2013

Server Information
Servoy version 7.2.0 -build 2013
Port used by RMI Registry: 1099
Repository version 43

Current time: Fri Sep 06 00:21:35 PDT 2013

Uptime:  2 minutes 16 seconds

JDK Information
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
java.version=1.6.0_51
java.vm.info=mixed mode
java.vm.vendor=Apple Inc.

Operating System Information
os.name=Mac OS X
os.version=10.8.4
os.arch=x86_64

System Information
Heap Space Memory: allocated=143312K, used=127597K, max=520064K
Non-Heap Space Memory: allocated=246752K, used=166785K, max=311296K
Number of Processors: 2

Thread: pool-2-thread-2, state: WAITING, total cpu time: 0.4ms, total user time: 0.301ms
  sun.misc.Unsafe.park(Native Method)
  java.util.concurrent.locks.LockSupport.park(LockSupport.java:156)
  java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)
  java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:399)
  java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:957)
  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:917)
  java.lang.Thread.run(Thread.java:680)

Thread: http-8080-1, state: RUNNABLE, total cpu time: 238.682ms, total user time: 226.73ms
  sun.management.ThreadImpl.getThreadInfo1(Native Method)
  sun.management.ThreadImpl.getThreadInfo(ThreadImpl.java:154)
  sun.management.ThreadImpl.getThreadInfo(ThreadImpl.java:121)
  com.servoy.j2db.server.servlets.ConfigServlet.Zs(ConfigServlet.java:471)
  com.servoy.j2db.server.servlets.ConfigServlet.service(ConfigServlet.java:1393)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
  org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
  org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
  org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:615)
  org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
  org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
  org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
  java.lang.Thread.run(Thread.java:680)

Thread: pool-3-thread-2, state: WAITING, total cpu time: 20.981ms, total user time: 18.14ms
  sun.misc.Unsafe.park(Native Method)
  java.util.concurrent.locks.LockSupport.park(LockSupport.java:156)
  java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)
  java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:399)
  java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:957)
  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:917)
  java.lang.Thread.run(Thread.java:680)

Thread: pool-3-thread-1, state: WAITING, total cpu time: 28.713ms, total user time: 25.917ms
  sun.misc.Unsafe.park(Native Method)
  java.util.concurrent.locks.LockSupport.park(LockSupport.java:156)
  java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)
  java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:399)
  java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:957)
  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:917)
  java.lang.Thread.run(Thread.java:680)

Thread: TimerQueue, state: WAITING, total cpu time: 1.389ms, total user time: 1.032ms
  java.lang.Object.wait(Native Method)
  javax.swing.TimerQueue.run(TimerQueue.java:232)
  java.lang.Thread.run(Thread.java:680)

Thread: DBGP - Stream manager, state: WAITING, total cpu time: 0.152ms, total user time: 0.042ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.eclipse.dltk.dbgp.internal.packets.DbgpPacketReceiver$PacketWaiter.waitPacket(DbgpPacketReceiver.java:91)
  org.eclipse.dltk.dbgp.internal.packets.DbgpPacketReceiver.getStreamPacket(DbgpPacketReceiver.java:161)
  org.eclipse.dltk.dbgp.internal.DbgpDebugingEngine.getStreamPacket(DbgpDebugingEngine.java:84)
  org.eclipse.dltk.dbgp.internal.managers.DbgpStreamManager.workingCycle(DbgpStreamManager.java:45)
  org.eclipse.dltk.dbgp.internal.DbgpWorkingThread$1.run(DbgpWorkingThread.java:29)
  java.lang.Thread.run(Thread.java:680)

Thread: DBGP - Notification Manager, state: WAITING, total cpu time: 0.197ms, total user time: 0.073ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.eclipse.dltk.dbgp.internal.packets.DbgpPacketReceiver$PacketWaiter.waitPacket(DbgpPacketReceiver.java:91)
  org.eclipse.dltk.dbgp.internal.packets.DbgpPacketReceiver.getNotifyPacket(DbgpPacketReceiver.java:157)
  org.eclipse.dltk.dbgp.internal.DbgpDebugingEngine.getNotifyPacket(DbgpDebugingEngine.java:89)
  org.eclipse.dltk.dbgp.internal.managers.DbgpNotificationManager.workingCycle(DbgpNotificationManager.java:37)
  org.eclipse.dltk.dbgp.internal.DbgpWorkingThread$1.run(DbgpWorkingThread.java:29)
  java.lang.Thread.run(Thread.java:680)

Thread: Debug command reader, state: RUNNABLE, total cpu time: 11.43ms, total user time: 8.714ms
  java.net.SocketInputStream.socketRead0(Native Method)
  java.net.SocketInputStream.read(SocketInputStream.java:129)
  java.net.SocketInputStream.read(SocketInputStream.java:182)
  java.io.FilterInputStream.read(FilterInputStream.java:66)
  org.eclipse.dltk.rhino.dbgp.DBGPDebugger.run(DBGPDebugger.java:453)

Thread: DBGP - Packet receiver, state: RUNNABLE, total cpu time: 17.736ms, total user time: 16.515ms
  java.net.SocketInputStream.socketRead0(Native Method)
  java.net.SocketInputStream.read(SocketInputStream.java:129)
  java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
  java.io.BufferedInputStream.read(BufferedInputStream.java:237)
  org.eclipse.dltk.dbgp.internal.DbgpRawPacket.readPacketSize(DbgpRawPacket.java:28)
  org.eclipse.dltk.dbgp.internal.DbgpRawPacket.readPacket(DbgpRawPacket.java:75)
  org.eclipse.dltk.dbgp.internal.packets.DbgpPacketReceiver.workingCycle(DbgpPacketReceiver.java:123)
  org.eclipse.dltk.dbgp.internal.DbgpWorkingThread$1.run(DbgpWorkingThread.java:29)
  java.lang.Thread.run(Thread.java:680)

Thread: Provisioning Event Dispatcher, state: WAITING, total cpu time: 3.327ms, total user time: 2.38ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:400)
  org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:336)

Thread: Script Debug accept thread, state: RUNNABLE, total cpu time: 2.799ms, total user time: 2.072ms
  java.net.PlainSocketImpl.socketAccept(Native Method)
  java.net.PlainSocketImpl.accept(PlainSocketImpl.java:439)
  java.net.ServerSocket.implAccept(ServerSocket.java:468)
  java.net.ServerSocket.accept(ServerSocket.java:436)
  com.servoy.j2db.debug.RemoteDebugScriptEngine$2.run(RemoteDebugScriptEngine.java:161)
  java.lang.Thread.run(Thread.java:680)

Thread: Java indexing, state: WAITING, total cpu time: 0.192ms, total user time: 0.062ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.eclipse.jdt.internal.core.search.processing.JobManager.run(JobManager.java:382)
  java.lang.Thread.run(Thread.java:680)

Thread: MultiThreadedHttpConnectionManager cleanup, state: WAITING, total cpu time: 0.151ms, total user time: 0.066ms
  java.lang.Object.wait(Native Method)
  java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
  java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)
  org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ReferenceQueueThread.run(MultiThreadedHttpConnectionManager.java:1122)

Thread: Timer-0, state: WAITING, total cpu time: 0.129ms, total user time: 0.045ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  java.util.TimerThread.mainLoop(Timer.java:483)
  java.util.TimerThread.run(Timer.java:462)

Thread: org.eclipse.dltk.internal.ui.text.ScriptReconciler, state: TIMED_WAITING, total cpu time: 3728.751ms, total user time: 3644.301ms
  java.lang.Object.wait(Native Method)
  org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:179)

Thread: Bundle File Closer, state: WAITING, total cpu time: 12.278ms, total user time: 6.713ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:400)
  org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:336)

Thread: AWT-EventQueue-0, state: RUNNABLE, total cpu time: 2936.778ms, total user time: 2876.531ms
  apple.awt.CWindow._setState(Native Method)
  apple.awt.CWindow.setState(CWindow.java:775)
  java.awt.Frame.setExtendedState(Frame.java:687)
  com.servoy.extensions.plugins.window.WindowProvider.js_maximize(WindowProvider.java:1600)
  com.servoy.extensions.plugins.window.WindowProvider.js_maximize(WindowProvider.java:1580)
  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  java.lang.reflect.Method.invoke(Method.java:597)
  org.mozilla.javascript.MemberBox.invoke(MemberBox.java:158)
  org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:312)
  org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1774)
  org.mozilla.javascript.Interpreter.interpret(Interpreter.java:837)
  org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:158)
  org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:406)
  org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3204)
  org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:156)
  com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:616)
  com.servoy.j2db.debug.RemoteDebugScriptEngine.executeFunction(RemoteDebugScriptEngine.java:393)
  com.servoy.j2db.FormController.executeFunction(FormController.java:4983)
  com.servoy.j2db.FormController.executeFunction(FormController.java:4865)
  com.servoy.j2db.FormController.executeFunction(FormController.java:4732)
  com.servoy.j2db.FormController$ScriptExecuter.executeFunction(FormController.java:4577)
  com.servoy.j2db.ui.BaseEventExecutor.fireEventCommand(BaseEventExecutor.java:276)
  com.servoy.j2db.ui.BaseEventExecutor.fireActionCommand(BaseEventExecutor.java:218)
  com.servoy.j2db.ui.BaseEventExecutor.fireActionCommand(BaseEventExecutor.java:213)
  com.servoy.j2db.smart.dataui.AbstractScriptButton$2.actionPerformed(AbstractScriptButton.java:660)
  javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
  javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
  javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
  javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
  javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
  java.awt.Component.processMouseEvent(Component.java:6414)
  javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
  java.awt.Component.processEvent(Component.java:6179)
  java.awt.Container.processEvent(Container.java:2083)
  java.awt.Component.dispatchEventImpl(Component.java:4776)
  java.awt.Container.dispatchEventImpl(Container.java:2141)
  java.awt.Component.dispatchEvent(Component.java:4604)
  java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4619)
  java.awt.LightweightDispatcher.processMouseEvent(Container.java:4280)
  java.awt.LightweightDispatcher.dispatchEvent(Container.java:4210)
  java.awt.Container.dispatchEventImpl(Container.java:2127)
  java.awt.Window.dispatchEventImpl(Window.java:2489)
  java.awt.Component.dispatchEvent(Component.java:4604)
  java.awt.EventQueue.dispatchEventImpl(EventQueue.java:717)
  java.awt.EventQueue.access$400(EventQueue.java:82)
  java.awt.EventQueue$2.run(EventQueue.java:676)
  java.awt.EventQueue$2.run(EventQueue.java:674)
  java.security.AccessController.doPrivileged(Native Method)
  java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
  java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:97)
  java.awt.EventQueue$3.run(EventQueue.java:690)
  java.awt.EventQueue$3.run(EventQueue.java:688)
  java.security.AccessController.doPrivileged(Native Method)
  java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
  java.awt.EventQueue.dispatchEvent(EventQueue.java:687)
  java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
  java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
  java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
  java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
  java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
  java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Thread: Worker-4, state: TIMED_WAITING, total cpu time: 70.734ms, total user time: 63.866ms
  java.lang.Object.wait(Native Method)
  org.eclipse.core.internal.jobs.WorkerPool.sleep(WorkerPool.java:188)
  org.eclipse.core.internal.jobs.WorkerPool.startJob(WorkerPool.java:220)
  org.eclipse.core.internal.jobs.Worker.run(Worker.java:50)

Thread: Worker-3, state: WAITING, total cpu time: 49.743ms, total user time: 44.027ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.eclipse.dltk.dbgp.internal.packets.DbgpPacketReceiver$ResponcePacketWaiter.waitPacket(DbgpPacketReceiver.java:52)
  org.eclipse.dltk.dbgp.internal.packets.DbgpPacketReceiver.getResponsePacket(DbgpPacketReceiver.java:166)
  org.eclipse.dltk.dbgp.internal.DbgpDebugingEngine.getResponsePacket(DbgpDebugingEngine.java:94)
  org.eclipse.dltk.dbgp.internal.commands.DbgpDebuggingEngineCommunicator.receiveResponse(DbgpDebuggingEngineCommunicator.java:44)
  org.eclipse.dltk.dbgp.internal.commands.DbgpDebuggingEngineCommunicator.communicate(DbgpDebuggingEngineCommunicator.java:69)
  org.eclipse.dltk.dbgp.DbgpBaseCommands.communicate(DbgpBaseCommands.java:43)
  org.eclipse.dltk.dbgp.internal.commands.DbgpContinuationCommands.execCommand(DbgpContinuationCommands.java:35)
  org.eclipse.dltk.dbgp.internal.commands.DbgpContinuationCommands.run(DbgpContinuationCommands.java:43)
  org.eclipse.dltk.dbgp.internal.commands.DbgpCoreCommands.run(DbgpCoreCommands.java:137)
  org.eclipse.dltk.internal.debug.core.model.operations.DbgpResumeOperation.process(DbgpResumeOperation.java:23)
  org.eclipse.dltk.internal.debug.core.model.operations.DbgpOperation$1.run(DbgpOperation.java:64)
  org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Thread: DLTK indexing, state: WAITING, total cpu time: 828.789ms, total user time: 788.789ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.eclipse.dltk.internal.core.search.processing.JobManager.run(JobManager.java:445)
  java.lang.Thread.run(Thread.java:680)

Thread: http-8080-Acceptor-0, state: RUNNABLE, total cpu time: 1.948ms, total user time: 1.42ms
  java.net.PlainSocketImpl.socketAccept(Native Method)
  java.net.PlainSocketImpl.accept(PlainSocketImpl.java:439)
  java.net.ServerSocket.implAccept(ServerSocket.java:468)
  java.net.ServerSocket.accept(ServerSocket.java:436)
  org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:61)
  org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:352)
  java.lang.Thread.run(Thread.java:680)

Thread: ContainerBackgroundProcessor[StandardEngine[Catalina]], state: TIMED_WAITING, total cpu time: 8.642ms, total user time: 6.406ms
  java.lang.Thread.sleep(Native Method)
  org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1631)
  java.lang.Thread.run(Thread.java:680)

Thread: ModificationWatcher Task, state: TIMED_WAITING, total cpu time: 2.973ms, total user time: 2.442ms
  java.lang.Thread.sleep(Native Method)
  org.apache.wicket.util.time.Duration.sleep(Duration.java:445)
  org.apache.wicket.util.thread.Task$1.run(Task.java:130)
  java.lang.Thread.run(Thread.java:680)

Thread: Java2D Disposer, state: WAITING, total cpu time: 1.49ms, total user time: 1.2ms
  java.lang.Object.wait(Native Method)
  java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
  java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)
  sun.java2d.Disposer.run(Disposer.java:127)
  java.lang.Thread.run(Thread.java:680)

Thread: pool-2-thread-1, state: TIMED_WAITING, total cpu time: 0.709ms, total user time: 0.546ms
  sun.misc.Unsafe.park(Native Method)
  java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:196)
  java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2025)
  java.util.concurrent.DelayQueue.take(DelayQueue.java:164)
  java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:609)
  java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:602)
  java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:957)
  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:917)
  java.lang.Thread.run(Thread.java:680)

Thread: PingScanner, state: TIMED_WAITING, total cpu time: 0.726ms, total user time: 0.451ms
  java.lang.Object.wait(Native Method)
  com.servoy.j2db.dataprocessing.Zn.run(Zn.java:11)
  java.lang.Thread.run(Thread.java:680)

Thread: MessageScheduler, state: TIMED_WAITING, total cpu time: 1.973ms, total user time: 1.517ms
  java.lang.Object.wait(Native Method)
  com.servoy.j2db.dataprocessing.Zp.run(Zp.java:59)
  java.lang.Thread.run(Thread.java:680)

Thread: AWT-Shutdown, state: WAITING, total cpu time: 0.287ms, total user time: 0.058ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:265)
  java.lang.Thread.run(Thread.java:680)

Thread: Worker-0, state: TIMED_WAITING, total cpu time: 47.377ms, total user time: 42.193ms
  java.lang.Object.wait(Native Method)
  org.eclipse.core.internal.jobs.WorkerPool.sleep(WorkerPool.java:188)
  org.eclipse.core.internal.jobs.WorkerPool.startJob(WorkerPool.java:220)
  org.eclipse.core.internal.jobs.Worker.run(Worker.java:50)

Thread: Worker-JM, state: WAITING, total cpu time: 0.126ms, total user time: 0.048ms
  java.lang.Object.wait(Native Method)
  org.eclipse.core.internal.jobs.InternalWorker.run(InternalWorker.java:58)

Thread: [ThreadPool Manager] - Idle Thread, state: WAITING, total cpu time: 3.964ms, total user time: 3.508ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:106)

Thread: [Timer] - Main Queue Handler, state: TIMED_WAITING, total cpu time: 0.764ms, total user time: 0.409ms
  java.lang.Object.wait(Native Method)
  org.eclipse.equinox.internal.util.impl.tpt.timer.TimerImpl.run(TimerImpl.java:141)
  java.lang.Thread.run(Thread.java:680)

Thread: Framework Event Dispatcher, state: WAITING, total cpu time: 19.762ms, total user time: 17.857ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:400)
  org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:336)

Thread: Start Level Event Dispatcher, state: WAITING, total cpu time: 329.481ms, total user time: 311.528ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:400)
  org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:336)

Thread: State Data Manager, state: TIMED_WAITING, total cpu time: 0.129ms, total user time: 0.035ms
  java.lang.Thread.sleep(Native Method)
  org.eclipse.osgi.internal.baseadaptor.StateManager.run(StateManager.java:297)
  java.lang.Thread.run(Thread.java:680)

Thread: Framework Active Thread, state: TIMED_WAITING, total cpu time: 3.553ms, total user time: 2.326ms
  java.lang.Object.wait(Native Method)
  org.eclipse.osgi.framework.internal.core.Framework.run(Framework.java:1817)
  java.lang.Thread.run(Thread.java:680)

Thread: Signal Dispatcher, state: RUNNABLE, total cpu time: 0.028ms, total user time: 0.011ms

Thread: Finalizer, state: WAITING, total cpu time: 53.938ms, total user time: 49.712ms
  java.lang.Object.wait(Native Method)
  java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
  java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)
  java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:171)

Thread: Reference Handler, state: WAITING, total cpu time: 31.379ms, total user time: 29.832ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)

Thread: main, state: RUNNABLE, total cpu time: 12504.744ms, total user time: 11695.505ms
  apple.awt.CToolkit.doAWTRunLoop(Native Method)
  apple.awt.CToolkit.invokeAndWait(CToolkit.java:1153)
  apple.awt.CToolkit.invokeAndWait(CToolkit.java:1105)
  apple.awt.ComponentModel.handlePaint(ComponentModel.java:323)
  org.eclipse.swt.internal.cocoa.OS.objc_msgSend_bool(Native Method)
  org.eclipse.swt.internal.cocoa.NSRunLoop.runMode(NSRunLoop.java:42)
  org.eclipse.swt.widgets.Display.sleep(Display.java:4573)
  org.eclipse.ui.application.WorkbenchAdvisor.eventLoopIdle(WorkbenchAdvisor.java:364)
  org.eclipse.ui.internal.ide.application.IDEWorkbenchAdvisor.eventLoopIdle(IDEWorkbenchAdvisor.java:917)
  org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2702)
  org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
  org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
  org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
  org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
  org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
  org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
  org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
  org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
  org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
  org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  java.lang.reflect.Method.invoke(Method.java:597)
  org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
  org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
  org.eclipse.equinox.launcher.Main.run(Main.java:1410)

Last edited by amcgilly on Fri Sep 06, 2013 9:38 pm, edited 2 times in total.
Adrian McGilly
Servoy Developer

Image
amcgilly
 
Posts: 374
Joined: Fri Dec 09, 2005 12:03 am
Location: San Francisco, CA

Re: Maximize a window in a method

Postby Harjo » Fri Sep 06, 2013 10:06 am

Did you file a case?
Harjo Kompagnie
Direct ICT / Servoy Hosting / ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
User avatar
Harjo
 
Posts: 4307
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Maximize a window in a method

Postby amcgilly » Fri Sep 06, 2013 10:26 am

Just did. Issue SVY-5052.
Adrian McGilly
Servoy Developer

Image
amcgilly
 
Posts: 374
Joined: Fri Dec 09, 2005 12:03 am
Location: San Francisco, CA

Re: Maximize a window in a method

Postby amcgilly » Tue Sep 10, 2013 2:49 am

Is anyone else having trouble with plugins.window.maximize() on under Servoy 7.2 on a Mac running Java 7 update 25?

Can anyone confirm that it is working correctly for them in that environment? Not working for me (see above).

Thank you.
Adrian McGilly
Servoy Developer

Image
amcgilly
 
Posts: 374
Joined: Fri Dec 09, 2005 12:03 am
Location: San Francisco, CA

Previous

Return to Forms

Who is online

Users browsing this forum: No registered users and 5 guests