Board index » jbuilder » GUI Design Tab

GUI Design Tab


2004-09-26 05:53:15 AM
jbuilder24
Working within the Design Tab :
Suppose you start a new project.
Add a Frame from the Object Gallery to the project.
Select the Design Tab
Choose SWING and Set the Layout to null
Drop a Label onto the form and set its text property to anything you want.
At this point in VS.Net you could execute your project successfully in VB,
VC++, or C#.
But not in JB X . Why not and what do you need to add and where ?
TIA
Bob
 
 

Re:GUI Design Tab

Hello,
You have a main class in the file that implements the JFrame ?
For you project to start, you must create a main class where you call the
constructor of the Frame.
In addition, you need a panel where you can drop your controls.
You really should use the "New Application" menu instead of "Frame", so you
can see what classes are needed, how the main function calls the constructor
of the Frame, and then the panels that contain the controls.
To drag and drop controls and resize them as you want you will need the
XYLayout that is not totally portable (because it's designed by Borland and
it's not included Java) except if you include this package. (in a .jar for
instance) in your application.
Good luck.
Christophe Hivert.
Club MS Ensimag.
"Bob Palank" < XXXX@XXXXX.COM >a écrit dans le message de news:
fNl5d.2420$ XXXX@XXXXX.COM ...
Quote
Working within the Design Tab :

Suppose you start a new project.

Add a Frame from the Object Gallery to the project.

Select the Design Tab

Choose SWING and Set the Layout to null

Drop a Label onto the form and set its text property to anything you want.

At this point in VS.Net you could execute your project successfully in VB,
VC++, or C#.

But not in JB X . Why not and what do you need to add and where ?

TIA

Bob