JBuilder4 problem with controls


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: JBuilder4 problem with controls

  1. #1
    Mighty Guest

    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

  2. #2
    Ako Guest

    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



  3. #3
    David Guest

    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center