Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » Does WindowBuilder support AWT?
Does WindowBuilder support AWT? [message #736179] Thu, 13 October 2011 18:36 Go to next message
Chemi is currently offline ChemiFriend
Messages: 107
Registered: July 2009
Senior Member
Does WindowBuilder support AWT?

Thanks in advance,

Chemi.
Re: Does WindowBuilder support AWT? [message #736181 is a reply to message #736179] Thu, 13 October 2011 18:39 Go to previous messageGo to next message
Konstantin Scheglov is currently offline Konstantin ScheglovFriend
Messages: 555
Registered: July 2009
Senior Member
Yes.

Konstantin Scheglov,
Google, Inc.
Re: Does WindowBuilder support AWT? [message #736193 is a reply to message #736181] Thu, 13 October 2011 18:56 Go to previous messageGo to next message
Chemi is currently offline ChemiFriend
Messages: 107
Registered: July 2009
Senior Member
On 10/13/2011 8:39 PM, Konstantin Scheglov wrote:
> Yes.
>

I saw AWT Components in the palette but I was not able to find how to
create a Window, Frame or Applet as main container of my application
(just Swing containers). Any tip?

Thanks in advance,

Chemi.
Re: Does WindowBuilder support AWT? [message #736196 is a reply to message #736193] Thu, 13 October 2011 19:15 Go to previous messageGo to next message
Konstantin Scheglov is currently offline Konstantin ScheglovFriend
Messages: 555
Registered: July 2009
Senior Member
WindowBuilder does not provide wizards for AWT, but it still can render it.
There is one trick that we don't allow Window+ have layout, but if you put Panel on it manually, you will able to continue using WB.
import java.awt.Dialog;
import java.awt.Frame;
import java.awt.Panel;

public class Dialog_1 extends Dialog {
  public Dialog_1() {
    super((Frame) null, "My Dialog");
    add(new Panel());
  }
}


Konstantin Scheglov,
Google, Inc.
Re: Does WindowBuilder support AWT? [message #736220 is a reply to message #736193] Thu, 13 October 2011 20:40 Go to previous messageGo to next message
Eric Clayberg is currently offline Eric ClaybergFriend
Messages: 979
Registered: July 2009
Location: Boston, MA
Senior Member
As Konstantin said, WB can render and edit AWT UIs, but we don't provide wizards to create new ones.

Encouraging the use of raw AWT is not something we want to do. You should either use Swing or SWT.
Re: Does WindowBuilder support AWT? [message #739702 is a reply to message #736220] Mon, 17 October 2011 19:13 Go to previous message
Chemi is currently offline ChemiFriend
Messages: 107
Registered: July 2009
Senior Member
Understood. Thanks a lot.

On 10/13/2011 10:40 PM, Eric Clayberg wrote:
> As Konstantin said, WB can render and edit AWT UIs, but we don't provide
> wizards to create new ones.
>
> Encouraging the use of raw AWT is not something we want to do. You
> should either use Swing or SWT.
Previous Topic:WB Databinding Tab - Information about the "code generation pattern"
Next Topic:NoClassDefFoundError when trying to open ViewPart code with WindowBuilder
Goto Forum:
  


Current Time: Thu Mar 28 12:29:09 GMT 2024

Powered by FUDForum. Page generated in 0.02435 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top