I want to implement two button in a toolstrip, when click one button , the handler will hide another one button. But Button.setVisible(false) can't work.
ToolStripSeparator.setVisible(false) can't work, also.
08:51:04.437 [ERROR] [firstgwt] 08:51:04.437:MUP6[E]:WARN:drawing:isc_ToolStripButton_0_label:draw() called on widget with current drawn state: complete, use redraw() instead.
Class.getStackTrace(_1=>undef, _2=>undef, _3=>undef, _4=>undef) Canvas.readyToDraw() Canvas.draw(_1=>undef, undef, undef) StatefulCanvas.draw(_1=>undef, _2=>undef, _3=>undef) Canvas.predrawPeers() ** recursed on Canvas.draw
com.smartgwt.client.core.JsObject$SGWT_WARN: 08:51:04.437:MUP6[E]:WARN:drawing:isc_ToolStripButton_0_label:draw() called on widget with current drawn state: complete, use redraw() instead.
Class.getStackTrace(_1=>undef, _2=>undef, _3=>undef, _4=>undef) Canvas.readyToDraw() Canvas.draw(_1=>undef, undef, undef) StatefulCanvas.draw(_1=>undef, _2=>undef, _3=>undef) Canvas.predrawPeers() ** recursed on Canvas.draw
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1669)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:401)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222)
at java.lang.Thread.run(Thread.java:619)
ToolStripSeparator.setVisible(false) can't work, also.
08:51:04.437 [ERROR] [firstgwt] 08:51:04.437:MUP6[E]:WARN:drawing:isc_ToolStripButton_0_label:draw() called on widget with current drawn state: complete, use redraw() instead.
Class.getStackTrace(_1=>undef, _2=>undef, _3=>undef, _4=>undef) Canvas.readyToDraw() Canvas.draw(_1=>undef, undef, undef) StatefulCanvas.draw(_1=>undef, _2=>undef, _3=>undef) Canvas.predrawPeers() ** recursed on Canvas.draw
com.smartgwt.client.core.JsObject$SGWT_WARN: 08:51:04.437:MUP6[E]:WARN:drawing:isc_ToolStripButton_0_label:draw() called on widget with current drawn state: complete, use redraw() instead.
Class.getStackTrace(_1=>undef, _2=>undef, _3=>undef, _4=>undef) Canvas.readyToDraw() Canvas.draw(_1=>undef, undef, undef) StatefulCanvas.draw(_1=>undef, _2=>undef, _3=>undef) Canvas.predrawPeers() ** recursed on Canvas.draw
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1669)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:401)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222)
at java.lang.Thread.run(Thread.java:619)
Comment