System.Windows.Forms.UserControl as JPanel parent?

From: alex (alex_at_discussions.microsoft.com)
Date: 02/10/05


Date: Thu, 10 Feb 2005 08:41:06 -0800

Does anyone know if it is possible to add a JPanel to a
System.Windows.Forms.UserControl, or other WinForms container?

(Trust me, I have a good reason for doing this!)

I tried the following, but of course last line does not compile:

<code>
using javax.swing;

public partial class myUserControl : UserControl
    {
        public myUserControl()
        {
            InitializeComponent();

            JPanel jp = new JPanel();
            this.Controls.Add(jp); // doesn't compile!
        }
    }
</code>



Relevant Pages

  • Re: Atheists support evolution because evolution supports their
    ... any reason we should be trusting you in this matter, as opposed to, ... Is there any reason to think that we need to trust another person on ... God's rescue, and his love. ... Why don't you fix your signature? ...
    (talk.origins)
  • Re: Atheists support evolution because evolution supports their
    ... is there any reason to think that this is one ... Is there any reason to think that we need to trust another person on ... God's rescue, and his love. ... he just would not have been God. ...
    (talk.origins)
  • Re: OT: Survey about trust and participation in online communities
    ... My name is Sherida Ryan and I am a Ph.D. student in Adult Education ... Can you verify any of this? ... Think about the nature of trust. ... Indeed, and there's no reason at all why I should trust you, is there? ...
    (uk.people.support.depression)
  • Re: Atheists support evolution because evolution supports their
    ... is there any reason to think that this is one ... If I am hiking in snake country and my ... Is there any reason to think that we need to trust another person on ... he just would not have been God. ...
    (talk.origins)
  • Re: Was 9-11 perpetrated by Muslims?
    ... have yet to see any evidence 9-11 was perpetrated by Muslims. ... 'reason' than, "The Pope said it while he was sitting in the magic ... NO REASON to trust Bush and his gang. ... Where is the evidence that damns that list of people to Hell? ...
    (alt.gathering.rainbow)

Loading