Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
AW: AW: [eclipse-dev] SWT_AWT bug, how to handle it...

Many thanks,

 

It works fine

 

-----Ursprüngliche Nachricht-----
Von: Carolyn MacLeod [mailto:Carolyn_MacLeod@xxxxxxxxxx]
Gesendet: Dienstag, 20. April 2004 14:49
An: eclipse-dev@xxxxxxxxxxx
Betreff: Re: AW: [eclipse-dev] SWT_AWT bug, how to handle it...

 


Hi Gert,

Here is an SWT Snippet showing how to use SWT_AWT:
http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform-swt-home/snippits/snippet135.html

Also, the SWT_AWT class has recently had javadoc added to it.
If you get today's integration build (should be ready later today) you will see the following comment for new_Frame:
/**
 * Creates a new <code>java.awt.Frame</code>. This frame is the root for
 * the AWT components that will be embedded within the composite. In order
 * for the embedding to succeed, the composite must have been created
 * with the SWT.EMBEDDED style.
 *
 * @param parent the parent <code>Composite</code> of the new <code>java.awt.Frame</code>
 * @return a <code>java.awt.Frame</code> to be the parent of the embedded AWT components
 *
 * @exception IllegalArgumentException <ul>
 *    <li>ERROR_NULL_ARGUMENT - if the parent is null</li>
 *    <li>ERROR_INVALID_ARGUMENT - if the parent Composite does not have the SWT.EMBEDDED style</li>
 * </ul>
 *
 * @since 3.0
 */
public static Frame new_Frame (final Composite parent) {

Good luck,
Carolyn



"Gert Wohlgemuth" <Wohlgemuth@xxxxxxxxxxxxxxxxx>
Sent by: eclipse-dev-admin@xxxxxxxxxxx

04/20/2004 09:26 AM

Please respond to
eclipse-dev

To

<eclipse-dev@xxxxxxxxxxx>

cc

 

Subject

AW: [eclipse-dev] SWT_AWT bug, how to handle it...

 

 

 




Thanx,

 

I will test this in some minutes, where can I find informations like that?

 

-----Ursprüngliche Nachricht-----
Von:
Steve Northover [mailto:Steve_Northover@xxxxxxxxxx]
Gesendet:
Dienstag, 20. April 2004 14:21
An:
eclipse-dev@xxxxxxxxxxx
Betreff:
Re: [eclipse-dev] SWT_AWT bug, how to handle it...

 


You need to create the composite with the SWT.EMBEDDED style or nothing will work.  SWT was changed recently to check for this.

"Gert Wohlgemuth" <Wohlgemuth@xxxxxxxxxxxxxxxxx>
Sent by: eclipse-dev-admin@xxxxxxxxxxx

04/20/2004 08:10 AM

 

Please respond to
eclipse-dev

 

To

<eclipse-dev@xxxxxxxxxxx>

cc

 

Subject

[eclipse-dev] SWT_AWT bug, how to handle it...

 

 

 

 




When ever I create an SWT_AWT Frame and close it I get this exception...
It's also not possible to resize the composite with the frame, the frame
does not resize correctly...

Does anybody know can I use the Swing api in a eclipse view? It's realy
important.

java.lang.NullPointerException: null pData
               at sun.awt.windows.WComponentPeer.hide(Native Method)
               at java.awt.Component.hide(Unknown Source)
               at java.awt.Window.hide(Unknown Source)
               at java.awt.Component.show(Unknown Source)
               at java.awt.Component.setVisible(Unknown Source)
               at java.awt.Window$1DisposeAction.run(Unknown Source)
               at java.awt.Window.dispose(Unknown Source)
               at org.eclipse.swt.awt.SWT_AWT$8.run(SWT_AWT.java:145)
               at java.awt.event.InvocationEvent.dispatch(Unknown Source)
               at java.awt.EventQueue.dispatchEvent(Unknown Source)
               at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
               at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
Source)
               at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
               at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
               at java.awt.EventDispatchThread.run(Unknown Source)

thanx in advance,

gert
_______________________________________________
eclipse-dev mailing list
eclipse-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
http://dev.eclipse.org/mailman/listinfo/eclipse-dev


Back to the top