-
JBuilder4 problem with controls
I have a problem with JBuilder4. When I want to add a control to a form that
control is big like form and I can't make it smaller. When I add 2,3,4 controls
the same problem except that then controls aren't big like form but they
must fill it maximum. I mean I can't add controls like I do in VB or C#.
What to do?
Thanks
-
Re: JBuilder4 problem with controls
Change the layout of the container.
Ako
"Mighty" <mighty99@yahoo.com> wrote:
>
>I have a problem with JBuilder4. When I want to add a control to a form
that
>control is big like form and I can't make it smaller. When I add 2,3,4 controls
>the same problem except that then controls aren't big like form but they
>must fill it maximum. I mean I can't add controls like I do in VB or C#.
>What to do?
>Thanks
-
Re: JBuilder4 problem with controls
It probably has something to do with the layout manager you are using. Using
a Grid Layout manager will make your components as big as your panel (filling
all available space). If you want to place components in specific places,
use the GridBag Layout manager or Borland's XYLayout manager. The XYLayout
manager is the easiest to use, but it is Borland's library (i.e., must include
it in your distribution) and does not move components when the window is
resized.
The GridBag Layout manager is from Sun and can be very confusing to use.
My advice is to read Borland's tutorial on the GridBag Layout manager to
see how best to use it.
For autoplacing components (i.e. autocentering of buttons on a form), try
using a Flow Layout or Border Layout manager. I probably use these two layout
managers the most! Hope this helps.
-David
"Mighty" <mighty99@yahoo.com> wrote:
>
>I have a problem with JBuilder4. When I want to add a control to a form
that
>control is big like form and I can't make it smaller. When I add 2,3,4 controls
>the same problem except that then controls aren't big like form but they
>must fill it maximum. I mean I can't add controls like I do in VB or C#.
>What to do?
>Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks