System.Windows.Forms.UserControl as JPanel parent?
From: alex (alex_at_discussions.microsoft.com)
Date: 02/10/05
- Next message: Lars-Inge Tønnessen [VJ# MVP]: "Re: import or include java .class file"
- Previous message: noir: "Need some help please"
- Next in thread: Lars-Inge Tønnessen [VJ# MVP]: "Re: System.Windows.Forms.UserControl as JPanel parent?"
- Reply: Lars-Inge Tønnessen [VJ# MVP]: "Re: System.Windows.Forms.UserControl as JPanel parent?"
- Messages sorted by: [ date ] [ thread ]
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>
- Next message: Lars-Inge Tønnessen [VJ# MVP]: "Re: import or include java .class file"
- Previous message: noir: "Need some help please"
- Next in thread: Lars-Inge Tønnessen [VJ# MVP]: "Re: System.Windows.Forms.UserControl as JPanel parent?"
- Reply: Lars-Inge Tønnessen [VJ# MVP]: "Re: System.Windows.Forms.UserControl as JPanel parent?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
Loading