Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg
Bronek wrote:I tried to copy a piece (a panel with components, or some components) of one form to another one - and it's imposible.
Bronek wrote:I can't take a panel and reuse it. So - for example - I want a piece of a form to become a component - so I want to create a new JPanel and to put the components from my 'old' form (a whole panel for example). And I can't do that.
Bronek wrote:And I can't also copy/paste my custom components inside one form.
Bronek wrote:They work fine in NetBeans, but can't be copied in SwingDesigner. It would be great, if SwingDesigner had copying and pasting of custom components feature and copying from one form to another. Without it - when you have a form, and a panel on it - you can't easily make this panel a component - so that you can reuse it. When you have a custom component, and want to copy it because you set some properties and dont' want to do this again for a new component, or if you want to copy a group of three components - a JLabel, a CustomEdit and a JCheckBox - you can't. Copying / pasting is I think very basic operation in for example NetBeans - SwingDesigner lacks it...
Eric Clayberg wrote:There is indeed a problem copying custom widgets (e.g., those added using Choose Bean or added from the Custom Controls palette). The problem is not with the copying itelf but with the classpath resolution during the paste operation. This should be fixed soon.
Bronek wrote:OK - I'm sending you the '.log' file after the problem using e-mail.
Bronek wrote:as in the subject - the last build made all my custom components disapear.
Bronek wrote:Now I can't even add a custom component to a spring layout for example.
Our custom components can be handled by NetBeans - so it's done without errors - and, they could be handled by the previous build. So - I could not make a small example. I'm sending you by e-mail the .log file and the source file.
!ENTRY org.eclipse.ui 4 4 lis 03, 2004 09:56:25.17
!MESSAGE Unhandled event loop exception
!ENTRY org.eclipse.ui 4 0 lis 03, 2004 09:56:25.33
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at org.eclipse.gef.tools.AbstractTool.isInputSynched(AbstractTool.java:813)
at org.eclipse.gef.tools.AbstractTool.mouseMove(AbstractTool.java:970)
at org.eclipse.gef.tools.SelectionTool.mouseMove(SelectionTool.java:494)
at com.swtdesigner.gef.DesignerEditDomain.keyDown(SourceFile:68)
at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchKeyPressed(DomainEventDispatcher.java:231)
at org.eclipse.draw2d.LightweightSystem$EventHandler.keyPressed(LightweightSystem.java:461)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:121)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:820)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:805)
at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1734)
at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1730)
at org.eclipse.swt.widgets.Control.WM_SYSKEYDOWN(Control.java:4404)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3041)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3338)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1467)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2429)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1435)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1406)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:263)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
at org.eclipse.core.launcher.Main.run(Main.java:644)
at org.eclipse.core.launcher.Main.main(Main.java:628)
!ENTRY org.eclipse.ui 4 4 lis 03, 2004 09:56:25.158
!MESSAGE Unhandled event loop exception
!ENTRY org.eclipse.ui 4 0 lis 03, 2004 09:56:25.158
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at org.eclipse.gef.tools.AbstractTool.isInputSynched(AbstractTool.java:813)
at org.eclipse.gef.tools.AbstractTool.mouseMove(AbstractTool.java:970)
at org.eclipse.gef.tools.SelectionTool.mouseMove(SelectionTool.java:494)
at com.swtdesigner.gef.DesignerEditDomain.keyUp(SourceFile:88)
at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchKeyReleased(DomainEventDispatcher.java:244)
at org.eclipse.draw2d.LightweightSystem$EventHandler.keyReleased(LightweightSystem.java:466)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:127)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:820)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:805)
at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1734)
at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1730)
at org.eclipse.swt.widgets.Control.WM_KEYUP(Control.java:3603)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:2998)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3338)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1467)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2429)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1435)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1406)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:263)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
at org.eclipse.core.launcher.Main.run(Main.java:644)
at org.eclipse.core.launcher.Main.main(Main.java:628)
Users browsing this forum: Google [Bot] and 1 guest