title: Adding SWT Canvas to JPanel
body: <p>I'm trying to add a NatTable (which extends org.eclipse.swt.widgets.Canvas) to a JPanel (the majority of the program's graphics are in Swing, and I'm rather unfamiliar with SWT). I attempted to use the code below to test the SWT_AWT class, but I got an error:</p>
  
  <pre><code>org.eclipse.swt.widgets.Canvas canvas =
                  new org.eclipse.swt.widgets.Canvas(
                          new org.eclipse.swt.widgets.Shell(
                                  Display.getDefault(),
                                  1264),
                          SWT.NONE);
          java.awt.Frame frame = SWT_AWT.new_Frame(canvas); //error here
          JPanel returnMe = new JPanel();
          returnMe.add(frame);
  
          return returnMe;
  </code></pre>
  
  <p><em>Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Argument not valid</em></p>
  
  <p>I do not understand why I have this error as I passed a SWT composite. Can anyone explain what I did wrong and how to fix it?</p>